> I am using fltk-1.1.10 and I have in my menu some check menu items.
> Their settings shall be updated according to some preference
> information. I do this using the 'Name' of the menu item defined by
> FLUID in the property dialog of the item.
> So I write
>       PTimeBaseRELA->setonly();
> (with PTimeBaseRela being the 'name' of the menu item)
> 
> But it doesn't work. Instead the predecessor menu item is set!
> Looking in the generated .h file the 'Name' is defined (in my case) as
> #define PTimeBaseRELA (menu_PMenuBar+23)
> 
> But for my opinion it should be
> #define PTimeBaseRELA (menu_PMenuBar+24)
> 
> Indeed, it can be fixed by using
>       (PTimeBaseRELA+1)->setonly();
> 
> But this behaviour is very confusing. I thing the calculation of the
> menu item offsets in fluid is buggy.

Hmm, that does sound wrong: if possible, can you post a minimal fluid file, 
maybe just showing your menu layout, that exhibits the fault?

It would be very useful to see how your menus are laid out, so we can see where 
the discrepancy arises!

Thanks...



********************************************************************
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
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to