| View previous topic :: View next topic |
| Author |
Message |
SuperCharlie Newbie

Joined: 24 Apr 2002 Posts: 21 Location: Beaumont, Tx
|
Posted: Tue May 07, 2002 3:32 pm Post subject: VDS 2.x question |
|
|
Ok VDS old timers
After doing some 3.x work with tabs and getting stuck in the "group" spiderweb once too many times, I decided to do what I knew and finish my little project (jedi knight server launcher) in 2.21, since it was much easier to hide the multitude of radio buttons I was working with..
My problem and question is.. am I missing it or is there not a "save as" or "save" file dialog in vds 2.21? @filedlg always has an "open" button... Im needing a "save" button..
Thx
SC |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Tue May 07, 2002 4:07 pm Post subject: |
|
|
I think you can use a SAVE parameter on the @filedlg() function.
I'm don't remember off hand where it goes but it should be something like:
| Code: |
%%file = @fileldg(*.txt,,,,,SAVE)
|
_________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
SuperCharlie Newbie

Joined: 24 Apr 2002 Posts: 21 Location: Beaumont, Tx
|
Posted: Tue May 07, 2002 4:20 pm Post subject: |
|
|
Heres what I get outta the help file....
I saw the syntax you're talkin about in 3.x .. Im thinkin this might be all I got to work with.. ;(
Syntax:
@FILEDLG(<file description> {, <title>, <initial filename>})
Description:
This function displays a Windows common file dialog, and returns the name of the file that was selected (or a null string if no file was selected.) The string <file description> contains a filter for the file type to be displayed, for example: *.txt. The string <title> contains an optional title which will be used for the dialog. The string <initial filename> specifies an optional default filename.
Multiple choice filters and descriptions of the file types can be specified if <file description> follows the format:
"<file description 1>|<*.ext1> {|<file description2>|<*.ext2>} ..."
This format must be followed exactly or the description will be ignored. Quotes must surround the entire file description string.
OK:
True if dialog was closed with the OK button, otherwise false.
Example:
%F = @filedlg(*.txt)
%F = @filedlg("Text file (*.txt)|*.txt|Document file (*.doc)|*.doc",Open file)
See also:
@DIRDLG |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Tue May 07, 2002 5:05 pm Post subject: |
|
|
Sorry . I thought that might have worked. I used to have 2.x but I don't
know where my copy of the program is. I may just have to DL it
again.
Let us know if you find a solution.
Thanks, _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Tue May 07, 2002 5:47 pm Post subject: |
|
|
_____________________________________________________________
In VDS3, "SAVE" can be used as the 4th parameter to @filedlg()
to create a "SAVE" button.
VDS2 only utilizes 3 parameters, but you can change the
window title with the 2nd one @filedlg(,Save As...). It will
still have the "OPEN" button though.
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
|