ISDBUI::NewForm: Difference between revisions

From MediaMonkey Wiki
Jump to navigation Jump to search
No edit summary
 
(Linkified the object)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{MethodDeclaration|SDBUI|ISDBUI|Property Get NewForm As ISDBUIForm}}
{{MethodDeclaration|SDBUI|ISDBUI|Property Get NewForm As [[SDBUIForm]]}}


===Property description===
===Property description===


Creates a new Form object. You can place additional controls on it then.
Creates a new [[SDBUIForm|Form]] object. You can place additional controls on it then.


===Example code===                     
===Example code===                     
Line 11: Line 11:
Form.Caption = "Statistics"
Form.Caption = "Statistics"


Set Btn = SDB.UI.NewButton( Form)
Set Btn = SDB.UI.NewButton(Form)
Btn.Caption = "Close"
Btn.Caption = "Close"
Btn.Common.SetRect 10, 10, 100, 20
Btn.Common.SetRect 10, 10, 100, 20
Line 17: Line 17:
Form.ShowModal
Form.ShowModal
</source>
</source>
=== Related Topics ===
*[[ISDBUI::NewDockablePanel]]
*[[ISDBUI::NewDockablePersistentPanel]]


[[Category:Scripting|{{PAGENAME}}]]
[[Category:Scripting|{{PAGENAME}}]]

Latest revision as of 22:05, 5 March 2008

CoClass SDBUI, Interface ISDBUI

Property Get NewForm As SDBUIForm


Property description

Creates a new Form object. You can place additional controls on it then.

Example code

Set Form = SDB.UI.NewForm
Form.Common.SetRect 100, 100, 500, 400
Form.Caption = "Statistics"

Set Btn = SDB.UI.NewButton(Form)
Btn.Caption = "Close"
Btn.Common.SetRect 10, 10, 100, 20

Form.ShowModal

Related Topics