Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Hi all,
I have created a text widget which is placed into a root container.
But the problem is I can't write onto the text widget.

Is anybody knows the solution? Please help me.

BR,
Shahid

Is it focused? If not, use IRootContainer_MoveFocus (after inserting all the widgets into root container) to get focus on text widget.
Make sure to pass all the events to root container.

Is it focused? If not, use IRootContainer_MoveFocus (after inserting all the widgets into root container) to get focus on text widget.
Make sure to pass all the events to root container.

Hello,
I do not find the function IRootContainer_MoveFocus .
But i have used IWIDGET_MoveFocus.
So what can i do now?
BR,
Shahid

Hello,
I do not find the function IRootContainer_MoveFocus .
But i have used IWIDGET_MoveFocus.
So what can i do now?
BR,
Shahid

Sorry, you are correct!

Sorry, you are correct!

Hi Atul,
Though i am using IWIDGET_MoveFocus but also i am not able to write into the text box.
So what is the problem??
can you please tell me?
BR,
Shahid

Hi Atul,
Though i am using IWIDGET_MoveFocus but also i am not able to write into the text box.
So what is the problem??
can you please tell me?
BR,
Shahid

hi,
To enter anything to text widget the key event must be handle by that text widget. make sure that all events are passing to IROOTFORM_HandleEvent. RootForm internally knows which is the focused widget it will deliver those events to that text widget. For this your application event handler should not handle the EVT_KEY events (comment that part). I hope it will work here is one snippet.
boolean _HandleEvent(....)
{
switch(eCode)
{ ........................
//case EVT_KEY:
// return
..................

return IROOTFORM_HandleEvent(IRootForm *,eCode,wparam,dwParam);

hi,
To enter anything to text widget the key event must be handle by that text widget. make sure that all events are passing to IROOTFORM_HandleEvent. RootForm internally knows which is the focused widget it will deliver those events to that text widget. For this your application event handler should not handle the EVT_KEY events (comment that part). I hope it will work here is one snippet.
boolean _HandleEvent(....)
{
switch(eCode)
{ ........................
//case EVT_KEY:
// return
..................

return IROOTFORM_HandleEvent(IRootForm *,eCode,wparam,dwParam);