set Window(Editbox) as active?

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

djphilipe
Quite a regular
Quite a regular
Posts: 48
Joined: Thu Aug 23, 2007 10:15
Location: Slovakia
Contact:

set Window(Editbox) as active?

Postby djphilipe » Mon Nov 19, 2007 11:41

How I set a window(Editbox) as active?
Because I am doing KeyBoard(keys as images) and I want CARAT always show.
Sorry my Engish :(

Thanks

djphilipe
Quite a regular
Quite a regular
Posts: 48
Joined: Thu Aug 23, 2007 10:15
Location: Slovakia
Contact:

Postby djphilipe » Mon Nov 19, 2007 15:06

However the editbox is not active,carat is always visible.
How please?

Rackle
CEGUI Team (Retired)
Posts: 534
Joined: Mon Jan 16, 2006 11:59
Location: Montréal

Postby Rackle » Mon Nov 19, 2007 21:04

Have a look at the Tab_Order code snippet. The Taharez scheme does not have a visual cue for every selected widget. In that code I show one way of displaying a highlight. However the best solution would be to create a scheme that actually displays the selected widget, such as dotted lines around the text of the widget.

djphilipe
Quite a regular
Quite a regular
Posts: 48
Joined: Thu Aug 23, 2007 10:15
Location: Slovakia
Contact:

Postby djphilipe » Tue Nov 20, 2007 07:45

Thanks.


I have solved the problem.

pEditBox->setText(m_sActualText);
pEditBox->activate();
pEditBox->setCaratIndex(m_stCaratPos);


Return to “Help”

Who is online

Users browsing this forum: No registered users and 11 guests