Xbrowse left position on a window
- Richard Chidiak
- Posts: 946
- Joined: Thu Oct 06, 2005 7:05 pm
- Location: France
- Contact:
Xbrowse left position on a window
Hello
How can we set from code the left position of a xbrowse
I want it to start at an offset of 200 pixels
0,200 XBROWSE OBRW of ownd PIXEL .... Does not work
oBrw := TXBrowse():New(oWND) and oBrw:nLeft := 200 does not work neither
Any clue ?
Thanks for your help,
Richard
How can we set from code the left position of a xbrowse
I want it to start at an offset of 200 pixels
0,200 XBROWSE OBRW of ownd PIXEL .... Does not work
oBrw := TXBrowse():New(oWND) and oBrw:nLeft := 200 does not work neither
Any clue ?
Thanks for your help,
Richard
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
- Richard Chidiak
- Posts: 946
- Joined: Thu Oct 06, 2005 7:05 pm
- Location: France
- Contact:
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
It is working for me.
Modified the code in the testxbrw3.prg as below
Here is the screen shot
[/code]
Modified the code in the testxbrw3.prg as below
Code: Select all
@ 100,20 XBROWSE oBrw ;
COLUMNS "State", "City", "First", "Married", "HireDate", "Age", "Salary", "Last" ;
JUSTIFY .f., AL_CENTER, .t. ;
OF ownd ;
SIZE 400,300 PIXEL ;
ALIAS cAlias AUTOSORT
Here is the screen shot
[/code]
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- Richard Chidiak
- Posts: 946
- Joined: Thu Oct 06, 2005 7:05 pm
- Location: France
- Contact:
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
- Richard Chidiak
- Posts: 946
- Joined: Thu Oct 06, 2005 7:05 pm
- Location: France
- Contact:
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
- Richard Chidiak
- Posts: 946
- Joined: Thu Oct 06, 2005 7:05 pm
- Location: France
- Contact:
OK i have it working now, the writing is important, you have to specify the size of the browse to make it work
@ 10,200 XBROWSE oBrw ;
OF wnd ;
SIZE ownd:nwidth - 200,ownd:nHeight - 30 PIXEL ;
ALIAS myalias
This syntax will work , if the size clauses is removed the browse will display but no offsets will be taken into consideration.
Rihard
@ 10,200 XBROWSE oBrw ;
OF wnd ;
SIZE ownd:nwidth - 200,ownd:nHeight - 30 PIXEL ;
ALIAS myalias
This syntax will work , if the size clauses is removed the browse will display but no offsets will be taken into consideration.
Rihard
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact: