View previous topic :: View next topic |
Author |
Message |
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Wed Jun 04, 2003 6:43 pm Post subject: WINDOW POSITION Bug... |
|
|
I ran into this bug while using WINDOW POSITION: The status bar goes
to the top of the window if it is not set to "RESIZABLE". Sometimes we
want to change a window that is not resizable to the user though.
The code below illustrates the bug:
Code: | DIALOG CREATE,This is a dialog,20,20,240,119,CLASS TestWndClass
DIALOG ADD,STATUS,STATUS1,This is a status bar
DIALOG ADD,EDIT,This_is_an_EDIT_element,25,17,,,This_is_an_EDIT_element
DIALOG SHOW
WARN "Click OK to reposition window"
window position,"#TestWndClass",,,240,119
wait event
exit |
_________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
SnarlingSheep Professional Member
Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Wed Jun 04, 2003 7:01 pm Post subject: |
|
|
Odd, but this works:
Code: |
DIALOG CREATE,This is a dialog,-1,0,240,119,CLASS TestWndClass
DIALOG ADD,EDIT,This_is_an_EDIT_element,25,17,,,This_is_an_EDIT_element
DIALOG ADD,STATUS,STATUS1,This is a status bar
DIALOG SHOW
WARN "Click OK to reposition window"
window position,"#TestWndClass",,,240,120
window position,"#TestWndClass",,,240,119
wait event
exit
|
_________________ -Sheep
My pockets hurt... |
|
Back to top |
|
|
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Wed Jun 04, 2003 7:09 pm Post subject: |
|
|
When this happens with two status bars then only one is shown when
it is repositioned:
Code: | DIALOG CREATE,This is a dialog,-1,0,240,119,CLASS TestWndClass
DIALOG ADD,EDIT,This_is_an_EDIT_element,25,17,,,This_is_an_EDIT_element
DIALOG ADD,STATUS,STATUS1,This is a status bar
DIALOG ADD,STATUS,STATUS2,This is a status bar
DIALOG SHOW
WARN "Click OK to reposition window"
window position,"#TestWndClass",,,240,119
rem window position,"#TestWndClass",,,240,119
wait event
exit |
_________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|