Greg Ercolano wrote:
> Hiba wrote:
>> I created a separate window, in the c++ tab (class), i wrote 
>> "Fl_File_Chooser" and i gave it "browser" as a name.
>> In Extra code, i wrote "Fl_File_Chooser *browser = new Fl_File_Chooser (,,,)"
> 
>       No, if you're using fluid, create ALL the elements in fluid
>       the usual way; create the window (New -> Group -> Window),
>       put the chooser in it (New -> Browsers -> Browser), etc.
> 
>       Be sure when you create the window for your browser, that the window
>       is not parented to some other window.

    Oh wait, I see you've now switched to using a file chooser
    instead of your own browser.

    In which case after creating the window, instead of using
    New->Browsers->Browser, you would use New -> Browsers -> File Browser.
    This way the #include will be done for you automatically.

    However, if you really want to code the stuff manually,
    then you should probably use 'New -> Code' and type in the
    lines of code you want, the new Fl_Window, the new Fl_File_Chooser,
    and be sure to add the #include files for the widgets you're using.
    For instance, to #include <Fl_File_Chooser.H>, you would use
    New -> Code -> Declaration:, and type "#include <Fl_File_Chooser.H>"
    at that prompt, then move the declaration using the F2/F3 keys to move it
    up/down the fluid hierarchy to position it towards the top.

    I'd recommend you first do small experiments in fluid before
    trying to reach your goal. Do a small fluid app that has two
    windows each with a button, where one has a button that turns
    on the other window, and the button in that new window hides it.

    Once you have the basics down, you should be able to work upwards
    to a more complicated app that has multiple windows each with
    multiple widgets.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to