Janex Posted November 3, 2011 Share Posted November 3, 2011 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 Quote Link to comment Share on other sites More sharing options...
Janex Posted November 3, 2011 Author Share Posted November 3, 2011 OR - how in ExtJs can I get a Window object where my form(formpanel) is placed ? WBR Janex Quote Link to comment Share on other sites More sharing options...
Janex Posted November 3, 2011 Author Share Posted November 3, 2011 Thanks for all ! I found solution ... WBR Janex Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 3, 2011 Administrators Share Posted November 3, 2011 function OnClick(sender, e) { MainForm.window.setWidth(300); } Quote Link to comment Share on other sites More sharing options...
Janex Posted November 3, 2011 Author Share Posted November 3, 2011 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 Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 3, 2011 Administrators Share Posted November 3, 2011 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/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.