| View previous topic :: View next topic |
| Author |
Message |
Teamgreentech Valued Newbie
Joined: 07 Dec 2010 Posts: 46 Location: Somerset
|
Posted: Mon Feb 14, 2011 12:32 pm Post subject: Problem with Wide Screen Monitors |
|
|
Hi there, it's been a while since I last did some work with VDS so I'm a bit rusty
One of my applications I wrote ages ago needs to run on a machine with a Modern wide screen monitor and The size of the GUI means that its height is to big and the bottom of the application is hidden by the toolbar
and probably off screen as well.
My question is to do with Resizing, can anyone halp with establishing intelligent resizing of the app. I still use VDS5 at the moment as I don't do enough to justify the spend to upgrade to 6.0
I know there was a Resize option in the dialog editor but I could never get it to work...
Your help is greatfully received. _________________ Many thanks
Andy @ Team Green Technology |
|
| Back to top |
|
 |
cnodnarb Professional Member


Joined: 11 Sep 2002 Posts: 765 Location: Eastman, GA
|
Posted: Mon Feb 14, 2011 5:43 pm Post subject: |
|
|
You have to add resize type to your dialog.
On second thought, I think it's "resizable"
let me check....
Resizable. code corrected.
| Code: |
DIALOG CREATE,New Dialog,-1,0,@sysinfo(screenwidth),@sysinfo(screenheight),,resizable |
This creates a resize event.
| Code: |
:resize
dialog select,0
dialog setpos,text1,@diff(@dlgpos(h),100)
goto evloop
|
|
|
| Back to top |
|
 |
Teamgreentech Valued Newbie
Joined: 07 Dec 2010 Posts: 46 Location: Somerset
|
Posted: Mon Feb 14, 2011 6:45 pm Post subject: |
|
|
cnodnarb, many thanks for getting back to me so quickly, I really do appreciate it.
So if I understand now correctly I will have to create a section for resizing all dialogs I have within my app based on the event trigger that RESIZABLE triggers, am I understanding this bit correctly ?
Do you know if there is a working app with that uses this that I can analyse to learn ?
Finally (Apologies if I'm a bore) !! Can I get Screen Resolution from Resizable or does this not matter ?
Many thanks once again, your a star.. _________________ Many thanks
Andy @ Team Green Technology |
|
| Back to top |
|
 |
cnodnarb Professional Member


Joined: 11 Sep 2002 Posts: 765 Location: Eastman, GA
|
Posted: Mon Feb 14, 2011 7:34 pm Post subject: |
|
|
Right, each dialog element has to be specifically coded for.
The example I gave created the new window at the system height and screen resolution.
Here's some old code I posted, contains a resize event that measures off the window class in the resize event (not entirely sure why...may have to do with different sized title bars or not knowing of the problem at the time) if I was to code today I would use @dlgpos() instead.
http://www.vdsworld.com/forum/viewtopic.php?t=827&highlight=resize
highlight of the code:
| Code: | :resize
parse "%%t;%%l;%%w;%%h",@winpos(#copyclient,TLWH)
dialog select,1
dialog setpos,edit1,0,0,@diff(%%w,10),@diff(%%h,50)
dialog select,0
goto evloop
|
|
|
| Back to top |
|
 |
Teamgreentech Valued Newbie
Joined: 07 Dec 2010 Posts: 46 Location: Somerset
|
Posted: Tue Feb 15, 2011 10:31 am Post subject: |
|
|
Thats great, thanks very much for your help, I will have a go at this tonight and post back how I got on tomorrow. _________________ Many thanks
Andy @ Team Green Technology |
|
| 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
|
|