Opened 14 years ago

Closed 14 years ago

Last modified 14 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:
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 by anevilyak, 14 years ago

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.