WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Dialog Editor version 6.X
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Position Dialog

Keywords: 	 Position Dialog 

; Requires 2002E or newer for these 6.1 dialogs.

ScreenWidth = WinMetrics(0)
ScreenHeight = WinMetrics(1) 
PpHDU = WinMetrics(-6)  
PpVDU = WinMetrics(-5)  
 
MyDialogFormat=`WWWDLGED,6.1`
MyDialogCaption=`Test Dialog`
MyDialogWidth=084
MyDialogHeight=056

;Upper Left
;MyDialogX=0
;MyDialogY=0

;Lower Left
;MyDialogX = 0     
;MyDialogY = int( Floor(( ScreenHeight - WinMetrics(4))/PpVDU-MyDialogHeight))


;Upper Right
MyDialogX = Int(Floor(ScreenWidth/PpHDU-MyDialogWidth))
MyDialogY = 0

;Lower Right
;MyDialogX = int(Floor(ScreenWidth/PpHDU-MyDialogWidth))
;MyDialogY = int(Floor( ( ScreenHeight - WinMetrics(4))/PpVDU-MyDialogHeight))

MyDialogNumControls=001
MyDialogProcedure=`DEFAULT`
MyDialogFont=`DEFAULT`
MyDialogTextColor=`DEFAULT`
MyDialogBackground=`DEFAULT,DEFAULT`

MyDialog001=`020,018,033,011,PUSHBUTTON,DEFAULT,"OK",1,1,DEFAULT,DEFAULT,DEFAULT,DEFAULT`

ButtonPushed=Dialog("MyDialog")

Article ID:   W15474
File Created: 2003:05:13:11:28:06
Last Updated: 2003:05:13:11:28:06