forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


VDS 2.x question

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
SuperCharlie
Newbie


Joined: 24 Apr 2002
Posts: 21
Location: Beaumont, Tx

PostPosted: Tue May 07, 2002 3:32 pm    Post subject: VDS 2.x question Reply with quote

Ok VDS old timers Wink

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
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Tue May 07, 2002 4:07 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
SuperCharlie
Newbie


Joined: 24 Apr 2002
Posts: 21
Location: Beaumont, Tx

PostPosted: Tue May 07, 2002 4:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Tue May 07, 2002 5:05 pm    Post subject: Reply with quote

Sorry Embarassed . I thought that might have worked. I used to have 2.x but I don't
know where my copy of the program is. Confused I may just have to DL it
again.

Let us know if you find a solution.

Thanks,

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Tue May 07, 2002 5:47 pm    Post subject: Reply with quote

_____________________________________________________________
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 Smile

_________________
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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group