Re: [fltk.general] How to open a folder from a hard-drive partition ?

2012-12-20 Thread Albrecht Schlosser
On 20.12.2012 19:34, Greg Ercolano wrote: >> Albrecht writes: >> fl_open_uri("file:///c:/samples") >> should work. Note the triple '/'.. > > Hmm, is the third slash needed? I don't know if it works with two slashes by chance, but ... > Probably both work, but I think two slashes foll

Re: [fltk.general] How to open a folder from a hard-drive partition ?

2012-12-20 Thread Ian MacArthur
On 20 Dec 2012, at 18:34, Greg Ercolano wrote: >> Ian writes: >> Is "system" not a blocking call? > > It should be OK in this case because explorer is a windows app, > and therefore doesn't block, so system() will return immediately. Oh yes - fair point: I'd forgotten that Windows

Re: [fltk.general] Mac OS: crash in lockFocus

2012-12-20 Thread Ian MacArthur
Probably one for Manolo I guess: I don't even understand the question...! On 19 Dec 2012, at 16:39, claude roux wrote: > Hello, > > I have been using FLTK for quite a while now (about a year), and with some > success. I use the 1.3.2 version, which I have integrated in projects on > Windows,

Re: [fltk.general] How to open a folder from a hard-drive partition ?

2012-12-20 Thread Greg Ercolano
On 12/20/12 09:48, Furqan wrote: > Thanks it is working perfectly. > I found one more way. > How about this: > system("explorer C:\\test\\folder"); Since it sounds like you're using windows only, I imagine that's OK. Use fl_open_uri() if you want to open a browser across platforms,

Re: [fltk.general] How to open a folder from a hard-drive partition ?

2012-12-20 Thread Ian MacArthur
On 20 Dec 2012, at 17:48, Furqan wrote: > Thanks it is working perfectly. > I found one more way. > How about this: > system("explorer C:\\test\\folder"); Is "system" not a blocking call? I'd advise against using that... If you want something Windows specific, ISTR there is a Win32 function spe

Re: [fltk.general] How to open a folder from a hard-drive partition ?

2012-12-20 Thread Furqan
Thanks it is working perfectly. I found one more way. How about this: system("explorer C:\\test\\folder"); > Am On 20.12.2012 18:27, schrieb Furqan wrote: > > Similarly, like we can open any url using fl_open_uri("http://real3d.pk";); > > > > How can we open a specific folder from a hard-drive

Re: [fltk.general] How to open a folder from a hard-drive partition ?

2012-12-20 Thread Greg Ercolano
On 12/20/12 09:27, Furqan wrote: > Similarly, like we can open any url using fl_open_uri("http://real3d.pk";); > > How can we open a specific folder from a hard-drive partition. > I want to open c:\samples folder when I click on menu button ? This seems to work: fl_open_uri("file://c:

Re: [fltk.general] How to open a folder from a hard-drive partition ?

2012-12-20 Thread Albrecht Schlosser
Am On 20.12.2012 18:27, schrieb Furqan wrote: > Similarly, like we can open any url using fl_open_uri("http://real3d.pk";); > > How can we open a specific folder from a hard-drive partition. > I want to open c:\samples folder when I click on menu button ? fl_open_uri("file:///c:/samples") sho

[fltk.general] How to open a folder from a hard-drive partition ?

2012-12-20 Thread Furqan
Similarly, like we can open any url using fl_open_uri("http://real3d.pk";); How can we open a specific folder from a hard-drive partition. I want to open c:\samples folder when I click on menu button ? Thanks. ___ fltk mailing list fltk@easysw.com

Re: [fltk.general] How to set the size of the fl_color_chooserwindow ?

2012-12-20 Thread Furqan
Thanks a lot. I have done it. Fl_Color_Chooser is the solution. > On 20 Dec 2012, at 12:23, Furqan wrote: > > > Actually, default fl_color_chooser window size is too small. I want to = > set my desired size. for example : 500x500. > > You mean the ready-made fl_color_chooser dialogs I guess? It

Re: [fltk.general] How to set the size of the fl_color_chooser window ?

2012-12-20 Thread Ian MacArthur
On 20 Dec 2012, at 12:23, Furqan wrote: > Actually, default fl_color_chooser window size is too small. I want to set my > desired size. for example : 500x500. You mean the ready-made fl_color_chooser dialogs I guess? It is not really practical to change their size. If you want a widget you ca

[fltk.general] How to set the size of the fl_color_chooser window ?

2012-12-20 Thread Furqan
Actually, default fl_color_chooser window size is too small. I want to set my desired size. for example : 500x500. ___ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk