26.03.2007 gga <[EMAIL PROTECTED]> wrote:
> > Milan wrote:
> >
> > X_CreatePixmap: BadValue (integer parameter out of range for operation)
> > 0x0 X_CopyArea: BadDrawable (invalid Pixmap or Window parameter) 0x3400020
> > ailman/listinfo/fltk
> >
>
> yes, this is the incorrect X11 atoms. I've sent a patch for it for
> fltk2, albeit it seems the bug is also in fltk1, which I don't use.
Just to be sure about this, and avoid unnecessary misunderstanding, let me
specify in detail my program structure about this issue:
There's a main window class derived from fltk::Window which holds all
mentioned components. The following is that class and corresponding methods
(callback functions):
// --- Begin ---
class MainWindow : public Window {
// ...
private:
Input *wordInput;
HighlightButton *optButton;
Window *browserWindow;
Browser *browser;
static void cb_mainWindow(Widget *w, void *v) {
((MainWindow *)v)->cb_mainWindow_i();
}
inline void cb_mainWindow_i();
static void cb_wordInput(Widget *w, void *v) {
((MainWindow *)v)->cb_wordInput_i();
}
inline void cb_wordInput_i();
// ...
};
MainWindow::MainWindow(int w, int h, const char *ime):
Window(w, h, ime) {
begin();
wordInput = new Input(INPUT_X_POS, INPUT_Y_POS,
INPUT_WIDTH, INPUT_HEIGHT);
wordInput->callback(cb_wordInput, this);
wordInput->when(WHEN_CHANGED);
wordInput->color(INPUT_COLOR);
wordInput->tooltip(INPUT_TOOLTIP);
optButton = new HighlightButton(OPTION_BTN_X_POS,
OPTION_BTN_Y_POS, OPTION_BTN_WIDTH, OPTION_BTN_HEIGHT, "");
optButton->callback(cb_optButton, this);
optButton->tooltip(OPT_BUTTON_TOOLTIP);
optButton->image(pngImage::get("option_icon.png"));
browserWindow = new Window(BROWSER_WND_WIDTH,
BROWSER_WND_HEIGHT);
browserWindow->begin();
browser = new Browser(BROWSER_X_POS, BROWSER_Y_POS,
BROWSER_WIDTH, BROWSER_HEIGHT);
browser->column_labels(BROWSER_LABELS);
browser->column_widths(BROWSER_COL_WIDTHS);
browser->deselect();
browser->color(BROWSER_COLOR);
browserWindow->end();
browserWindow->border(false);
browserWindow->set_non_modal();
// ...
end();
callback(cb_mainWindow);
browserWindow->child_of(this);
browserWindow->resize(0, 0);
browserWindow->show();
}
void MainWindow::cb_mainWindow_i() {
exit(0);
}
void MainWindow::cb_wordInput_i() {
int bx, by;
by = (y() - BROWSER_WND_HEIGHT > 0 ? y() - BROWSER_WND_HEIGHT : y() +
h()); browserWindow->position(x(), by);
if (wordInput->size() > 0) {
browser->clear();
// ...
browserWindow->resize(x(), by, BROWSER_WND_WIDTH,
BROWSER_WND_HEIGHT);
} else {
browser->clear();
browserWindow->resize(0, 0);
}
}
// ...
// --- End ---
If there was any doubt about this issue, I hope this will clarify it.
Also since I would like to continue my work as soon as possible, can someone
please tell me how long will it take for FLTK 2.x library to gets patched, so
I can replace my current version of FLTK 2.x library, and start to use
corrected one?
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk