From 94a9fb879f3bb31785ddca44c6bbaba5283da136 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Wed, 1 May 2002 12:41:21 +0000 Subject: Fix backspace "bug" in file chooser - now treat delete and backspace the same, eliminating any filename completion value. Added relative argument to fl_file_chooser() and fl_dir_chooser(); both default to 0 (return absolute paths) Give focus to the filename field in the chooser when show() is called. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2157 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/functions.html | 46 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) (limited to 'documentation/functions.html') diff --git a/documentation/functions.html b/documentation/functions.html index 6dd68e13e..24d42a23d 100644 --- a/documentation/functions.html +++ b/documentation/functions.html @@ -17,6 +17,7 @@ A.
  • fl_choice
  • fl_color_chooser
  • fl_color_cube
  • +
  • fl_dir_chooser
  • fl_file_chooser
  • fl_file_chooser_callback
  • fl_filename_absolute
  • @@ -50,6 +51,7 @@ A.
  • fl_beep
  • fl_choice
  • fl_color_chooser
  • +
  • fl_dir_chooser
  • fl_file_chooser
  • fl_file_chooser_callback
  • fl_input
  • @@ -326,6 +328,44 @@ fl_color_cube(R * (FL_NUM_RED - 1) / 255, + +

    fl_dir_chooser

    + +
    + +

    Include Files

    + + + +

    Prototype

    + + + +

    Description

    + +

    The fl_dir_chooser() function displays a Fl_File_Chooser dialog +so that the user can choose a directory. + +

    message is a string used to title the window. + +

    fname is a default filename to fill in the chooser +with. If this is NULL then the last filename that was +choosen is used. The first time the file chooser is called this +defaults to a blank string. + +

    relative specifies whether the returned filename +should be relative (any non-zero value) or absolute (0). The +default is to return absolute paths. + +

    The returned value points at a static buffer that is only +good until the next time fl_dir_chooser() is called. + +

    fl_file_chooser

    @@ -340,7 +380,7 @@ fl_color_cube(R * (FL_NUM_RED - 1) / 255,

    Prototype

    Description

    @@ -371,6 +411,10 @@ choosen is used (unless that had a different pattern, in which case just the last directory with no name is used). The first time the file chooser is called this defaults to a blank string. +

    relative specifies whether the returned filename +should be relative (any non-zero value) or absolute (0). The +default is to return absolute paths. +

    The returned value points at a static buffer that is only good until the next time fl_file_chooser() is called. -- cgit v1.2.3