Re: [fltk.general] change labelfont and labelsize in fltk 1.3.2

2013-02-21 Thread Ian MacArthur

On 21 Feb 2013, at 03:09, edgar wrote:

 I just installed Xext lib and compiled hello.cxx with -lXext.

 It compiled but still no change in labelfont and label size. :(

See my earlier post - I suspect you are missing more dev packs than just Xext...

Also, once you have installed the missing packages, you must re-run the fltk 
configure script, so that the fltk build will know that the libs are now 
available.




___
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk


Re: [fltk.general] change labelfont and labelsize in fltk 1.3.2

2013-02-21 Thread edgar

 On 21 Feb 2013, at 03:09, edgar wrote:

  I just installed Xext lib and compiled hello.cxx with -lXext.

  It compiled but still no change in labelfont and label size. :(

 See my earlier post - I suspect you are missing more dev packs than just =
 Xext...

 Also, once you have installed the missing packages, you must re-run the =
 fltk configure script, so that the fltk build will know that the libs =
 are now available.



 Thanks Ian,
I
I will add the libs you  and reconfigure.
Your support is terrific and greatly appreciated!
Best,
Edgar

___
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk


Re: [fltk.general] change labelfont and labelsize in fltk 1.3.2

2013-02-21 Thread edgar

 On 21 Feb 2013, at 03:09, edgar wrote:

  I just installed Xext lib and compiled hello.cxx with -lXext.

  It compiled but still no change in labelfont and label size. :(

 See my earlier post - I suspect you are missing more dev packs than just =
 Xext...

 Also, once you have installed the missing packages, you must re-run the =
 fltk configure script, so that the fltk build will know that the libs =
 are now available.



 Thanks Ian,
I
I will add the libs you  and reconfigure.
Your support is terrific and greatly appreciated!
Best,
Edgar

___
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk


Re: [fltk.general] change labelfont and labelsize in fltk 1.3.2

2013-02-21 Thread edgar

 On 21 Feb 2013, at 03:09, edgar wrote:

  I just installed Xext lib and compiled hello.cxx with -lXext.

  It compiled but still no change in labelfont and label size. :(

 See my earlier post - I suspect you are missing more dev packs than just =
 Xext...

 Also, once you have installed the missing packages, you must re-run the =
 fltk configure script, so that the fltk build will know that the libs =
 are now available.



 Thanks Ian,
I will add the libs you recommend and reconfigure.
Your support is terrific and greatly appreciated!
Best,
Edgar

___
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk


Re: [fltk.general] change labelfont and labelsize?

2013-02-19 Thread MacArthur, Ian (Selex ES, UK)

 On 18 Feb 2013, at 22:38, edgar wrote:
 
  Hi.
 
  I am not able to change labelfont() and labelsize() in fltk-1.3.2
  I am using the g++ compiler and Ubuntu 12.10.
 
  Here is an example of the code with Hello World:
 
  #include FL/Fl.H
  #include FL/Fl_Window.H
  #include FL/Fl_Box.H
 
  int main(int argc, char **argv) {
   Fl_Window *window = new Fl_Window(340,180);
   Fl_Box *box = new Fl_Box(20,40,300,100,Hello, World!);
   box-box(FL_UP_BOX);
   box-labelfont(FL_BOLD);
 
 
 FL_BOLD is not a font face name; it is a modifier.
 
 Perhaps you meant FL_HELVETICA or FL_HELVETICA_BOLD or some such?
 
 Note that, FL_HELVETICA_BOLD is actually the value (FL_HELVETICA |
 FL_BOLD)

Actually - I am sort of talking bollocks here: due to a
weird consequence of the way that the FLK numbers are set,
FL_BOLD on its own, does happen to equate to
FL_HELVETICA_BOLD in practice, though I'd be wary of relying
on that!

Given that that is the case, I do not know why your code does
not work.

It probably does not help if I say I just ran your code on this
test box, and it works fine here...


How did you build the fltk libs?
Do you have all the necessary dependencies in place (in my 
experience, Ubuntu is very bad for *not* including dev
packages that you need by default!)

Was anything odd flagged up during the configure or 
make phases?

How did you compile / link your code?

Given that your code appears to be correct, I have to guess
that something is a bit crook in your build environment,
though I can't see what it could be...



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


Re: [fltk.general] change labelfont and labelsize?

2013-02-19 Thread edgar
Thanks Ian,
I will check the tests and docs and post again if questions arise.
Cheers,
Edgar
___
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk


Re: [fltk.general] change labelfont and labelsize?

2013-02-18 Thread Ian MacArthur

On 18 Feb 2013, at 22:38, edgar wrote:

 Hi.
 
 I am not able to change labelfont() and labelsize() in fltk-1.3.2
 I am using the g++ compiler and Ubuntu 12.10.
 
 Here is an example of the code with Hello World:
 
 #include FL/Fl.H
 #include FL/Fl_Window.H
 #include FL/Fl_Box.H
 
 int main(int argc, char **argv) {
  Fl_Window *window = new Fl_Window(340,180);
  Fl_Box *box = new Fl_Box(20,40,300,100,Hello, World!);
  box-box(FL_UP_BOX);
  box-labelfont(FL_BOLD);


FL_BOLD is not a font face name; it is a modifier.

Perhaps you meant FL_HELVETICA or FL_HELVETICA_BOLD or some such?

Note that, FL_HELVETICA_BOLD is actually the value (FL_HELVETICA | FL_BOLD)

Take a look at the examples in the test folder, and see how label fonts and 
sizes are handled, and check the docs for text drawing and font handling 
details.

It'll all make much more sense...


  box-color(FL_WHITE);
  box-labelcolor(FL_GREEN);
  box-labelsize(36);
  box-labeltype(FL_ENGRAVED_LABEL);
  window-end();
  window-show(argc, argv);
  return Fl::run();
 }
 
 I can email a screenshot, but I don't see where to attach the screenshot
 to this message.  Thanks,
 Edgar Crockett
 
 
 ___
 fltk mailing list
 fltk@easysw.com
 http://lists.easysw.com/mailman/listinfo/fltk

___
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk