Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#7728 closed bug (invalid)

BTextControl::IsFocus() doesnt work correctly?

Reported by: cipri Owned by: axeld
Priority: normal Milestone: R1
Component: Kits/Interface Kit Version: R1/alpha3
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

BTextControl::IsFocus() returns always false in my case , even if I call MakeFocus() before calling IsFocus(). That means. Setting the focus works correclty, but IsFocus() return always false, even in real the BTextControl has the focus.

Change History (2)

comment:1 Changed 8 years ago by anevilyak

Resolution: invalid
Status: newclosed

That's actually correct ; MakeFocus() in the case of a BTextControl hands the focus to the contained BTextView, not to itself. Unfortunately, IsFocus() is non-virtual so it can't be overridden to return the focus state of the textview rather than the containing view. If you did control->TextView()->IsFocus() you would get true as expected in any case.

Note: See TracTickets for help on using tickets.