LindaRichard
Programmer
Hi
In my program I want to position 3 forms in my main vfp window
*first I maximize the screen
_SCREEN.windowstate=2
.. do some other code
*make it visible
_SCREEN.visible=.t.
*load the menu bar
do mainmenu.mpr
*display the top main toolbar
goMainTB.show
*display a toolbar to the left
goGraphicsTB.show
Now I want to position 3 forms so that they fill the
remaining area no matter what the screen resolution.
This is what the layout looks like now
xxxxxxxxxxxxxxxxxx = Title
MMMMMMMMMMMMMMMMMM = Menu
TTTTTTTTTTTTTTTTTT = Top Toolbar
L |
L |
L |
L |
------------------
L=To the left if a tool bar
I want to place 3 forms so that they completly occupy
the remaining space
xxxxxxxxxxxxxxxxxx = Title
MMMMMMMMMMMMMMMMMM = Menu
TTTTTTTTTTTTTTTTTT = Top Toolbar
L1111111222222222|
L1111111222222222|
L1111111222222222|
L3333333333333333|
------------------
L=To the left if a tool bar
1,2, and 3 are the areas to be covered by each form
I have tried playing with
SYSMETRICS(1) and (2) and tracking width and heigth
top and left of the toolbars without success. I am
hoping that there is an easier way of doing this.
I essentialy need to know the width, heigth, top and
left of the remaining area so that I can position my
forms. Anyone have any suggestions?
Thanks
Linda
In my program I want to position 3 forms in my main vfp window
*first I maximize the screen
_SCREEN.windowstate=2
.. do some other code
*make it visible
_SCREEN.visible=.t.
*load the menu bar
do mainmenu.mpr
*display the top main toolbar
goMainTB.show
*display a toolbar to the left
goGraphicsTB.show
Now I want to position 3 forms so that they fill the
remaining area no matter what the screen resolution.
This is what the layout looks like now
xxxxxxxxxxxxxxxxxx = Title
MMMMMMMMMMMMMMMMMM = Menu
TTTTTTTTTTTTTTTTTT = Top Toolbar
L |
L |
L |
L |
------------------
L=To the left if a tool bar
I want to place 3 forms so that they completly occupy
the remaining space
xxxxxxxxxxxxxxxxxx = Title
MMMMMMMMMMMMMMMMMM = Menu
TTTTTTTTTTTTTTTTTT = Top Toolbar
L1111111222222222|
L1111111222222222|
L1111111222222222|
L3333333333333333|
------------------
L=To the left if a tool bar
1,2, and 3 are the areas to be covered by each form
I have tried playing with
SYSMETRICS(1) and (2) and tracking width and heigth
top and left of the toolbars without success. I am
hoping that there is an easier way of doing this.
I essentialy need to know the width, heigth, top and
left of the remaining area so that I can position my
forms. Anyone have any suggestions?
Thanks
Linda