|
|
On 9/16/22 14:48, roger tunnicliffe
wrote:
Thx for the reply (sorry can't see your name).
I am wondering then what would be the use cases for each
particular syntactical version. ie.
When and why would i use this code....
Fl_Button fltkButton(25, 20, 70, 50, "button1");
noting it requires fltkButton.labelsize(12);
as opposed to this code....
Fl_Button *fluidButton = new Fl_Button(25, 80, 70,
50, "button2");
noting it requires fltkButton->labelsize(12);
Probably no good reason, other than it's shorter.
If you're new to C++, I'd suggest always using 'new' to create
FLTK widgets so you don't have to worry about widgets going
out of scope prematurely.
--
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/ae4bc809-3f6c-c3b3-c614-dd34716ff9f9%40seriss.com.
[ Direct Link to Message ] | |
|
| |