#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.
Note:
See TracTickets
for help on using tickets.
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.