Clarification on PtIsFocused()

Hello.

I was just reading the information about the PtIsFocused() call in the
QNX4 helpviewer and I had a question about something that I read. In
the section on the return codes, it talks about concepts of “The widget
is on the focus branch” and “The widget is the focus leaf”. What
exactly are the focus branch and focus leaf, and if I was to say use
this function with a PtNumericFloat widget, which of these two cases
would imply that the widget had focus?

Thanks very much.


Rodney Lott
Software Developer
Fuel Cell Technologies Ltd.
Work: (613) 544-8222 x.119
Fax: (613) 544-5150
To reply, remove the “NOSPAM.” from the “Reply-To” address

Hi Rodney,

I have spoken with one of the developers here is the explaination of
focus leaf and focus branch that I got. The widget heirarchy is a set
of trees. The widget that you would normally say has focus is what is
called the “focus leaf”. Its parent, grandparent, and so on, up to the
“root” (window), are considered the “focus branch”. In other words, a
widget is on the focus branch if the focus leaf is somewhere inside it.

Hope this helps
Regards
Brenda


Rodney Lott wrote:

Hello.

I was just reading the information about the PtIsFocused() call in the
QNX4 helpviewer and I had a question about something that I read. In
the section on the return codes, it talks about concepts of “The widget
is on the focus branch” and “The widget is the focus leaf”. What
exactly are the focus branch and focus leaf, and if I was to say use
this function with a PtNumericFloat widget, which of these two cases
would imply that the widget had focus?

Thanks very much.