What is overflow menu component

92 views
Skip to first unread message

Bryan Buchanan

unread,
May 20, 2016, 3:45:53 AM5/20/16
to CodenameOne Discussions
Title says it all. Is this component styleable ?
Screenshot - 200516 - 17:38:37.png

Shai Almog

unread,
May 21, 2016, 12:32:31 AM5/21/16
to CodenameOne Discussions
It should be the Command UIID.
It's a part of the CommandList and the current selected entry should be CommandFocus.

Bryan Buchanan

unread,
May 21, 2016, 2:38:56 AM5/21/16
to CodenameOne Discussions
Doesn't appear to be any of those.

I looked at the source, and found some UIID's and modified those in the theme, but still did not change the popup, or any of the list items. The component inspector doesn't seem to work when the popup is displayed, so you cannot find out what the container and the items are.

Chen Fishbein

unread,
May 21, 2016, 3:00:02 PM5/21/16
to CodenameOne Discussions
Try "Menu"

Shai Almog

unread,
May 22, 2016, 12:03:39 AM5/22/16
to CodenameOne Discussions

Command works for me:




Bryan Buchanan

unread,
May 22, 2016, 12:24:05 AM5/22/16
to CodenameOne Discussions

Works for me too. I really wanted to change the background. i.e. suppose I want red text/icons on a yellow background ?

Shai Almog

unread,
May 23, 2016, 12:00:25 AM5/23/16
to CodenameOne Discussions

Works as well. Just make sure to set the opacity to 255. Override the border to be "Empty" and override the background to be "None".



Bryan Buchanan

unread,
May 23, 2016, 12:56:41 AM5/23/16
to CodenameOne Discussions
I can get that too, but it's not quite what I'm after.

The white background between each command is still visible - it's that background that needs styling.

Screenshot - 230516 - 14:54:18.png

Chen Fishbein

unread,
May 23, 2016, 1:12:37 AM5/23/16
to CodenameOne Discussions
That's the "Menu" style it is a 9 image Border, create your own "Menu" style with an empty border

Bryan Buchanan

unread,
May 23, 2016, 2:00:44 AM5/23/16
to CodenameOne Discussions
Thanks so much - perfect.

For anyone following this, in the image the popup background is a "Menu" component with an image border as Chen said, and the text is a "Command" component as Shai mentioned.

Screenshot - 230516 - 15:58:36.png

Bryan Buchanan

unread,
May 23, 2016, 2:04:08 AM5/23/16
to CodenameOne Discussions
and with a nice Gaussian blur when popped up - very slick.

        Dialog.setDefaultBlurBackgroundRadius(8);

Screenshot - 230516 - 16:02:48.png
Reply all
Reply to author
Forward
0 new messages