Hints, tips and tricks for newbies
Moderators: Dorian (MJT support), JRL
-
koleviko
- Junior Coder
- Posts: 45
- Joined: Thu Nov 20, 2008 2:59 pm
Post
by koleviko » Wed Jul 14, 2010 8:05 pm
I have two monitors 17 and 19 inches and I want my program to always show right - down.
Code: Select all
Dialog>Dialog1
Caption=notes
Width=281
Height=242
Top=Right
Left=Right
EndDialog>Dialog1
[/quote]
How to do this ?
Last edited by
koleviko on Thu Jul 15, 2010 8:50 pm, edited 1 time in total.
-
Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
-
Contact:
Post
by Marcus Tettmar » Thu Jul 15, 2010 8:53 am
Use the GetScreenRes command to get the screen resolution and then subtract width and height of dialog to determine top left position for dialog and then apply those values to the dialog. (In V12 use SetDialogProperty).
-
koleviko
- Junior Coder
- Posts: 45
- Joined: Thu Nov 20, 2008 2:59 pm
Post
by koleviko » Thu Jul 15, 2010 8:47 pm
Ã’hanks now works
Code: Select all
GetScreenRes>x,y
let>x=x-289
let>y=y-139
Dialog>Dialog1
Caption=Hello
Width=289
Height=109
Top=y
Left=x
EndDialog>Dialog1
show>Dialog1,
[/quote]
Second question?
How do I change the resolution from 16 to 32 bits
What is the command?