This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
built_in:dialog [2015/02/09 15:48] octazid add new [Methods] |
built_in:dialog [2018/04/19 23:25] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Dialog control ====== | ====== Dialog control ====== | ||
+ | ===== Create ===== | ||
+ | Create dialogs using the CreateDialog method of the app object: | ||
+ | < | ||
===== Methods ===== | ===== Methods ===== | ||
Some controls use the same methods.\\ | Some controls use the same methods.\\ | ||
For examples of the **[[same methods]]** look here. | For examples of the **[[same methods]]** look here. | ||
- | ^Method ^Description ^ | + | ^ Method |
- | |Dialog.AddLayout( layout ) | | | + | | Dialog.AddLayout( layout ) | Adds a Layout |
- | |Dialog.Destroy() | | | + | | Dialog.Dismiss() | Dismisses the Dialog |
- | |Dialog.GetAbsHeight() | | | + | | Dialog.GetType() | Gets the type of Dialog |
- | |Dialog.GetAbsWidth() | | | + | | Dialog.Hide() |
- | |Dialog.GetHeight() | | | + | | Dialog.RemoveLayout( layout |
- | |Dialog.GetPosition() | | | + | | Dialog.SetOnCancel( callback |
- | |Dialog.GetType() | | | + | | Dialog.SetOnTouch( callback |
- | |Dialog.GetVisibility() | | | + | | Dialog.Show() |
- | |Dialog.GetWidth() | | | + | ===== Options ===== |
- | |Dialog.Release() | | | + | ^ Options |
- | |Dialog.SetBackColor( color ) | | | + | | NoCancel |
- | |Dialog.SetBackGradient( p1, | + | | NoTitle |
- | |Dialog.SetBackGradientRadial( p1, | + | | NoDim | Set the background transparent |
- | |Dialog.SetBackground( p1,p2 ) | | | + | ===== Sample ===== |
- | |Dialog.SetMargins( left, | + | [[sample_code: |
- | |Dialog.SetOnCancel( callback )| | | + | |
- | |Dialog.SetOnTouch( callback ) | | | + | |
- | |Dialog.SetPadding( width, | + | |
- | |Dialog.SetPosition( p1,p2,p3,p4 ) | | | + | |
- | |Dialog.SetScale( x,y ) | | | + | |
- | |Dialog.SetSize( p1,p2 ) | | | + | |
- | |Dialog.SetVisibility( HideShow ) | | | + |