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
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:
 +<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() | +^ Options     ^ Description  ^ 
-|Dialog.SetBackColorcolor ) | +NoCancel  
-|Dialog.SetBackGradient( p1,p2,p3,p4,p5,p6,p7 ) | +NoTitle   
-|Dialog.SetBackGradientRadialp1,p2,p3,p4,p5,p6,p7 ) | +NoDim     Set the background transparent 
-|Dialog.SetBackground( p1,p2 ) | +===== Sample ===== 
-|Dialog.SetMargins( left,top,right,bottom ) | | +[[sample_code:custom_dialog|Custom Yes-No-Dialog]]
-|Dialog.SetOnCancel( callback )| |  +
-|Dialog.SetOnTouch( callback ) | +
-|Dialog.SetPadding( width,height,top,bottom ) | +
-|Dialog.SetPosition( p1,p2,p3,p4 ) | | +
-|Dialog.SetScale( x,y ) | | +
-|Dialog.SetSize( p1,p2 ) | | +
-|Dialog.SetVisibility( HideShow ) | |+
built_in/dialog.1423496883.txt.gz · Last modified: 2015/02/09 23:48 (external edit)