![]() |
|
#1
|
|||
|
|||
File chooserHi,
I want to select multiple files with the file_choose. I did it like this: CPP / C++ / C Code:
It works for selecting one file, but how to select more ??? I'm using FLTK2 under Win2K... I tried it also like this: CPP / C++ / C Code:
this way I can select multiple files, but don't get them when clicking on "OK" !!! And it's not the window's file chooser but the FLTK's file chooser (I want the window's chooser)... How can I select more than one file ??? thx, Acki |
|||
|
#2
|
|||
|
|||
Re: file chooserI'm sure Acki has moved on in the last 9 months; but for other peoples benefit the file_chooser function returns a pointer to the filename selected, or NULL: http://www.fltk.org/doc-1.1/function..._file_chooser2
The file_chooser class however is more flexible: http://www.fltk.org/doc-1.1/Fl_File_...l_File_Chooser This is the constructor: CPP / C++ / C Code:
Here's an example to select multiple files (I think I adapted this from one of erco's examples: http://seriss.com/people/erco/fltk/): CPP / C++ / C Code:
|
|
#3
|
|||
|
|||
Re: file chooserThanks for the Fl_File_Chooser example! I was just trying to use it and couldn't figure out how to get the filename as easily as you showed. Didn't know about shown().
|
|
#4
|
|||
|
|||
Re: file chooserglad it was useful for someone!
Richard |
|
#5
|
|||
|
|||
Re: file chooserhello!
i tried to add file_chooser in code, but at linking step i obtain an error: Quote:
adding -lgdi32 option for linker do not solve this problem. How i can eliminate this error? thanx |
|
#6
|
||||
|
||||
Re: file chooserMy guess is you need to link to the fltk images lib. If you are using fltk-config add --use-images and all will be well.
If you search this forum you for --use-images you should find the way to link it otherwise. When in doubt, I just run from the command line, Code:
Here is a sample, Code:
Mark __________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work." --Thomas Alva Edison "Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety." --Benjamin Franklin "A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes." --Hugh Downs |
|
#7
|
|||
|
|||
Re: file chooseri dont use fltk-config. I compile with Dev-Cpp. And i want to use fltk2, not fltk 1.1.x
adding --use-images key do not solve this problem |
|
#8
|
|||
|
|||
Re: file chooserproblem solved by adding library
-lmsimg32 thank u |
|
#9
|
|||
|
|||
Re: file chooserHey,
I'm using FLTK2 on Win32 (XP) and would like to have the native System File Chooser instead of the FLTK file chooser. I tried the following: CPP / C++ / C Code:
CPP / C++ / C Code:
Any advices appreciated! |
|
#10
|
|||
|
|||
Re: file chooserhmm, strange, it works for me (same system WinXP sp2)...
did you link against libfltk_s.a ??? |
Recent GIDBlog
Vista ?Widgets? on Windows XP by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Airport Log program using 3D linked List : problem reading from file | batrsau | C Programming Language | 11 | 29-Feb-2008 07:44 |
| CD burner wont burn!! | robertli55 | Computer Hardware Forum | 1 | 18-Jun-2004 10:53 |
| Yet another CD burner problem: Lite-On LSC-24082K | Erwin | Computer Hardware Forum | 1 | 22-May-2004 11:28 |
| Re: Programming Techniques | WaltP | C Programming Language | 0 | 09-Mar-2004 23:56 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The