Search found 39 matches

by gams
Sun Nov 08, 2015 09:00
Forum: Help
Topic: Image in combobox?
Replies: 18
Views: 19288

Re: Image in combobox?

Ident wrote:Sure but then you can't use images there.


Unfortunately I dont have time to work on new control but at least i have the color and images in the list of items. Only header is missing color.
by gams
Sat Nov 07, 2015 08:12
Forum: Help
Topic: Image in combobox?
Replies: 18
Views: 19288

Re: Image in combobox?

Ident, I dont actually need new control/solution because I fixed the issue described in this post by simply using setText for the editfield to set non-tag string, so that the tags wont show up there.
by gams
Fri Nov 06, 2015 12:05
Forum: Help
Topic: Image in combobox?
Replies: 18
Views: 19288

Re: Image in combobox?

Ok I found the problem why ComboDropList is not showing. The visible attrbute was false by default. So I set it true in the CEGUI editor and still nothing. then I call setVisible and set it true and it finally shows up. I wonder why its hidden by default and cant be made visible except by c++ call? ...
by gams
Fri Nov 06, 2015 11:17
Forum: Help
Topic: Image in combobox?
Replies: 18
Views: 19288

Re: Image in combobox?

Ident wrote:And this LookNFeel is not rendered at all? You cant see the entire widget?


yes there is absolutely nothing visible of the control.
by gams
Thu Nov 05, 2015 08:51
Forum: Help
Topic: Image in combobox?
Replies: 18
Views: 19288

Re: Image in combobox?

is there an LookNFeel for it? If yes, which one do you use? I'm using the looknfeel file that came with CEGUI. so yes it has it. I'll copy & paste the looknfeel definitin here: <!-- *************************************************** TaharezLook/ComboDropList ***********************************...
by gams
Wed Nov 04, 2015 13:16
Forum: Help
Topic: Image in combobox?
Replies: 18
Views: 19288

Re: Image in combobox?

For some reason I cannot make ComboDropList render anything. here's code I borrowed from the samples: class MyListItem : public ListboxTextItem { public: MyListItem(const String& text, CEGUI::uint item_id = 0) : ListboxTextItem(text, item_id) { setSelectionBrushImage("colorDisp"); // c...
by gams
Fri Oct 23, 2015 13:58
Forum: Help
Topic: [Solved] Combobox edit field
Replies: 2
Views: 4474

Re: Combobox edit field

yaronct wrote:gams:

Code: Select all

combobox->getEditbox()->subscribeEvent( Editbox::EventTextChanged, Event::Subscriber(...) );


Make sure u subscribe to the event of the combobox's editbox, not the combobox itself!


thanks that was the problem!
by gams
Fri Oct 23, 2015 08:05
Forum: Help
Topic: [Solved] Combobox edit field
Replies: 2
Views: 4474

[Solved] Combobox edit field

Hi I was trying to make combobox fire an event everytime user types characters to the combobox edit field but none of the text events seem to trigger. I tried EventTextChanged, EventTextAccepted and EventTextSelectionChanged but no avail. is the support for this missing? Log: 23/10/2015 10:58:31 (St...
by gams
Thu Oct 22, 2015 17:07
Forum: Help
Topic: Image in combobox?
Replies: 18
Views: 19288

Re: Image in combobox?

Another thing I'm having dificulty to get working is the combobox text. Here's screenshot of what I mean. http://s3.postimg.org/6yb8p1if7/noparse.png looks like parsing is not enabled or something for the combox text. I looked around and it should be enabled so maybe it's not supported in that field.
by gams
Thu Oct 22, 2015 16:47
Forum: Help
Topic: Image in combobox?
Replies: 18
Views: 19288

Re: Image in combobox?

thanks Ident the formatting tags do work on the listboxitems and I am able to display image. :D
by gams
Sat Oct 17, 2015 12:36
Forum: Help
Topic: Image in combobox?
Replies: 18
Views: 19288

Re: Image in combobox?

The ListboxTextItem and ListboxItem class does not seem to have any way for adding image.
by gams
Fri Sep 18, 2015 11:35
Forum: Help
Topic: [Solved] Check if CEGUI has processed input
Replies: 6
Views: 7655

Re: Check if CEGUI has processed input

Nevermind I had to dig deeper to put few subscribeEvent functions in order. And now it works.
by gams
Fri Sep 18, 2015 11:02
Forum: Help
Topic: [Solved] Check if CEGUI has processed input
Replies: 6
Views: 7655

Re: Check if CEGUI has processed input

Check whether inject*() returns true or false: http://static.cegui.org.uk/docs/0.8.4/classCEGUI_1_1GUIContext.html#a15db282dc12579a83afe043d9335ff14 putting break like this simply makes all input goto only to CEGUI if (CEGUI::System::getSingleton().getDefaultGUIContext().injectKeyDown((CEGUI::Key::...
by gams
Fri Sep 18, 2015 10:30
Forum: Help
Topic: [Solved] Check if CEGUI has processed input
Replies: 6
Views: 7655

Re: Check if CEGUI has processed input

CEGUI does not handle inputs as long as you don't tell CEGUI that a key and which key has been pressed. Look here for a code snippet: https://bitbucket.org/lucebac/cegui/src/24f9921eacec2b2571c2b898e0d1afd693d89a46/application_templates/SDL2.cpp?at=v0-8&fileviewer=file-view-default#SDL2.cpp-273...
by gams
Fri Sep 18, 2015 07:01
Forum: Help
Topic: [Solved] Check if CEGUI has processed input
Replies: 6
Views: 7655

[Solved] Check if CEGUI has processed input

Hi How do you know the keyboard/mouse input has been processed by CEGUI so that you wont try to process it in your own code? for example I have code like this to capture input: SDL_Event event; while(SDL_PollEvent(&event)) { case SDL_KEYDOWN: switch(event.key.keysym.sym) { case SDLK_LEFT: // Do ...

Go to advanced search