Re: set_focus()



Andreas Hauber wrote:

im trying to set the focus back on my textview after pressing a save button. I tried this:

this->set_focus_child(*txtFrage);
and it compiled. But the cursor wasn’t set in the textview.

I believe what you want is txtFrage->grab_focus();

Cheers,
Tim



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]