forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Full Screen

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
mfguitars
Newbie


Joined: 17 May 2007
Posts: 1

PostPosted: Fri May 18, 2007 12:22 am    Post subject: Full Screen Reply with quote

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
View user's profile Send private message
DaveR
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 413
Location: Australia

PostPosted: Fri May 18, 2007 3:51 am    Post subject: Reply with quote

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
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Fri May 18, 2007 11:54 am    Post subject: Reply with quote

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 Smile

Edit: Can't find it, I guess it's somewhere lost in time Sad

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group