> preference->entries() returns the number of line with text on them.
> Comment lines are included in the count not just name value pairs as
> documented.
> 
> Version 1.3
> 
> I am using a perfs file as a language file where each entry has a
> number for its name.
> 
> eg.
> 
> ; button menu on the left
> 0:Chord, Arc and Sector
> 1:Triangle one
> 2:Triangle two
> 3:Dovetail
> 4:Bolt circle
> 5:Thread measurement
> 6:Dividing head
> 7:Tap drill
> 8:Regular Polygon (hexagons etc.)
> 9:Set metric as default
> 10:Set inch as default
> 11:About
> 12:Quit
> 
> ; the window title
> 13:Metal Shop Calculator (metric mode)
> 14:Metal Shop Calculator (inch mode)
> 
> The erroneous result returned by preference->entries() make a work
> around necessary, it is not elegant and detracts from the robustness I
> had initially intended.

Richard,

Can you show us a minimal worked example, please - I'm not sure I'm
grasping what you are doing with the entries() method...

Something complete enough to compile, if possible, as that makes it more
likely someone will have time to investigate!

Cheers,
-- 
Ian



SELEX Galileo Ltd
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