View Full Version : Set text from msgBox buttons
ChristianH
12-11-2008, 07:39 AM
Hi,
I create a messageBox like following. The caption from the buttons "Yes" and "No" are automatically shown in the language. How can I set the caption programmatically?
Sample:
-------
local doContinue =
Dialog.Message( "Info",
"Continue ?", MB_YESNO, MB_ICONQUESTION, MB_DEFBUTTON1);
if( IDNO == doContinue ) then
Christian
reteset
12-11-2008, 08:03 AM
Try this : XDialog (http://www.xdialog.com/free_stuff.htm) By Dermot
Or try this : DLL: AMSPrettyDialogs (http://www.indigorose.com/forums/showthread.php?t=19695) By RizlaUK
longedge
12-11-2008, 08:07 AM
Somewhere you need to set variables e.g.
title= "This is the title"
message= "This is the message"
and you can then use the variables in your dialogue box e.g.
result = Dialog.Message(title, message, MB_YESNO, MB_ICONINFORMATION, MB_DEFBUTTON1);
Is there a way to change the Actual buttons. Here are the only options.
MB_OK
0
OK (Default)
MB_OKCANCEL
1
OK | Cancel
MB_ABORTRETRYIGNORE
2
Abort | Retry | Ignore
MB_YESNOCANCEL
3
Yes | No | Cancel
MB_YESNO
4
Yes | No
MB_RETRYCANCEL
5
Retry | Cancel
Is there any way to make a custom Type which allows the programmer to change these?
reteset
12-11-2008, 11:28 AM
Is there a way to change the Actual buttons. Here are the only options.
Is there any way to make a custom Type which allows the programmer to change these?
DialogEx ... ;)
This plugin is really cool. You can change a lot more than Dialog! It still has a set format for all Buttons though. The button types are: OK, OK_CANCEL, YES_NO, YES_NO_CANCEL, RETRY_CANCEL, ABORT_RETRY_IGNORE. Are these just the only options we have available? Is there a way to make a custom button type?
reteset
12-11-2008, 12:11 PM
This plugin is really cool. You can change a lot more than Dialog! It still has a set format for all Buttons though. The button types are: OK, OK_CANCEL, YES_NO, YES_NO_CANCEL, RETRY_CANCEL, ABORT_RETRY_IGNORE. Are these just the only options we have available? Is there a way to make a custom button type?
i mentioned AMS Dialogs.. you can create your own dialogs with it :yes
like below
result = DialogEx.Show(, true, nil, nil);
result = DialogEx.Close(0);
DialogEx.CreateObject(OBJECT_BUTTON, "NewObject", nil);
DialogEx.DeleteObject("MyObject");
result = DialogEx.EnumerateObjects();
result = DialogEx.GetFocus();
.....
.....
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.