erich.wanker Posted September 20, 2013 Share Posted September 20, 2013 hi .. i am trying to put a shadow on a uniLabel in Webmode .. in servermodule - customCSS i added: .shadow { text-shadow: 1px 1px 0px #000; } in uniLabel.caption i added: <class="shadow">text of the label ... but doesnt work .. :-( does anybody know how i can do that ? . i thin i must use ClientEvents... ExtEvents .. but don´t know what ;-) ThanX Quote Link to comment Share on other sites More sharing options...
heromo80 Posted September 20, 2013 Share Posted September 20, 2013 Hi, You should do this In unilabel1.caption := 'text label'; unilabel1.ClientEvents -> ExtEvent -> OnAfterrender function OnAfterrender(sender) { sender.addCls('shadow'); } Quote Link to comment Share on other sites More sharing options...
rullomare Posted September 20, 2013 Share Posted September 20, 2013 Hi, you can also try this 1) Add to CustomCss in servermodule : .x-unilabel-user { font:normal 11px tahoma, arial, helvetica, sans-serif; text-shadow: 2px 2px blue; } 2) add in Univent OnAfterCreate for the unilabel component unilabel1.ClientEvents -> UniEvent ->OnAfterCreate function OnAfterCreate(sender) { sender.cls = 'x-unilabel-user' ; } have fun !!! Quote Link to comment Share on other sites More sharing options...
erich.wanker Posted September 23, 2013 Author Share Posted September 23, 2013 hey cool .. thanx :-) .. so i can give my own CLASS to a component .. very easy and very nice ;-) ... Quote Link to comment Share on other sites More sharing options...
nand bengu Posted December 4, 2013 Share Posted December 4, 2013 cannot work in unigui0.94 for delphi xe5 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.