Search found 86 matches

by Ninja
Thu Sep 11, 2008 22:35
Forum: Help
Topic: Combobox event problems
Replies: 9
Views: 5395

Thanks guys

thats got it to compile

just get an out of range error now on the string file ?

TIA
by Ninja
Thu Sep 11, 2008 17:00
Forum: Help
Topic: Combobox event problems
Replies: 9
Views: 5395

hiya if i understand you correctly in my h file i have bool SetFile(const CEGUI::EventArgs& e); then in the cpp i have bool MyUI::SetFile(const CEGUI::EventArgs& e) { // Get combobox CEGUI::Combobox* combo = static_cast<CEGUI::Combobox*>(static_cast<const WindowEvent...
by Ninja
Thu Sep 11, 2008 16:18
Forum: Help
Topic: Combobox event problems
Replies: 9
Views: 5395

hi ScriptKid i've tried as above and various other ways but i keep getting term does not evaluate to a function taking 1 arguments cb->subscribeEvent(CEGUI::Combobox::EventListSelectionChanged, CEGUI::Event::Subscriber(&MyUI::SetFile)); i also tried cb->subscribeEvent(CEGUI::...
by Ninja
Wed Sep 10, 2008 18:49
Forum: Help
Topic: Combobox event problems
Replies: 9
Views: 5395

hi ya Thanks again ScriptKid could you just confirm this will only work if pointing to a bool function what i mean is the function SetFile is a int i get this error when compiling int (__cdecl *)(const _TCHAR *,CEGUI::Combobox *)' : too few arguments for call should i change this in function to a bo...
by Ninja
Tue Sep 09, 2008 10:31
Forum: Help
Topic: Combobox event problems
Replies: 9
Views: 5395

Combobox event problems

Hi Guys okidoki thanks to ScriptKid who pointed me in the right direction for my last problem :D i know have files from a folder being displayed in the combobox list :shock: :D my problem is whats the correct way of seeing an EventSelectionChanged as this will be needed to set up other things in the...
by Ninja
Sat Sep 06, 2008 11:45
Forum: Help
Topic: how to display filetypes
Replies: 4
Views: 2807

Hi ScriptKid

Thanks for the help much appreciated
by Ninja
Thu Sep 04, 2008 12:28
Forum: Help
Topic: how to display filetypes
Replies: 4
Views: 2807

hi ScriptKid

thanks for your answer could i use the win32 api for this ? and if so do you know of any examples of this.


TIA
by Ninja
Wed Sep 03, 2008 12:58
Forum: Help
Topic: how to display filetypes
Replies: 4
Views: 2807

how to display filetypes

Hi Guys

how can i display all files in a folder in a combobox they will mainly be mp3 type files then dispaly the file name in a editbox

and what would be better for this a listbox or combobox


TIA
by Ninja
Sun Aug 31, 2008 19:43
Forum: Help
Topic: [Solved] Itemlist box help
Replies: 25
Views: 14591

Thanks Daves

no doubt i be asking more Questions soon :lol:
by Ninja
Sat Aug 30, 2008 23:01
Forum: Help
Topic: [Solved] Itemlist box help
Replies: 25
Views: 14591

wow wasnt as bad as i thought to get it working :lol: anyways here is the code i now have bool mainUI::PicOK(const CEGUI::EventArgs& args) { using namespace CEGUI; try { WindowManager& winMgr = WindowManager::getSingleton(); Editbox* pic_txt = static_cast<Editbox*>&...
by Ninja
Sat Aug 30, 2008 22:46
Forum: Help
Topic: [Solved] Itemlist box help
Replies: 25
Views: 14591

hiya little update :D :D i changed the string to String setProperty = list_item->getText(); and now when i select any item it displays its name correctly in the edit box :D so hopefully now all that i need to do is change the function so it changes the pic will keep you updated and hopefully...
by Ninja
Sat Aug 30, 2008 22:00
Forum: Help
Topic: [Solved] Itemlist box help
Replies: 25
Views: 14591

hiya ok a little update here's what i have got now i changed teh String as below bool mainUI::PicOK(const CEGUI::EventArgs& args) { using namespace CEGUI; try { WindowManager& winMgr = WindowManager::getSingleton(); Editbox* pic_txt = static_cast<Editbox*>(winMg...
by Ninja
Fri Aug 29, 2008 16:54
Forum: Help
Topic: [Solved] Itemlist box help
Replies: 25
Views: 14591

Hi Daves i treied the way you suggested and it didnt show the names but it did however show that a item was initially selected but dosnt change if you deselect the item So i tried putting it back to how i had it before and editing the PicOK function it now looks like bool mainUI::PicOK(const CEG...
by Ninja
Fri Aug 29, 2008 14:38
Forum: Help
Topic: [Solved] Itemlist box help
Replies: 25
Views: 14591

hi Daves To keep things simple and make sure i was doing things correctly at present i have the following from pressing the image button on the main screen it brings up this page bool mainUI::picselect( const CEGUI::EventArgs& e) { using namespace CEGUI; try { WindowManager&...
by Ninja
Thu Aug 28, 2008 21:04
Forum: Help
Topic: [Solved] Itemlist box help
Replies: 25
Views: 14591

hi Daves thanks for all the help so far really appreciate it from what i can make out and adding this list_item->setSelected(true); seems to confirm my suspicions that pic 03 is the selected image when running the code as the text is highlighted with the selection brush so if i'am right my c...

Go to advanced search