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 


More options for DIALOG CREATE

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
JRoza
Contributor
Contributor


Joined: 17 Aug 2003
Posts: 182
Location: Netherlands

PostPosted: Mon Jan 24, 2005 11:41 pm    Post subject: More options for DIALOG CREATE Reply with quote

What I really miss in VDS 5 is a way to create a dialog that generates a maximized screen.
I tried doing it myself by determining the screen resolution via @SYSINFO, but setting the height and width to those values causes the screen to partly disappear behind the Windows Taskbar, so to get things right you also have to check via the Windows register if the Taskbar is visible or not and then distract the Taskbar height from the found screenheight to get things right.
It would be so much easier if we could use something like
DIALOG CREATE,................., MAXIMIZE presuming that maximizing automatically detects the Taskbar.
Back to top
View user's profile Send private message Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Tue Jan 25, 2005 9:08 am    Post subject: Reply with quote

I don't think that's good behavior. As a user, I would object to that. The correct way is to have the application start up normal the first time, and have it save its last size, position and state. Then if the user wants to maximize it and leaves it like that, it remembers that state.
_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
JRoza
Contributor
Contributor


Joined: 17 Aug 2003
Posts: 182
Location: Netherlands

PostPosted: Tue Jan 25, 2005 9:21 am    Post subject: Reply with quote

Okay, I agree.
But that means you have to program quite a bit because when a user changes the windowsize of the program the program needs to recalculate and redisplay all lines, backgrounds and other dialog elements.
Otherwise the program window will be larger but there will be a lot of blank space in the window.

So if I want to give the user full freedom I think I need to make some sort of scaling routine which will scale up or down all dialog elements.

Oh what the hack .......... it keeps me off the street!
Back to top
View user's profile Send private message Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Tue Jan 25, 2005 9:39 am    Post subject: Reply with quote

If you're going to change the size of the dialog elements to keep them in proportion to the screen, you're going to have to do that anyway, because maximizing just changes the window size.

Actually, VDS does have a way to scale the size of elements, which is intended to keep the proportions right when users switch between normal and large fonts. Look up OPTION SCALE. If you design the window using normal fonts, you would put OPTION SCALE, 96 at the start of the program, and the size of the elements and the dialog would be increased if the user chooses large fonts. By playing with the value you put, you might be able to scale the size of the elements to fit the screen size, although the feature wasn't actually intended for that purpose

_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
JRoza
Contributor
Contributor


Joined: 17 Aug 2003
Posts: 182
Location: Netherlands

PostPosted: Tue Jan 25, 2005 9:55 am    Post subject: Reply with quote

I remember that OPTION SCALE item from years ago but had plainly forgotten it.
I'm going to delve a bit deeper in the scaling routine and the OPTION SCALE bit as soon as I have some time again.
The more I think of it the more intrigued I get by that scaling routine.... might make a nice bit of programming and a great service to the user once I've mastered it.
I like it when a challenge comes along Very Happy

Jan
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


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

PostPosted: Tue Jan 25, 2005 1:17 pm    Post subject: Reply with quote

You can get your window fullscreen by using something like this:

Code:
DIALOG CREATE,Nieuw Dialoog,9999,999,240,160,RESIZABLE
REM *** Gewijzigd door de Dialoog Ontwerper op 25-01-2005 - 14:14 ***
  DIALOG ADD,STATUS,STATUS1,"Fullscreen window Smile"
  DIALOG SHOW

window maximize,@dlgtext()

:Evloop
wait event
goto @event()

:Resize
goto Evloop

:Close
exit

_________________
[ 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
kc7aad
Contributor
Contributor


Joined: 09 Oct 2005
Posts: 53
Location: Spokane Washington

PostPosted: Thu Oct 27, 2005 6:16 pm    Post subject: Reply with quote

So does the scale option work for resizing buttons autotically, too, or just the size of the text? If a user makes a window smaller, it would sure be cool if it would make the buttons and text boxes smaller too!!

Is it easy to do, or i would think it would take a bit of programming!!
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Wish List 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