ContextMenu styling (esp. for MenuButton)

Randahl Fink Isaksen randahl at rockit.dk
Wed Oct 24 04:07:56 PDT 2012


Have you looked at caspian.css? I would imagine there was a solution in there.

R.



On Oct 24, 2012, at 12:55 , Werner Lehmann <lehmann at media-interactive.de> wrote:

> I can answer this part now: put an invalidation listener on the scene property of the node used for CustomMenuItem. Once that node gets a scene, it can be used to add a stylesheet. Not really straightforward though. I'd still prefer if the context menu could just use the stylesheet of its MenuButton.
> 
> Werner
> 
> On 23.10.2012 18:12, Werner Lehmann wrote:
>> This works ok but styling is difficult - how can I style the
>> menuitem/contextmenu used by the MenuButton skin? Apparently I cannot
>> access it from the MenuButton control.



More information about the openjfx-dev mailing list