B4J Question [CSS] How to copy styles from one node to another?

Cableguy

Expert
Licensed User
Longtime User
Hi guys...

I'm finishing up a CV, that is composed by 2 nodes (1 Pane and 1 imageview).

Most css style props can be directly retrieved using CSSUtils, but more complex one are more problematic...

I am searching for a way to retrieve the base Pane (mBase) Shadow style so that I can apply it to the other (child) pane...
(I can create a new shadow, but I wan to copy the mbase DESIGNER SET shadow)

Any help will be appreciated!
 

stevel05

Expert
Licensed User
Longtime User
I don't think you'll be able to retrieve the innershadow using CSS (I could well be wrong, but I can't find it), you'll probably have to get it using JavaObject and use the getEffect method of Node, clone it, then add it to your target Node.

Edit: alternatively you could add the parameters to the CV parameters and create a new inner shadow effect.
 
Upvote 0
Top