Difference between revisions of "FolderItemDialog.Top"

From Xojo Documentation

 
Line 8: Line 8:
 
}}
 
}}
 
{{Description
 
{{Description
|text = The distance (in pixels) of the top of the dialog from the top of the main screen. }}
+
|text = The distance (in points) of the top of the dialog from the top of the main screen. }}
  
 
==Example==
 
==Example==
 
+
This code illustrates all the labelling properties of a [[FolderItemDialog]].
This example illustrates all the labelling properties of a [[FolderItemDialog]].
 
  
 
<rbcode>
 
<rbcode>

Latest revision as of 19:46, 15 January 2021

Property (As Integer )
aFolderItemDialog.Top = newIntegerValue
or
IntegerValue = aFolderItemDialog.Top

Supported for all project types and targets.

The distance (in points) of the top of the dialog from the top of the main screen.

Example

This code illustrates all the labelling properties of a FolderItemDialog.

Var dlg As OpenDialog
Var f As FolderItem
dlg = New OpenDialog
dlg.Left = 50
dlg.Top = 50
f = dlg.ShowModal
If f <> Nil Then
MessageBox("You selected: " + f.NativePath)
Else
// User Cancelled
End If