| View previous topic :: View next topic |
| Author |
Message |
mfguitars Newbie
Joined: 17 May 2007 Posts: 1
|
Posted: Fri May 18, 2007 12:22 am Post subject: Full Screen |
|
|
I have two questions in one..
Is there any way to maximize a dialog keeping the aspect of components?
Is it possible to hide the list borders?
This is an example:
DIALOG CREATE,New Dialog,-1,0,344,241,color 8080FF
DIALOG ADD,STYLE,STYLE1,,16,,8080FF,SILVER
DIALOG ADD,LIST,LIST1,18,14,145,163,,STYLE1
list add,list1,Item 1
list add,list1,Item 2
list add,list1,Item 3
list add,list1,Item 4
list add,list1,Item 5
list add,list1,Item 6
DIALOG ADD,BUTTON,BUTTON1,208,140,64,24,Full Screen
DIALOG ADD,BUTTON,BUTTON2,208,140,64,24,Normal
dialog hide,button2
DIALOG ADD,LINE,LINE1,21,181,147,161
DIALOG SHOW
:Menu
wait event
goto @event()
:Button1Button
window maximize,New Dialog
dialog show,button2
dialog hide,Button1
goto menu
:Button2Button
window normal,New Dialog
dialog show,button1
dialog hide,Button2
goto menu
:Close
Stop |
|
| Back to top |
|
 |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Fri May 18, 2007 3:51 am Post subject: |
|
|
Use the resizable style on the dialog create line. There's a lot of info around here on resizing (use the search button).
There's also a couple of helpful dsu units discussed here:
http://www.vdsworld.com/forum/viewtopic.php?t=3815 _________________ cheers
Dave |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Fri May 18, 2007 11:54 am Post subject: |
|
|
To hide the borders, you can put BITBTN elements on top of the list element's borders, after which you can disable them:
| Code: | DIALOG CREATE,New Dialog,-1,0,344,241,color 8080FF
REM *** Gewijzigd door de Dialoog Ontwerper op 18-5-2007 - 13:51 ***
DIALOG ADD,STYLE,STYLE1,,16,,8080FF,SILVER
DIALOG ADD,LIST,LIST1,18,14,145,163,,STYLE1
DIALOG ADD,BUTTON,BUTTON1,208,140,64,24,Full Screen
DIALOG ADD,BUTTON,BUTTON2,208,140,64,24,Normal
DIALOG ADD,LINE,LINE1,21,181,147,161
# Add BITBTN elements and disable them to hide list borders
DIALOG ADD,BITBTN,BITBTN1,18,14,145,2
DIALOG ADD,BITBTN,BITBTN2,18,11,5,163
DIALOG ADD,BITBTN,BITBTN3,179,14,145,2
DIALOG ADD,BITBTN,BITBTN4,18,157,2,163
DIALOG DISABLE,BITBTN1
DIALOG DISABLE,BITBTN2
DIALOG DISABLE,BITBTN3
DIALOG DISABLE,BITBTN4
# Hide other elements
DIALOG HIDE,BUTTON2
# Show dialog
DIALOG SHOW
list add,list1,Item 1
list add,list1,Item 2
list add,list1,Item 3
list add,list1,Item 4
list add,list1,Item 5
list add,list1,Item 6
:Menu
wait event
goto @event()
:Button1Button
window maximize,New Dialog
dialog show,button2
dialog hide,Button1
goto menu
:Button2Button
window normal,New Dialog
dialog show,button1
dialog hide,Button2
goto menu
:Close
Stop |
I remember myself making a dsu unit to hide borders in an easier way, but I'll have to search for it
Edit: Can't find it, I guess it's somewhere lost in time  _________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
| 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
|
|