About Store Forum Documentation Contact
Donations:
392$/mo



Post Reply 
Combobox/Menu/Menubar dropdown
Author Message
Zervox Offline
Silver Supporter

Post: #1
Combobox/Menu/Menubar dropdown
I can't seem to find where EE sets the color/panels(if any) for the combobox columns/list when selected like it does in the editor when selecting a editor skin, in my program it just stays white
(This post was last modified: 08-26-2015 06:21 AM by Zervox.)
08-26-2015 06:16 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Combobox/Menu/Menubar dropdown
Hi Zervox,

Could you attach an image about what specifically element do you mean?
If you mean the Context Menu (EE::Menu in C++), it is "Menu" in the Gui Skin.
08-26-2015 07:00 AM
Find all posts by this user Quote this message in a reply
Zervox Offline
Silver Supporter

Post: #3
RE: Combobox/Menu/Menubar dropdown
Notice the combobox list of elements
Changes to Menu doesn't seem to do anything
even if I do
cStat[i].menu.list.skin(gsp);
in code it only changes the text not color, and EE::Menu doesn't have skin pointer for me
   
   
(This post was last modified: 08-26-2015 07:52 AM by Zervox.)
08-26-2015 07:50 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: Combobox/Menu/Menubar dropdown
Oh,

At the moment this is a limitation of the Editor: changed menu won't be displayed in the Gui Skin Editor, but will be OK in your project applications.

This is GuiSkin.menu.normal in codes
and in the Gui Editor this is: "Menu: Normal Panel"

You can verify this here:
https://github.com/Esenthel/EsenthelEngi...s/Menu.cpp
under:
void Menu::draw(C GuiPC &gpc)
08-26-2015 07:59 AM
Find all posts by this user Quote this message in a reply
Zervox Offline
Silver Supporter

Post: #5
RE: Combobox/Menu/Menubar dropdown
Doesn't seem to work, even tried setting
gsp->menu.normal = OverridePanelPtr;
gsp->menu.normal_color = GREY;
before creation and after of the list, the elements is still white with black text.

I get the textstyle, and I get the cursor highlighted PanelPtr from List, but it just doesn't want to add the normal panel or normal color.

It works perfectly if I do Gui.skin=gsp;
but I do not want to override all of my GUI elements with that skinptr which makes this a bit annoying, since it only affects Combobox,Menu and Menubar.
(This post was last modified: 08-26-2015 08:41 AM by Zervox.)
08-26-2015 08:07 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
RE: Combobox/Menu/Menubar dropdown
Currently Menu will always use Gui.skin.
If you want some Menu's to use a different skin than current value of Gui.skin, I can add this for the next release.
08-27-2015 12:35 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #7
RE: Combobox/Menu/Menubar dropdown
Hello,

I've just committed this to the Beta branch (which also fixed the Menu not using correct skin in the Gui Skin Editor).
This will be available in the Main branch soon.
08-27-2015 04:07 AM
Find all posts by this user Quote this message in a reply
Zervox Offline
Silver Supporter

Post: #8
RE: Combobox/Menu/Menubar dropdown
This is much appreciated. smile
08-27-2015 04:09 PM
Find all posts by this user Quote this message in a reply
Zervox Offline
Silver Supporter

Post: #9
RE: Combobox/Menu/Menubar dropdown
It's been a while but it has been mentioned before by atleast another user regarding combobox, and that is the scroll behavior
The top row shows the current behavior of scrollwheel
While the lower row is what is actually what I think most people would expect it to do.

I have not been able to do this with combobox, a good set of creation parameter would be allowing to set a separate rect which specificies how large the dropdown box size will be and clip the list to that region, and draw the elements according to the currently scrolled to value inside the rect.

   
08-29-2015 06:01 AM
Find all posts by this user Quote this message in a reply
Post Reply