apelsinov Posted April 2, 2012 Share Posted April 2, 2012 Hello. I have two questions: 1. How can I get a form header icon into web mode? 2. How to change the style of drawing a specific element (SpeedButton, panels, ...). It possible to specify a particular style of an element in CSS? Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted April 2, 2012 Administrators Share Posted April 2, 2012 Hi, 1. What do you mean by "getting" it? 2. You can use Ext property iconCls http://docs.sencha.com/ext-js/3-4/#!/api/Ext.Button-cfg-iconCls Link to comment Share on other sites More sharing options...
Mediv Posted April 2, 2012 Share Posted April 2, 2012 Hi Farshad. On icons, can I change the icon in the address bar? Thank you. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted April 2, 2012 Administrators Share Posted April 2, 2012 Hi Farshad. On icons, can I change the icon in the address bar? Thank you. ServerModule->Favicon Link to comment Share on other sites More sharing options...
Mediv Posted April 2, 2012 Share Posted April 2, 2012 ServerModule->Favicon Added an icon like you said, and it is possible to change the icon in the link. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted April 2, 2012 Administrators Share Posted April 2, 2012 Sometimes browser keeps the old favicon in cache. Link to comment Share on other sites More sharing options...
apelsinov Posted April 2, 2012 Author Share Posted April 2, 2012 Sorry for my english. 1. No, not favicon. Icon in the window title. 2. How can I change the CSS style of a specific element (SpeedButton, panels, ...)? Is it possible to specify a particular style for the element in CSS? Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted April 2, 2012 Administrators Share Posted April 2, 2012 No, not favicon. Icon in the window title. UniForm->Icon I have an empty IconCls Yes, you will assign the proper CSS info. Link to comment Share on other sites More sharing options...
apelsinov Posted April 2, 2012 Author Share Posted April 2, 2012 Ok, thank you. UniForm->Icon returninig link to the empty Icon . I can see icon on the title bar. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted April 2, 2012 Administrators Share Posted April 2, 2012 UniForm->Icon returninig link to the empty Icon . I can see icon on the title bar. Sorry? Link to comment Share on other sites More sharing options...
apelsinov Posted April 2, 2012 Author Share Posted April 2, 2012 When I try to get a UniForm->Icon, I receive an empty object (TIcon - is empty. Handle = 0). But the icon is obvious in the window header. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted April 2, 2012 Administrators Share Posted April 2, 2012 In web mode Icon is not kept in memory. It is freed after a web icon is created. That's why you can't get it. Link to comment Share on other sites More sharing options...
apelsinov Posted April 2, 2012 Author Share Posted April 2, 2012 Well, thank you. Can I get a picture from the title of a web form? 2. You can use Ext property iconCls How can I get an access to the Ext property in the TUniSpeedButton? Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted April 2, 2012 Administrators Share Posted April 2, 2012 Picture is saved in Cache folder. UniSpeedButton1.ExtControl Link to comment Share on other sites More sharing options...
apelsinov Posted April 4, 2012 Author Share Posted April 4, 2012 Picture is saved in Cache folder. Ok. I have some open windows, how can I know, which picture corresponds to the appropriate window? UniSpeedButton1.ExtControl For example I can give the UniSpeedButton1.ExtControl. When I set in this field the class name from CSS (and everything what I want set at all) - I receive the error. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted April 4, 2012 Administrators Share Posted April 4, 2012 Ok. I have some open windows, how can I know, which picture corresponds to the appropriate window? Folder name which is same as UniApplication.SessionId contains all cache files for that session. For example I can give the UniSpeedButton1.ExtControl. When I set in this field the class name from CSS (and everything what I want set at all) - I receive the error. Where do you set this? You must set this in Form.OnCreate event. Link to comment Share on other sites More sharing options...
apelsinov Posted April 4, 2012 Author Share Posted April 4, 2012 Where do you set this? You must set this in Form.OnCreate event. In the VCL application /Standalone Server mode: When I have Form.OnCreate, OnActivate, OnShow event the UniSpeedButton1.ExtControl = nil In the Windows Service Application mode: When I have Form.OnCreate event, the ExtControl object is set. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted April 4, 2012 Administrators Share Posted April 4, 2012 In the VCL application /Standalone Server mode: When I have Form.OnCreate, OnActivate, OnShow event the UniSpeedButton1.ExtControl = nil Yes, you must add this: if WebMode then begin end; Link to comment Share on other sites More sharing options...
apelsinov Posted April 4, 2012 Author Share Posted April 4, 2012 Ok, thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now