User Tools

Site Tools


built_in:dialog

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
built_in:dialog [2015/01/07 09:45]
octazid [Methods]
built_in:dialog [2018/04/19 14:50]
78.209.123.22 [Table]
Line 1: Line 1:
 ====== Dialog control ====== ====== Dialog control ======
  
 +===== Create =====
 +Create dialogs using the CreateDialog method of the app object:
 +<code>dlg = app.CreateDialog( title, options );</code>
 ===== 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                          ^ Description                                                   
-|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()                   Hides the Dialog                                              
-|Dialog.GetHeight() | +| Dialog.RemoveLayoutlayout   Removes a Layout                                              
-|Dialog.GetPosition() | +| Dialog.SetOnCancelcallback  Used for setting a callback for when the Dialog is cancelled  
-|Dialog.GetType() | +| Dialog.SetOnTouchcallback   Used for setting a callback for when the Dialog is touched  
-|Dialog.GetVisibility() | | +| Dialog.Show()                   Callback to open the Dialog.                                  
-|Dialog.GetWidth() | +===== Options ===== 
-|Dialog.Release() | +^ NoDim     ^ 
-|Dialog.SetBackColorp1 ) | +NoCancel  
-|Dialog.SetBackGradient( p1,p2,p3,p4,p5,p6,p7 ) | +NoTitle   
-|Dialog.SetBackGradientRadialp1,p2,p3,p4,p5,p6,p7 ) | +===== Sample ===== 
-|Dialog.SetBackground( p1,p2 ) | +[[sample_code:custom_dialog|Custom Yes-No-Dialog]]
-|Dialog.SetMargins( left,top,right,bottom ) | | +
-|Dialog.SetOnTouch( callback ) | | +
-|Dialog.SetPadding( p1,p2,p3,p4 ) | +
-|Dialog.SetPosition( p1,p2,p3,p4 ) | +
-|Dialog.SetScale( x,y ) | | +
-|Dialog.SetSize( p1,p2 ) | | +
-|Dialog.SetVisibility( p1 ) | |+
built_in/dialog.txt · Last modified: 2018/04/19 23:25 (external edit)