Search found 83 matches

by belkacem
Sun Jun 12, 2011 10:38
Forum: Help
Topic: EventArgs Question!!
Replies: 1
Views: 186

EventArgs Question!!

hi again my question is simple ! is it possiible to get handle of EventArgs without pass it throw function !!! normal using bool myfunction(const EventArgs &e) { ............ return true ; } i need something like this bool myfunction(void) { const EventArgs &e = // something her to set the v...
by belkacem
Tue May 31, 2011 19:57
Forum: Help
Topic: Static window
Replies: 4
Views: 380

Re: Static window

check your case in loop Message you should have something like this case WM_MOUSEMOVE: POINT p ; ::GetCursorPos ( &p); ::ScreenToClient (hwnd , &p); CEGUI::System::getSingleton().injectMousePosition(p.x, p.y); break; case WM_LBUTTONDOWN: CEGUI::System::getSingleton().injectMouseButtonDown(CE...
by belkacem
Tue May 31, 2011 19:53
Forum: Help
Topic: Button clicked evet
Replies: 6
Views: 395

Re: Button clicked evet

i don't know what is your problem exactly but
i think you should read this

http://cegui.org.uk/api_reference/classCEGUI_1_1Event.html#a0ef19f1fda5ea2eb9dac93d7f6bb6537
by belkacem
Mon May 30, 2011 18:16
Forum: Help
Topic: Get Event From another class
Replies: 7
Views: 466

Re: Get Event From another class

look what i found ...
maybe this solved the problem i will try

http://blog.orionedwards.com/2006/09/function-pointers-in-cc-and-boostbind.html
by belkacem
Mon May 30, 2011 06:48
Forum: Help
Topic: Get Event From another class
Replies: 7
Views: 466

Re: Get Event From another class

That said you haven't read my reply obviously, keyword "operator" is not in your source, which kind of annoys me No I read your post and try the operator and it not work so i delete it I think you lack fundamentals in function pointers and how it all works i have some weakness in c++ beca...
by belkacem
Sun May 29, 2011 19:35
Forum: Help
Topic: Get Event From another class
Replies: 7
Views: 466

Re: Get Event From another class

i am sorry but i still have the same problem even with your operator() error C2064: term does not evaluate to a function taking 1 arguments c:\cegui-sdk-0.7.5-vc10\cegui\include\ceguifunctorcopyslot.h i will post the full code header.h class GUI_Event { private: /* event fired on left mouse click*/ ...
by belkacem
Sun May 29, 2011 15:13
Forum: Help
Topic: Questions about editbox and multieditox
Replies: 5
Views: 487

Re: Questions about editbox and multieditox

Your input injection code is potentially wrong or at least dangerous.


can you explain this topic
by belkacem
Sun May 29, 2011 13:53
Forum: Help
Topic: Get Event From another class
Replies: 7
Views: 466

Re: Get Event From another class

this exactly what i want but when i inject mouse input i get this error error C2064: term does not evaluate to a function taking 1 arguments c:\cegui-sdk-0.7.5-vc10\cegui\include\ceguifunctorcopyslot.h example : class Functor { public: bool _OnClick( const EventArgs& args ) {.......................
by belkacem
Sun May 29, 2011 13:42
Forum: Help
Topic: Questions about editbox and multieditox
Replies: 5
Views: 487

Re: Questions about editbox and multieditox

1) Don't take time to write quality messages, it's an agony to read them 2) Never provide enough relevant information thank you for your notes !! i always try lot of code and cases before i ask , then i search lot and lot then i ask more and more .... about my question i will try to ask it on anoth...
by belkacem
Sun May 29, 2011 09:37
Forum: Help
Topic: Questions about editbox and multieditox
Replies: 5
Views: 487

Questions about editbox and multieditox

hello again ! i have question about edit box and multieditbox 1- i create edit box and i succeeded to render it but i cant edit it if i click to input a new text i select the text but i can't delete or change it so my question whats need more to input new text!! her is the code edit = static_cast <E...
by belkacem
Sun May 29, 2011 08:46
Forum: Help
Topic: Get Event From another class
Replies: 7
Views: 466

Get Event From another class

hello again !! i have a question about event i some times use event like this Obj->subscribeEvent ( Obj::EventMouseClick ,Event::Subscriber (Function, this )); but this time i want to take the function from another class and pass it throw Event::Subscriber like this : class GUI_Event { private: bool...
by belkacem
Thu May 26, 2011 20:24
Forum: Help
Topic: Event::Subscriber and pointer to a member function
Replies: 2
Views: 583

Re: Event::Subscriber and pointer to a member function

aha !!!

thank you

i fix the problem like this


bool ( GUI_Window::*PTF ) ( const EventArgs & );
PTF = &GUI_Event::Get_L_Mouse_Click_DoFunction ;
_Frame_Window->subscribeEvent ( FrameWindow::EventMouseClick , Event::Subscriber (PTF , this));
by belkacem
Thu May 26, 2011 18:41
Forum: Help
Topic: Event::Subscriber and pointer to a member function
Replies: 2
Views: 583

Event::Subscriber and pointer to a member function

hello again !! every object in the program must has event so , i use it ; first when i do something like this /// while PTF is simple function bool PTF ( const EventArgs &Arg ) { cout << "aha you click me ! " << endl << endl ; } _Frame_Window->subscribeEvent ( FrameWindow::EventMouseCl...
by belkacem
Fri May 20, 2011 17:08
Forum: Help
Topic: Failed To Create Combobox
Replies: 7
Views: 833

Re: Failed To Create Combobox

aha !! thank you
by belkacem
Fri May 20, 2011 14:15
Forum: Help
Topic: Failed To Create Combobox
Replies: 7
Views: 833

Re: Failed To Create Combobox

sorry! but i have more two questions :oops: :oops: :oops: 1- i change the type of the combo box from TaharezLook/ComboDropList to TaharezLook/ComboEditbox and i succeeded to draw it into the screen , now when i to add item to the combo box i get this error [color=#FF0000]CEGUI::UnknownObjectExceptio...

Go to advanced search