Skip to Content
author's profile photo Former Member
Former Member

Set the focus to a FormatedTextEdit


in my application I have a FormatedTextEdit-Control with showFormattingOptions enabled. This control is embedded in a tab-control. When the users clicks on the tab the FormatedTextEdit-Control is presented but the input-cursor for editing text is not shown. So, I have to click in that control or press tab once to enter some text. This is not very comfortable.

I tried to set the cursor with some code (request_focus_on_view_elem( ) and if_wd_view_controller~request_focus( ) ) but without success. It seems, that the focus is on the first button (the bold button) of the FormatedTextEdit-Control.

How can I set the focus in the FormatedTextEdit-Control, that the user can enter data immediate?

My browser is IE8.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jul 19, 2011 at 01:02 PM

    This message was moderated.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Kris,

      thank you for your link, but I think the linked thread is different to my problem.

      I only want to place a user-text-input-cursor in a ui-control when I show this ui-control to the user. I solved this problem with a piece of code (as described in my thread) for a TextEdit control, but this doen't work for a FormatedTextEdit. As described it seems that the focus is placed at the first buttom of this control.


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.