hello,
this is the situation:
main() creates an instance of my "ui" class which contains
a piano widget. main calls ui->startup(); which first shows
a window of ui and then creates instances of other objects
which will then feed the ui widgets with some data.
the piano widget is one of those receivers. the data it
receives will be used with information with x() and y()
values of piano. so, piano receives the external data,
calculates some values based on this data and x() and y(),
and is happy.
but, sometimes it happens that the piano doesnt know its
x() and y() in the moment the data is being received,
resulting in garbage data.
now, the x() and y() information is available when the
piano widget is first being drawn, right?
why isnt piano finished drawing when i instanciate my other
objects AFTER calling w_main->show(); ?
w_main->show();
ctrl = new ctrl(); // gets external data, feeds it to
widget...widget however has not been drawn yet.
any ideas? thank you, ")
jane
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk