Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2007
    Posts
    5

    Set text from msgBox buttons

    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

  2. #2
    Join Date
    May 2006
    Posts
    1,443
    Try this : XDialog By Dermot

    Or try this : DLL: AMSPrettyDialogs By RizlaUK

  3. #3
    Join Date
    Aug 2003
    Posts
    2,427
    Somewhere you need to set variables e.g.

    Code:
    title= "This is the title"
    message= "This is the message"
    and you can then use the variables in your dialogue box e.g.

    Code:
    result = Dialog.Message(title, message, MB_YESNO, MB_ICONINFORMATION, MB_DEFBUTTON1);

  4. #4
    Join Date
    Sep 2008
    Posts
    55

    Changing the actual buttons.

    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?

  5. #5
    Join Date
    May 2006
    Posts
    1,443
    Quote Originally Posted by MSP View Post
    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 ...

  6. #6
    Join Date
    Sep 2008
    Posts
    55

    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?

  7. #7
    Join Date
    May 2006
    Posts
    1,443
    Quote Originally Posted by MSP View Post
    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
    like below

    Code:
    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();
    .....
    .....

Similar Threads

  1. Custom Message Dialog
    By Dermot in forum AutoPlay Media Studio 6.0
    Replies: 23
    Last Post: 09-06-2009, 12:13 PM
  2. Ritchtext object, set text color OnFocus
    By djmoh in forum AutoPlay Media Studio 7.5
    Replies: 0
    Last Post: 07-05-2008, 05:02 AM
  3. Resize all buttons and text for different screen resolutions
    By p-rposters in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 02-19-2008, 03:32 PM
  4. Example: Loading Paragraph Text Using a Timer
    By Jonas DK in forum AutoPlay Media Studio 5.0 Examples
    Replies: 7
    Last Post: 11-25-2004, 05:10 PM
  5. HOWTO: Display Conditional Text Based Upon a List Box Selection
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-15-2002, 10:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts