> As mentioned in earlier posts, I'm using FLTK to create a "PC
> Oscilloscope" and so need a Front Panel. I've used box frames to draw
> borders around control groups, and labelled boxes for control labels.
> Some of these provoke "unused variable" warnings from the compiler - not
> a problem - but as a novice GUI designer it makes me wonder whether I've
> adopted an optimum solution. A screenshot can be found here (please
> excuse the prototype "clunky" appearance):
>
http://52midnight.com/tmp/SNPS.gif
Looks fine for a first pass.
(Also, note that it's usually OK to post (not too large!) images in line here, to save people having to fetch 'em from elsewhere to view...)
> I'm aware that other methods exist, e.g. using background pixmaps over
> which the FLTK widgets are drawn, but would much appreciate the advice
> of those more experienced.
> What is the preferred - or least CPU intensive - method of implementing
> such things?
There's no "right" way, since it will depend on what all is happening.
Note that fltk widgets are pretty cheap to maintain - they only really cost you CPU when they are being redrawn, and they need a bit of RAM to "exist in", but often times less than an analogous pixmap would take.
For my part, I usually use "real" widgets, with a few pixmaps to help our at times.
Greg has a nice example here:
http://www.seriss.com/people/erco/fltk/#Altimeter
That uses a mixture of fltk widgets and pixmaps to produce quite a nice looking result.
If you've not seen it before, Greg's examples page is a handy crib sheet for useful ideas to build on.
Leonardo MW 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.
********************************************************************