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 


Dialog needed for @filedlg()
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sat Jan 18, 2003 7:52 pm    Post subject: Dialog needed for @filedlg() Reply with quote

Try this:

Code:
info @filedlg()


Why do you need a dialog to use it??? Seems like a bug to me...
Back to top
View user's profile Send private message
Tsunami1988
Contributor
Contributor


Joined: 15 Aug 2002
Posts: 70
Location: The Netherlands

PostPosted: Sat Jan 18, 2003 7:58 pm    Post subject: Re: Dialog needed for @filedlg() Reply with quote

Skit3000 wrote:
Try this:

Code:
info @filedlg()


Why do you need a dialog to use it??? Seems like a bug to me...

If I use
Code:
INFO @FILEDLG()

I get ")". But when I use
Code:
%%File = @FILEDLG()

I get an error...
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Sat Jan 18, 2003 7:59 pm    Post subject: Reply with quote

Doesn't look like a bug to me. Looks like SADE did that on purpose,
although I can't say why.

Errorcode:
22 -- Operation invalid when no dialog showing
Function or command can only be used when a dialog is being displayed.

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sat Jan 18, 2003 8:03 pm    Post subject: Reply with quote

I know that, but if people want to make a command-line like tool with @filedlg(), they need to have a dialog... That's the strange thing of it...
Back to top
View user's profile Send private message
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Sat Jan 18, 2003 8:06 pm    Post subject: Reply with quote

If ya create a dialog but don't show it, @filedlg() works fine. Wink

Code:


dialog create,Test,0,0,0,0

%F = @filedlg()


_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sat Jan 18, 2003 8:34 pm    Post subject: Reply with quote

DIALOG CREATE,SOMETHING,0,0,0,0,NOTITLE


-Garrett
Back to top
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Sat Jan 18, 2003 8:37 pm    Post subject: Reply with quote

Because it's using the Windows API to call the file open dialog, which asks for a Parent Window handle. Thus it's using your main form's window handle as the parent (visible or not). SADE could have just checked if any form was created or not and set the window handle to 0 if no form existed.
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sat Jan 18, 2003 9:12 pm    Post subject: Reply with quote

Thanks for the explanaition.

BTW. If you must have a dialog that should not be shown, you can use this:

Code:

dialog create,.
info @filedlg()


So there is no need for things like 'notitle'. This is because the dialog show command isn't used...
Back to top
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Sat Jan 18, 2003 9:57 pm    Post subject: Reply with quote

Btw I personally don't think this is a bug so it really should not be posted in the 'bug reports' section. I have respectively moved the post.
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


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

PostPosted: Sat Jan 18, 2003 11:10 pm    Post subject: Reply with quote

Lol - "respectively"? What is that penguin drinkin'.... Razz Laughing

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
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Sat Jan 18, 2003 11:53 pm    Post subject: Reply with quote

Twisted Evil

Throws a can of non-carbonated cola at Mac's outdated Windows 95 computer and breaks it, then a can at Mac.

That'll teach you to mess with me. QUACK QUACK!
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


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

PostPosted: Sat Jan 18, 2003 11:58 pm    Post subject: Reply with quote

ROFL - now the penguin think's he's a duck - more proof
that's not just plain cola..... Wink

And what happened to being "respective".... Razz Laughing

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
Hortalonus
Valued Contributor
Valued Contributor


Joined: 15 Mar 2002
Posts: 344
Location: Western USA

PostPosted: Sun Jan 19, 2003 12:02 am    Post subject: Reply with quote

PGWARE wrote:
Twisted Evil

Throws a can of non-carbonated cola at Mac's outdated Windows 95 computer and breaks it, then a can at Mac.

That'll teach you to mess with me. QUACK QUACK!


Yikes! Non-carbonated cola... no wonder he's cranky!
Back to top
View user's profile Send private message Send e-mail
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Sun Jan 19, 2003 12:04 am    Post subject: Reply with quote

Throws another can at Mac. Then loads up a can to throw at Hortalonus.

Razz Wink Razz Twisted Evil
Back to top
View user's profile Send private message
Hortalonus
Valued Contributor
Valued Contributor


Joined: 15 Mar 2002
Posts: 344
Location: Western USA

PostPosted: Sun Jan 19, 2003 12:07 am    Post subject: Reply with quote

PGWARE wrote:
Throws another can at Mac. Then loads up a can to throw at Hortalonus.

Or should I say... "loaded"?

Laughing Wink
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
Goto page 1, 2  Next
Page 1 of 2

 
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