| View previous topic :: View next topic |
| Author |
Message |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Jan 18, 2003 7:52 pm Post subject: Dialog needed for @filedlg() |
|
|
Try this:
Why do you need a dialog to use it??? Seems like a bug to me... |
|
| Back to top |
|
 |
Tsunami1988 Contributor


Joined: 15 Aug 2002 Posts: 70 Location: The Netherlands
|
Posted: Sat Jan 18, 2003 7:58 pm Post subject: Re: Dialog needed for @filedlg() |
|
|
| Skit3000 wrote: | Try this:
Why do you need a dialog to use it??? Seems like a bug to me... |
If I use
I get ")". But when I use
| Code: | | %%File = @FILEDLG() |
I get an error... |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Sat Jan 18, 2003 7:59 pm Post subject: |
|
|
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 |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Jan 18, 2003 8:03 pm Post subject: |
|
|
| 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 |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Sat Jan 18, 2003 8:06 pm Post subject: |
|
|
If ya create a dialog but don't show it, @filedlg() works fine.
| 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 |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sat Jan 18, 2003 8:34 pm Post subject: |
|
|
DIALOG CREATE,SOMETHING,0,0,0,0,NOTITLE
-Garrett |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Sat Jan 18, 2003 8:37 pm Post subject: |
|
|
| 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 |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Jan 18, 2003 9:12 pm Post subject: |
|
|
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 |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Sat Jan 18, 2003 9:57 pm Post subject: |
|
|
| 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 |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sat Jan 18, 2003 11:10 pm Post subject: |
|
|
Lol - "respectively"? What is that penguin drinkin'....
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 |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Sat Jan 18, 2003 11:53 pm Post subject: |
|
|
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 |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sat Jan 18, 2003 11:58 pm Post subject: |
|
|
ROFL - now the penguin think's he's a duck - more proof
that's not just plain cola.....
And what happened to being "respective"....
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 |
|
 |
Hortalonus Valued Contributor


Joined: 15 Mar 2002 Posts: 344 Location: Western USA
|
Posted: Sun Jan 19, 2003 12:02 am Post subject: |
|
|
| PGWARE wrote: |
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 |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Sun Jan 19, 2003 12:04 am Post subject: |
|
|
Throws another can at Mac. Then loads up a can to throw at Hortalonus.
 |
|
| Back to top |
|
 |
Hortalonus Valued Contributor


Joined: 15 Mar 2002 Posts: 344 Location: Western USA
|
Posted: Sun Jan 19, 2003 12:07 am Post subject: |
|
|
| PGWARE wrote: | Throws another can at Mac. Then loads up a can to throw at Hortalonus.
|
Or should I say... "loaded"?
 |
|
| Back to top |
|
 |
|