FLTK logo

Re: [fltk.general] A box appears round an Fl_Help_View instance

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: A box appears round an Fl_Help_View instance Albrecht Schlosser Jul 14, 2022  
 
On 7/14/22 17:21 Greg Ercolano wrote:

On 7/14/22 07:04, 'pvr...@btinternet.com' via fltk.general wrote:

I am generating labels from my database and am generating HTML using a template and fields from the database. I then send this HTML to an instance of Fl_Help_View. Despite setting box(FL_NO_BOX) on the instance I still see a box appear.
[...]
I don't really want the box vixible when I print. Any suggestions how I get around this?

Unfortunately this widget uses FL_DOWN_BOX internally if you don't set a box type or set it to FL_NO_BOX.

Instead of disabling the box(), try setting it to FL_FLAT_BOX.

Yep, that's probably the best way to work around this "special feature". I don't know why this was done but it's this way since Fl_Help_View was added to FLTK around 2001. Thus it can't be changed but I documented this special behavior a few minutes ago. The docs should be updated within an hour on our gitlab server:
https://fltk.gitlab.io/fltk/classFl__Help__View.html

    If you make sure the color() of the background is the same as the parent widget,
    it won't seem visible.

That's a good hint.

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/a3beb428-a011-b128-eba9-0e25c5f006ac%40online.de.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.