> On 10/17/11 16:52, David wrote:
> > Looking for where labels xywh are set was murky.  Instead I just created a 
> > class for now:
>
>       Yes, this is a decent solution, though I think a more solid one
>       would be to override draw() so that if the parent's bgcolor is
>       something other than FL_INACTIVE_COLOR, it will still look right.

Probably correct, but I just needed something using defaults for now.  What 
would the overridden draw() look like?


Anyway, so I found that the shortcuts done like &label don't automatically work 
on everything, so I thought I'd do Text.set_flag(SHORTCUT_LABEL).  But set_flag 
is protected as is the enumerator with no other methods available for enabling 
that flag publicly.  However, it looks like even if that flag is set (I set it 
on the group for a test), it doesn't honor the hotkeys.  So I guess I need to 
turn around and override it so if that hotkey is pressed, select the next 
control that can receive keyboard focus.  What would that handler look like?

Thanks!!

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to