Stressman Posted April 1, 2013 Share Posted April 1, 2013 It is necessary that the background TUniFrame was transparent, and normal controls. This is real? Thanks. Link to comment Share on other sites More sharing options...
sobakava Posted November 7, 2015 Share Posted November 7, 2015 +1 +1 +1 Link to comment Share on other sites More sharing options...
erich.wanker Posted November 8, 2015 Share Posted November 8, 2015 i had the same "situation" ... i solved it by creating the different needed components by runtime ... Link to comment Share on other sites More sharing options...
mhmda Posted November 8, 2015 Share Posted November 8, 2015 Hi, You can use 1x1 px (semi/full transparent) png image, I had test it and it works fine: .trnsprnt { background-image: url("http://3msoft.net/trns.png") !important; background-color: rgba(0, 0, 0, 0) !important } And on a panel or frame use (clientside events): function added(sender, container, pos, eOpts) { sender.addBodyCls('trnsprnt'); } If you want to change transparent % just change the .png transparent. I hope this help you... Link to comment Share on other sites More sharing options...
sobakava Posted November 8, 2015 Share Posted November 8, 2015 thanks mohammad but the problem is; Frames does not have Client events. Your soluiton is nice but works for Panels. What we need to do is making transparent frames. . Link to comment Share on other sites More sharing options...
mhmda Posted November 9, 2015 Share Posted November 9, 2015 For htmlframe use this: http://forums.unigui.com/index.php?/topic/4079-making-htmlframe-transparent/?hl=transparent Link to comment Share on other sites More sharing options...
sobakava Posted November 9, 2015 Share Posted November 9, 2015 thanks mohammad. but it is not about htmlframe. It's about TUNIFRAME. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 9, 2015 Administrators Share Posted November 9, 2015 What does Transparent mean here? Same color as background? Link to comment Share on other sites More sharing options...
sobakava Posted November 9, 2015 Share Posted November 9, 2015 What does Transparent mean here? Same color as background? I'm not sure what Stressman asks for but with "transparent", I mean a TUniframe with background is not filled but it acts like fully transparent rectange that holds child component.s It's like bodyStyle: 'background:transparent;". The reason I started to think I need this kind of feature, I've a TUniHTMLFrame placed in a TUniFrame. I have added Drop-shadow effect using CSS to TUniHTMLframe. So it works, I can see the shadow effect on the TuniHtmlFrame but the components behind(?) them looks strange since the frame itself is also solid. This is the topic: http://forums.unigui.com/index.php?/topic/5948-how-to-create-drop-shadow-for-a-panel-or-htmlframe/ I just thought, if the TUniFrame was transparent, I could see the drop-shadow effect on the components of main from. (light blue area) This is the how the components look like. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 9, 2015 Administrators Share Posted November 9, 2015 I understand. I resolved this issue by mapping Delphi's clNone color to web Transparent color. This will work for all components with Color property. This feature will be available in next build. 1 Link to comment Share on other sites More sharing options...
sobakava Posted November 9, 2015 Share Posted November 9, 2015 You are the boss Link to comment Share on other sites More sharing options...
mhmda Posted November 9, 2015 Share Posted November 9, 2015 Thanx Farshad Link to comment Share on other sites More sharing options...
sobakava Posted November 13, 2015 Share Posted November 13, 2015 I understand. I resolved this issue by mapping Delphi's clNone color to web Transparent color. This will work for all components with Color property. This feature will be available in next build. Now my drop shadow works perfectly. Thanks for the new version Farshad. (0.99.80.1227) 1 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