发新话题
打印

[原创] 在cqperl中实现msbox功能。( 此文章被查看:376次,被回复:1篇!! )

在cqperl中实现msbox功能。

MsgBox("www.liu6545.bokee.com");

sub MsgBox {                                    
my($ipmsg) = @_;                                      
use Win32;
Win32::MsgBox("$ipmsg");
}
本帖最近评分记录
  • 懂你 金钱 +10 鼓励原创! 2008-2-28 18:04



© 本文为 听雨屋檐人SCMLife 共同所有,未经同意,请勿转载 ©如该文侵犯了您的版权,请联系管理员
clearcase+clearquest个人博客:听雨屋檐人的博客
听雨屋檐人的淘宝小店!:听雨屋檐人的淘宝小店,欢迎光临

TOP

MsgBox function
Display a message box.
Syntax
[size=+1]MsgBox($Message,$Type,$Caption);
$MessageText to be displayed in the dialog box.
$TypeDefines the type (Icon & Buttons) of the message box. To define the value sum the desired Buttons option and Icon option.
$Caption Text to be displayed in window header.
Buttons OptionIcon OptionReturned Value
0Ok16Hand1Ok
1Ok, Cancel32Question2Cancel
2Abort, Retry, Ignore 48Exclamation3Abort
3Yes, No, Cancel64Asterisk4Retry
4Yes, No5Ignore
5Retry, Cancel6Yes
7No
Example
use Win32;
Win32::MsgBox("A first step for Perl in the Windows GUI world !");
Win32::MsgBox('Bug detected',48,'Alert ! Alert');
$result = Win32::MsgBox('Meet me at the coffee machine ?', 16+4, 'Tired ?');
(($result == 6) ? print "I am on my way !\n" : print "bye !\n");        

[ 本帖最后由 scmtata 于 2008-2-29 09:53 编辑 ]
本帖最近评分记录
  • 懂你 金钱 +10 非常详细的说明! 2008-2-29 16:49



© 本文为 scmtataSCMLife 共同所有,未经同意,请勿转载 ©如该文侵犯了您的版权,请联系管理员
勇敢的心

TOP

发新话题