Hans George wrote:
>> Hello experts
>>
>>
>> It would be great, if anyone of you has got an idea how to remove this
>> border, or at least how to color it black (I already tried to overload the
>> draw-methode of the menu and draw everything black, but the border still
>> stayed yellow ...), that would be great too ^^
>
Read the Menu popup docs.
- The popup menu window itself uses the box() that is stored
in MenuWindow::default_style. It is not possible (or at least
not easy) to make different popups have different borders.
By default the box for that window is an UpBox. Change it to some other
box style like fltk::FLAT_BOX and it will change all popup menus.
The actual border is drawn by a hiliting function which uses the box's
data() values to color the box border at runtime. For a better
explanation, see: fltk::drawframe in UpBox.cxx. You can remove the
border by changing the data() function for UpBox (but that will change
all UpBoxes everywhere) or just creation your own UpBox type, with a
different data string than UpBox uses.
--
Gonzalo Garramuño
[EMAIL PROTECTED]
AMD4400 - ASUS48N-E
GeForce7300GT
Kubuntu Edgy
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk