Search found 130 matches

by Mikademus
Wed Apr 01, 2009 19:05
Forum: Help
Topic: Resolving order of events - single and double clicks
Replies: 25
Views: 3691

Well, some code is perhaps in order: struct TestHandler { bool onClick( CEGUI::EventArgs const & ) { MessageBeep( MB_CANCELTRYCONTINUE ); return true; } bool onDoubleClick( CEGUI::EventArgs const & ) { MessageBeep( MB_ICONEXCLAMATION ); ret...
by Mikademus
Wed Apr 01, 2009 18:09
Forum: Help
Topic: Resolving order of events - single and double clicks
Replies: 25
Views: 3691

Resolving order of events - single and double clicks

My buttons subscribe to both singe and double clicks (it is a game context, and single-click selects the entity while double-clicking focuses the camera on it). However, when double-clicking the button it seems like the events are resolved into a single-click event followed by a double-click. Am I m...
by Mikademus
Sat Mar 21, 2009 21:48
Forum: Help
Topic: [solved] Windows wchar_t to CEGUI
Replies: 3
Views: 717

Thanks for the reply CE, as well as for the pointer to WideCharToMultiByte! :) I'm posting my solution here for review in the hope that Windows/OGRE users may have some use of it: CEGUI::String WCharToUTF8( std::wstring const &rWStr ) { if (sizeof(wchar_t) == sizeof(...
by Mikademus
Sat Mar 21, 2009 00:01
Forum: Help
Topic: [solved] Windows wchar_t to CEGUI
Replies: 3
Views: 717

[solved] Windows wchar_t to CEGUI

Hi, My app is only using char_t (std::wstring). I'm trying to pass this to CEGUI (through the setText() member) casting to CEGUI::utg8, however all stirngs are cut off after the first character (which means that the string parser finds a /0 in it). How do I pass a wchar_t* to CEGUI? std::wstring uni...
by Mikademus
Thu Mar 19, 2009 15:55
Forum: Help
Topic: [to be fixed in 0.7] MultiColumnList items cannot fill space
Replies: 4
Views: 653

As a temporary work-around, you may want to just reduce the size of the last column by the width of the vertical scrollbar. It is not an ideal solution, but it is simple and gets rid of the horizontal scrollbar: float vsbw = mcl->getVertScrollbar()->getPixelSize().d_width; mcl->addC...
by Mikademus
Thu Mar 19, 2009 15:48
Forum: Help
Topic: [solved] ListBoxTextItem::setText() not updating window
Replies: 3
Views: 896

Thanks! That was it!

I was going to make an article at the wiki about using MCLs, but I couldn't register... :( Pity, since CEGUI really needs more documentation and guides.
by Mikademus
Wed Mar 18, 2009 21:01
Forum: Help
Topic: [solved] ListBoxTextItem::setText() not updating window
Replies: 3
Views: 896

[solved] ListBoxTextItem::setText() not updating window

In my learning CEGUI under OGRE I've made a spiffy FPS-related info window consisting of a MultiColumnList. The design went nice, and it draws, the only problem is that it doesn't update the text fields when calling setText() on them*. Or rather, it seems that if will update once, and then not accep...
by Mikademus
Wed Mar 18, 2009 20:55
Forum: Help
Topic: [to be fixed in 0.7] MultiColumnList items cannot fill space
Replies: 4
Views: 653

Hi!

I'm using the vanilla (Taharez) layout when prototyping. Since the app is still in prototype phase it doesn't matter that it looks a bit wonky (though it messes with my obsessive programmer mentality, of course), and I'm glad to hear its being worked on!
by Mikademus
Wed Mar 18, 2009 19:21
Forum: Help
Topic: [to be fixed in 0.7] MultiColumnList items cannot fill space
Replies: 4
Views: 653

[to be fixed in 0.7] MultiColumnList items cannot fill space

I use MutliCOlumnLists with fixed contents in my app, but they look quite bad because they cannot fill the entire window or even encroach into the space where scroll bars would be if there were any or the scrollbars will be displayed. Especially since the default style has coloured backgrounds in th...
by Mikademus
Wed Mar 18, 2009 19:16
Forum: Bug Reports, Suggestions, Feature Requests
Topic: Fix for Multicolumn list scrollbars showing up when unneeded
Replies: 7
Views: 5272

Has this been added to the code base? I find nothing of it in the documentation and have this issue.

That is, the items of my multicolumnlist cannot fill the box, or even overlap the space where a scrollbar would be if it was there, without them showing up. Looks very ugly.

Go to advanced search