Stressman Posted April 1, 2013 Posted April 1, 2013 It is necessary that the background TUniFrame was transparent, and normal controls. This is real? Thanks. Quote
erich.wanker Posted November 8, 2015 Posted November 8, 2015 i had the same "situation" ... i solved it by creating the different needed components by runtime ... Quote
mhmda Posted November 8, 2015 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... Quote
sobakava Posted November 8, 2015 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. . Quote
mhmda Posted November 9, 2015 Posted November 9, 2015 For htmlframe use this: http://forums.unigui.com/index.php?/topic/4079-making-htmlframe-transparent/?hl=transparent Quote
sobakava Posted November 9, 2015 Posted November 9, 2015 thanks mohammad. but it is not about htmlframe. It's about TUNIFRAME. Quote
Administrators Farshad Mohajeri Posted November 9, 2015 Administrators Posted November 9, 2015 What does Transparent mean here? Same color as background? Quote
sobakava Posted November 9, 2015 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. Quote
Administrators Farshad Mohajeri Posted November 9, 2015 Administrators 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 Quote
sobakava Posted November 13, 2015 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 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.