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 


"Error" message box
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Apr 16, 2004 9:10 pm    Post subject: "Error" message box Reply with quote

We have all of the common message boxes implemented into VDS except
the "error" message box with the red "x".

I wish for a command like WARN, INFO, or QUERY that will easily display
the "error" message box.

While this can be done using the @msgbox() function, it is messy and
takes a lot more time and code to write than a simple command like
WARN. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Sat Apr 17, 2004 1:50 am    Post subject: Reply with quote

FF,
To be honest with you I don't know why Jules did this. He should have just left it with @msgbox.. If he had then the runtime would prob. be a little smaller Wink

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1054
Location: India

PostPosted: Sat Apr 17, 2004 3:26 pm    Post subject: Reply with quote

mindpower wrote:
FF,
To be honest with you I don't know why Jules did this. He should have just left it with @msgbox.. If he had then the runtime would prob. be a little smaller Wink


I believe VDS initially had only info and warn. Then message box was added and ..... while on it julian prolly decided to give the user all the options exposed by that API Smile - just my guess.

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Sat Apr 17, 2004 3:38 pm    Post subject: Reply with quote

Your guess is correct, CodeScript. INFO and WARN and @ASK are there for backwards compatibilty.

My copy of VDS has a tool called MessageBox Designer, that lets you select what you want the message box to look like in a dialog, and then outputs the VDS code so you can paste it into the editor. I don't know if it's shipped with VDS, or just something I wrote.

_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1054
Location: India

PostPosted: Sat Apr 17, 2004 4:12 pm    Post subject: Reply with quote

jules wrote:
I don't know if it's shipped with VDS, or just something I wrote.

It's shipped with VDS. Thanks for that tool Smile

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


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

PostPosted: Sat Apr 17, 2004 4:15 pm    Post subject: Reply with quote

It's shipped with VDS... Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Apr 17, 2004 4:38 pm    Post subject: Reply with quote

Yes, and in fact I used it several times today to create "error" message
boxes. But I do however use INFO and WARN countless times through
my code, I still think it would be nice to have a command to make the
"x" message boxes. Wink

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Sat Apr 17, 2004 9:44 pm    Post subject: Reply with quote

Create your own, then, using a .dsu. Wink
_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Apr 17, 2004 10:08 pm    Post subject: Reply with quote

I thought of that already. Razz

It's just a pain to have to do anything other than use a simple command.
I guess you could call me lazy. Wink

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


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

PostPosted: Sun Apr 18, 2004 11:53 am    Post subject: Reply with quote

I was just thinking about something. Could it be possible to let VDS run a program before compiling a script (without letting it run the whole time while VDS itself is opened), so you could create a kind of pre-compiler? That way, you will be able to easily include little DSUs like the one we're talking about right now... Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Sun Apr 18, 2004 11:55 am    Post subject: Reply with quote

All good programmers are lazy. Smile

That's why I have a folder called Units full of include files containing functions and commands I've created to do dozens of things that are not specific to any one script. One of these files is called Utils.dsc, and it contains all the common stuff I always use. I put the #include for it at the start of my default.dsc, so I don't even have to think about it.

I have a similar Utils.pas I include in all my Delphi stuff. Delphi is a bit cleverer, in that it only includes stuff if you actually use it. But in VDS, if these commands were defined in the VDS runtime, you'd still get them whether or not you used them.

_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


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

PostPosted: Sun Apr 18, 2004 11:59 am    Post subject: Reply with quote

That's something I'd like to make... Smile Maybe even let it connect to a database on the internet, so VDS users will always have the latest includable files without having to think about them... Smile

Some more explaination, this:

Code:
title MyProgram
messagex "Hello!"


Would become:

Code:
#define command,messagex
title MyProgram
messagex "Hello!"
exit
:messagex
exit @msgbox($123,%1)


Without having to define it yourself (if it is possible to do... Rolling Eyes Embarassed )

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Sun Apr 18, 2004 12:01 pm    Post subject: Reply with quote

Skit3000 wrote:
I was just thinking about something. Could it be possible to let VDS run a program before compiling a script (without letting it run the whole time while VDS itself is opened), so you could create a kind of pre-compiler? That way, you will be able to easily include little DSUs like the one we're talking about right now... Smile


I did think about including pre- and post-compile hooks so you could add in tools, but that was one of the ideas that was never appealing enough to get implemented. You don't really need a pre-compiler to do this, as you only need to insert the #include once. You could create a standalone tool that searched your units file and inserted the #includes, that you run when needed, or else you could adopt the brain-dead approach I suggested in my previous posting.

_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


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

PostPosted: Sun Apr 18, 2004 12:04 pm    Post subject: Reply with quote

I once thought about making a script which runs when VDS is started, and which could compile a script by controlling the IDE by DDE. The only downside of it is that if I'd really make it that way, people would see the lines added to the script, while I want them to be invisible and only added to the script just before compiling... Rolling Eyes
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Sun Apr 18, 2004 12:04 pm    Post subject: Reply with quote

Don't forget that in VDS the line number in the script is usually important in tracking down a run-time error. Therefore you always want to work with the "real" script, not one that is recreated before each compilation by a pre-compiler.
_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Wish List 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