Re: [fltk.general] dynamic gui widgets

2011-08-21 Thread Rajesh Kumar
How to make black colour window in fltk2.0 On Sun, Aug 21, 2011 at 11:56 PM, Greg Ercolano wrote: > On 08/21/11 09:06, asif saeed wrote: > > Is there any code example illustrating constructing an FLTK based GUI > > dynamically? Particularly, the menu bar/menus/menu items? Can you provide > > any

Re: [fltk.general] Automatic adding of children to FLTK groups

2011-08-21 Thread asif saeed
Hi Greg, On Sun, Aug 21, 2011 at 11:30 PM, Greg Ercolano wrote: > On 08/21/11 09:22, asif saeed wrote: > > Hi, > > > > Is there any way I could prevent my widgets from getting added to fltk > > groups automatically and have the ability to add fltk widgets to fltk > groups > > myself - dynamicall

Re: [fltk.general] dynamic gui widgets

2011-08-21 Thread asif saeed
Thank you, Greg. On Sun, Aug 21, 2011 at 11:26 PM, Greg Ercolano wrote: > On 08/21/11 09:06, asif saeed wrote: > > Is there any code example illustrating constructing an FLTK based GUI > > dynamically? Particularly, the menu bar/menus/menu items? > Also, there's several Fl_Menu oriented e

Re: [fltk.general] win32-X11 drawing coordinates

2011-08-21 Thread Richard Sanders
On Sun, 21 Aug 2011 14:46:57 -0700, Albrecht Schlosser wrote: >>> Here is an example >>> >>> static void DrawRod(int x, int y, int d) >>> { >>> int r = d>> 1; >>> fl_color(FL_RED); >>> #ifdef WIN32 >>> fl_pie(x, y, d, d, 0, 360); >>> #else >>> fl_pie(x, y, d + 1, d + 1, 0, 360); >>> #en

Re: [fltk.general] win32-X11 drawing coordinates

2011-08-21 Thread Albrecht Schlosser
On 21.08.2011 23:46, Albrecht Schlosser wrote: > For such tests you should look at test/unittests (in file > test/unittest_circles.cxx). I modified it according to your recipe > above, but with this "fix" the pie becomes asymmetric, hence a better > "fix" might be to subtract 1 from x and 1 and to

Re: [fltk.general] win32-X11 drawing coordinates

2011-08-21 Thread Albrecht Schlosser
On 21.08.2011 20:13, Richard Sanders wrote: >>> There seems to be an out by one error in drawing coordinate between >>> win32 and X11/ >>> >>> Here is an example >>> >>> static void DrawRod(int x, int y, int d) >>> { >>> int r = d>> 1; >>> fl_color(FL_RED); >>> #ifdef WIN32 >>> fl_pie(x, y,

Re: [fltk.general] Automatic adding of children to FLTK groups

2011-08-21 Thread Greg Ercolano
On 08/21/11 09:22, asif saeed wrote: > Hi, > > Is there any way I could prevent my widgets from getting added to fltk > groups automatically and have the ability to add fltk widgets to fltk groups > myself - dynamically? begin() and end() are the way to control this. If you end()

Re: [fltk.general] dynamic gui widgets

2011-08-21 Thread Greg Ercolano
On 08/21/11 09:06, asif saeed wrote: > Is there any code example illustrating constructing an FLTK based GUI > dynamically? Particularly, the menu bar/menus/menu items? Can you provide > any guidelines as to how to proceed in this direction? See the fltk 1.3.0 example/menubar-add.cxx which

Re: [fltk.general] win32-X11 drawing coordinates

2011-08-21 Thread Richard Sanders
On Sun, 21 Aug 2011 01:58:52 -0700, Matthias Melcher wrote: > >On 20.08.2011, at 22:55, Richard Sanders wrote: > >> There seems to be an out by one error in drawing coordinate between >> win32 and X11/ >> >> Here is an example >> >> static void DrawRod(int x, int y, int d) >> { >> int r = d >>

Re: [fltk.general] dynamic gui widgets

2011-08-21 Thread Albrecht Schlosser
On 21.08.2011 18:06, schrieb asif saeed wrote: > Is there any code example illustrating constructing an FLTK based GUI > dynamically? Particularly, the menu bar/menus/menu items? Can you provide > any guidelines as to how to proceed in this direction? Matt answered already how to construct menus

Re: [fltk.general] Containing FLTK stuff inside ...

2011-08-21 Thread Matthias Melcher
On 21.08.2011, at 19:20, Rajesh Kumar wrote: > Can you provide the download link??? Ooops: http://svn.easysw.com/public/fltk/fltk/branches/branch-3.0 ___ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk

Re: [fltk.general] Containing FLTK stuff inside ...

2011-08-21 Thread Matthias Melcher
On 21.08.2011, at 19:20, Rajesh Kumar wrote: > Can you provide the download link??? https://svn.easysw.com/public/fltk/fltk/branches/branch-3.0 Download with "subversion". ___ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo

Re: [fltk.general] Containing FLTK stuff inside ...

2011-08-21 Thread Rajesh Kumar
Can you provide the download link??? On Sun, Aug 21, 2011 at 10:46 PM, Matthias Melcher wrote: > > On 21.08.2011, at 19:09, Rajesh Kumar wrote: > > > Where can I find Source code for FLTK 3.0??? > > You can use Subversion to download the current release of FLTK3. Careful > though, I am still mov

Re: [fltk.general] Containing FLTK stuff inside ...

2011-08-21 Thread Matthias Melcher
On 21.08.2011, at 19:09, Rajesh Kumar wrote: > Where can I find Source code for FLTK 3.0??? You can use Subversion to download the current release of FLTK3. Careful though, I am still moving code around by the megabyte. The API can (and will) still change often without notice. The build enviro

Re: [fltk.general] Automatic adding of children to FLTK groups

2011-08-21 Thread Matthias Melcher
On 21.08.2011, at 18:21, asif saeed wrote: > Hi, > > Is there any way I could prevent my widgets from getting added to fltk > groups automatically and have the ability to add fltk widgets to fltk groups > myself - dynamically? Yes. After creating a widget derived from Fl_Group, call Fl_Group::c

Re: [fltk.general] Containing FLTK stuff inside ...

2011-08-21 Thread Rajesh Kumar
Where can I find Source code for FLTK 3.0??? On Sun, Aug 21, 2011 at 10:38 PM, Matthias Melcher wrote: > > On 21.08.2011, at 18:18, asif saeed wrote: > > > Hi, > > > > I just read this tutorial here: > > > > http://www.gidnetwork.com/b-22.html > > > > The design approach is good but one based on

Re: [fltk.general] Containing FLTK stuff inside ...

2011-08-21 Thread Matthias Melcher
On 21.08.2011, at 18:18, asif saeed wrote: > Hi, > > I just read this tutorial here: > > http://www.gidnetwork.com/b-22.html > > The design approach is good but one based on inheritance public from FLTK > widgets. Do you suggest any design guidelines if I do not want to include > FLTK headers

Re: [fltk.general] dynamic gui widgets

2011-08-21 Thread Matthias Melcher
On 21.08.2011, at 18:06, asif saeed wrote: > Is there any code example illustrating constructing an FLTK based GUI > dynamically? Particularly, the menu bar/menus/menu items? Can you provide > any guidelines as to how to proceed in this direction? In FLTK1, Menus are built by using arrays of Fl_

[fltk.general] Automatic adding of children to FLTK groups

2011-08-21 Thread asif saeed
Hi, Is there any way I could prevent my widgets from getting added to fltk groups automatically and have the ability to add fltk widgets to fltk groups myself - dynamically? Best, Asif ___ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailma

[fltk.general] Containing FLTK stuff inside ...

2011-08-21 Thread asif saeed
Hi, I just read this tutorial here: http://www.gidnetwork.com/b-22.html The design approach is good but one based on inheritance public from FLTK widgets. Do you suggest any design guidelines if I do not want to include FLTK headers in my own application-specific GUI header (I'll put all the FLT

[fltk.general] dynamic gui widgets

2011-08-21 Thread asif saeed
Hi, Is there any code example illustrating constructing an FLTK based GUI dynamically? Particularly, the menu bar/menus/menu items? Can you provide any guidelines as to how to proceed in this direction? Best regards, Asif ___ fltk mailing list fltk@easy

Re: [fltk.general] win32-X11 drawing coordinates

2011-08-21 Thread Matthias Melcher
On 20.08.2011, at 22:55, Richard Sanders wrote: > There seems to be an out by one error in drawing coordinate between > win32 and X11/ > > Here is an example > > static void DrawRod(int x, int y, int d) > { > int r = d >> 1; > fl_color(FL_RED); > #ifdef WIN32 > fl_pie(x, y, d, d, 0, 360); >

Re: [fltk.general] Cancel "win32-X11 drawing coordinates"

2011-08-21 Thread Matthias Melcher
On 20.08.2011, at 22:56, Richard Sanders wrote: > 47? ___ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk