> so, i have this browser that sais "you can't handle me" 
> when i press "down" on it. it just wont select the next 
> item. :(
> i have another browser in my ui, (same class: Browser, 
> subclassed from Fl_Hold_Browser), which behaves like 
> expected: i select it, press down-key, it selects the next 
> item.
> whats the difference? both live in the same group, same 
> class, .. but the one that misbehaves lives inside a box.  
> well, not inside, but i put a box "around" to group it with 
> some other widgets visually. anyway, the "down-key" event 
> goes to a far away widget, one that even isnt inside this 
> box...
> 
> enlightenment please

The event handling can be tricky (see Albrecht's earlier posts for
example!) so we might have to see a minimal compileable example that
manifests the bug...

The main thing for keyboard events is probably to have your subclassed
widget return non-zero for focus events... If it does not, it possibly
will not get the keyboard events at all.
Also, in the same way, you have to ensure that you don't have widgets
claming events that they shouldn't.

That said, why it should work for one browser and not for another is
tricky, and may depend on the order of the widgets, or whether they have
an invisible widget lying on top of them, or something similar, so we
probably need to see a cut down version that we can trace the bug in...




SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

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

Reply via email to