View previous topic :: View next topic |
Author |
Message |
JRoza Contributor
Joined: 17 Aug 2003 Posts: 182 Location: Netherlands
|
Posted: Mon Jan 24, 2005 11:41 pm Post subject: More options for DIALOG CREATE |
|
|
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 |
|
|
jules Professional Member
Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Tue Jan 25, 2005 9:08 am Post subject: |
|
|
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 |
|
|
JRoza Contributor
Joined: 17 Aug 2003 Posts: 182 Location: Netherlands
|
Posted: Tue Jan 25, 2005 9:21 am Post subject: |
|
|
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 |
|
|
jules Professional Member
Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Tue Jan 25, 2005 9:39 am Post subject: |
|
|
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 |
|
|
JRoza Contributor
Joined: 17 Aug 2003 Posts: 182 Location: Netherlands
|
Posted: Tue Jan 25, 2005 9:55 am Post subject: |
|
|
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
Jan |
|
Back to top |
|
|
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Tue Jan 25, 2005 1:17 pm Post subject: |
|
|
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 "
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 |
|
|
kc7aad Contributor
Joined: 09 Oct 2005 Posts: 53 Location: Spokane Washington
|
Posted: Thu Oct 27, 2005 6:16 pm Post subject: |
|
|
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 |
|
|
|