apelsinov Posted April 2, 2012 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? Quote
Administrators Farshad Mohajeri Posted April 2, 2012 Administrators 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 Quote
Mediv Posted April 2, 2012 Posted April 2, 2012 Hi Farshad. On icons, can I change the icon in the address bar? Thank you. Quote
Administrators Farshad Mohajeri Posted April 2, 2012 Administrators Posted April 2, 2012 Hi Farshad. On icons, can I change the icon in the address bar? Thank you. ServerModule->Favicon Quote
Mediv Posted April 2, 2012 Posted April 2, 2012 ServerModule->Favicon Added an icon like you said, and it is possible to change the icon in the link. Quote
Administrators Farshad Mohajeri Posted April 2, 2012 Administrators Posted April 2, 2012 Sometimes browser keeps the old favicon in cache. Quote
apelsinov Posted April 2, 2012 Author 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? Quote
Administrators Farshad Mohajeri Posted April 2, 2012 Administrators 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. Quote
apelsinov Posted April 2, 2012 Author Posted April 2, 2012 Ok, thank you. UniForm->Icon returninig link to the empty Icon . I can see icon on the title bar. Quote
Administrators Farshad Mohajeri Posted April 2, 2012 Administrators Posted April 2, 2012 UniForm->Icon returninig link to the empty Icon . I can see icon on the title bar. Sorry? Quote
apelsinov Posted April 2, 2012 Author 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. Quote
Administrators Farshad Mohajeri Posted April 2, 2012 Administrators 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. Quote
apelsinov Posted April 2, 2012 Author 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? Quote
Administrators Farshad Mohajeri Posted April 2, 2012 Administrators Posted April 2, 2012 Picture is saved in Cache folder. UniSpeedButton1.ExtControl Quote
apelsinov Posted April 4, 2012 Author 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. Quote
Administrators Farshad Mohajeri Posted April 4, 2012 Administrators 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. Quote
apelsinov Posted April 4, 2012 Author 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. Quote
Administrators Farshad Mohajeri Posted April 4, 2012 Administrators 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; Quote
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.