Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dialogue box like msgBox?

Status
Not open for further replies.

xhonzi

Programmer
Jul 29, 2003
196
US
I like msgBox and all, but sometimes I want more options than just Yes,No,Cancel, etc...

I would like to create my own dialogue boxes with options like "Delete" "Move" "Ignore", etc... I found the inputBox method, but I would rather have buttons in the dialogue instead of a text box.

Am I up a creek? What can I do?

Thanks,
Xhonzi

Oh, and I know about making another form that will act as a dialogue box, but I want a quick and dirty solution. Something along the lines of the dialoguebox in PerlTk.

( bump from thread705-1173785 )
 
How are ya xhonzi . . .
xhonzi said:
[blue]Oh, and I know about making another form that will act as a dialogue box . . .[/blue]
[blue]Certainly easy enough! . . .[/blue] As for quick & dirty . . . hmmmmmm . . . [blue]perhaps after you make your own wizard![/blue] ;-)

Calvin.gif
See Ya! . . . . . .
 
But I want someone else to have created a wizard already!!!

Wah!

A pleasure as always, AceMan...
 
Howdy ZmrAbdulla . . .

An excellent reference, but its a long way from quick & dirty! ;-)

Calvin.gif
See Ya! . . . . . .
 
This too quick & dirty. You just need to change some text inside the code.
Code:
......

      SetDlgItemText wParam, IDABORT, "Button1 Caption"
      SetDlgItemText wParam, IDRETRY, "Button2 Caption"
      SetDlgItemText wParam, IDIGNORE, "Button3 Caption"



==================================
   Select Case MessageBoxH(Me.hwnd, GetDesktopWindow())
      Case IDABORT:
      MsgBox "You Selected Search C:\"

      Case IDRETRY:
      MsgBox "You Selected Search D:\"

      Case IDIGNORE:
      MsgBox "You Selected CANCEL"

   End Select

The rest is Microsoft's kindness CTRL+A, CTRL+C and CTRL+V.

________________________________________________________
Zameer Abdulla
Help to find Missing people
Sharp acids corrode their own containers.
 
Could be quicker and could be dirtier, but I'll try it out.

Thanks,

Xhonzi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top