Jump to content

How to set Form width?


Janex

Recommended Posts

Hi all.

Can some tell me how can I from Js set some

properties for my form?

For example:

 

myform.width = 100;

 

 

But not in delphi code, I will do this

in some ExtEvents ... directly from Js.

 

In ExdtJs documentation I not find some

methods for forms :(

 

WBR

Janex

Link to comment
Share on other sites

function OnClick(sender, e)
{
 MainForm.window.setWidth(300);
}

 

Fantastic !!!

From where You get this information that form have property "windows" ???

In ExtJs doc site I not found something about this property for forms :(

 

WBR

Janex

Link to comment
Share on other sites

  • Administrators

Client side window property of UniForm is defined by uniGUI not Ext JS. It is an Ext JS Ext.Window object.

 

Some of uniGUI controls are associated with more than one Ext JS objects.

 

You can open ClientEvents->ExtEvents to see them.

 

In attached pics UniForm wraps two Ext JS objects: window and form

 

window = Ext.Window

form = Ext.form.FormPanel

 

You can refer to Sencha Ext JS docs to see what methods and properties Ext.Window and Ext.form.FormPanel have.

 

http://docs.sencha.com/ext-js/3-4/

w1.JPG

w2.JPG

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...