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 


[Open Source]: External Message Boxes

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript Open Source Projects
View previous topic :: View next topic  
Author Message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Mon Jan 13, 2003 11:15 pm    Post subject: [Open Source]: External Message Boxes Reply with quote

Here's something based on another script I found... It makes it easy to
do message boxes, but there's a couple of other things like return code
missing. (I hope the next version of VDS allows you to set return codes
without a DLL! Very Happy )

Code:
REM syntax: $msgbox Title Message Type Icon
REM Type OK = OK Box
REM Type Okcancel = Ok/Cancel
REM Type Yesno = Yes/No
REM Type Yesnocancel = Yes/No/Cancel
REM type RetryCancel = Retry/Cancel
REM Type abortretryignore = Abort / Retry / Ignore
REM
REM Icon None = None
REM Icon NoEntry = No Entry
REM Icon QuestionMark = Question Mark
REM Icon ExclaimationMark = Exclamation Mark
REM Icon Information = Information


:Help Default button s always 1.

if @equal(%4, None)
   %a = $00
end
if @equal(%4, NoEntry)
   %a = $01
end
if @equal(%4, Question)
   %a = $02
end
if @equal(%4, Exclaim)
   %a = $03
end
if @equal(%4, Info)
   %a = $04
end


if @equal(%3, Ok)
   %a = %a0
end
if @equal(%3, OKCan)
   %a = %a1
end
if @equal(%3, YesNo)
   %a = %a4
end
if @equal(%3, YesNoCan)
   %a = %a3
end
if @equal(%3, RetryCan)
   %a = %a5
end
if @equal(%3, AbortRetIgn)
   %a = %a2
end

%%go = @msgbox(%2,%1,%a)

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
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 -> Visual DialogScript Open Source Projects 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