> What is the method to have the text show over the image that is
> set as a label? ...
1. Do you think you could possibly format your postings to fit
on a 72 character line? I use a wiiiiide browser window for
other sites, but that makes your postings are hard to read.
2. The FL_ALIGN_TEXT_OVER_IMAGE means in the vertical sense, not
in the z-buffer depth way. See the example below.
3. You could try overlaying one widget on top of another, but that's
really not recommended. You will need to open up a big can of worms
about boxes, frames and widget creation and drawing order.
Cheers
D.
Copy fltk-1.3/documentation/tiny.gif into your working directory,
generate code from the fluid file below, then fltk-config --compile
# data file for the Fltk User Interface Designer (fluid)
version 1.0110
header_name {.h}
code_name {.cxx}
Function {make_window()} {open
} {
Fl_Window {} {open
xywh {590 491 170 60} type Double visible
} {
Fl_Button {} {
label {I use}
image {tiny.gif} xywh {10 10 70 40} align 48
}
Fl_Button {} {
label Rocks
image {tiny.gif} xywh {90 10 70 40} align 16
}
}
}
Function {} {open
} {
code {Fl_Double_Window* mainWin = make_window();
mainWin->show(argc,argv);} {selected
}
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk