Hi
How do I change the MsgYesNo() to something like MsgYesNoCancel() to accept 3 choices instead of 2 choices.
Thanks
Regards
ACWoo
Hi
How do I change the MsgYesNo() to something like MsgYesNoCancel() to accept 3 choices instead of 2 choices.
Thanks
Regards
ACWoo
Thanks For Your Help
MENUITEM "&End..." ;
ACTION If( MsgYesNoCancel( "Want to end ?","Please Choose" ), Exitpro(cDirect1,oWnd:End()),Relaunch()) ;
MESSAGE "End this application"
static function MsgYesNoCancel( cMsg, cTitle )
return MessageBox( GetActiveWindow(), cMsg, cTitle, ;
nOR( MB_ICONQUESTION, MB_YESNOCANCEL ) )
*******
The options appear in the MsgYesNoCancel() dislog box is "Yes", "No","Cancel", how do I change it to "Yes", "Relaunch", "Cancel".
How should I write for the above ACTION if(MsgYesNoCancel......
Thanks
Regards
ACWoo
acwoo1 wrote:
The options appear in the MsgYesNoCancel() dislog box is "Yes", "No","Cancel", how do I change it to "Yes", "Relaunch", "Cancel".
How should I write for the above ACTION if(MsgYesNoCancel......
MB_OK
MB_OKCANCEL
MB_ABORTRETRYIGNORE
MB_YESNOCANCEL
MB_YESNO
MB_RETRYCANCEL
MB_CANCELTRYCONTINUE
MB_HELPThanks Ramesh Babu
I get unresolved external "_HB_FUN_HP_LIBDO"
It also require mymsgbox.dll
Regards
ACWoo
Using FWH1111+bcc582
I don't think you want to use hp_libdo unless you put the functions in your own mymsgbox.dll.
Just use his control straight from your own code.

@ 150, 170 BTNBMP oBtn1 OF oDlg PIXEL ;
SIZE 60, 30 ;
PROMPT "&Message" FILE c_path + "\images\preview.bmp" 2007 ; Â Â Â Â Â Â Â Â
FONT oFont LEFT ;
ACTION ;
MYMSGBOX( oDlg, ;
"There is an error and the process could not be completed."+CRLF+"Please try it once again.", ;
, ;Â Â Â Â Â Â Â // aOptions
50, ;Â Â Â Â Â Â Â Â // Top ( 0 = centered )
50, ;Â Â Â Â Â Â Â Â // Left ( 0 = centered )
"Error Message", ;Â // Title
, ;Â Â Â Â Â Â Â // xIcon
, ;Â Â Â Â Â Â Â // nDefault
, ;Â Â Â Â Â Â Â // aGradient
"marble5.bmp", ;Â Â // Bmp-brush
, ;Â Â Â Â Â Â Â // bAction
, ;Â Â Â Â Â Â Â // oFont
, ;Â Â Â Â Â Â Â // cFileRes
oIcon1)Â Â Â Â Â //oIconHi Uwe,
You are known for adding elegance to our Applications front end, in our Family
.
And your additions to MyMsgBox have added more beauty to the MyMsgBox.
My best regards,
-Ramesh Babu P
LOCAL c_path := CURDRIVE() + ":\" + GETCURDIR()
@ 200, 15 BTNBMP oBtn1 OF oDlg PIXEL ;
SIZE 60, 30 ;
PROMPT "Msg &Error" FILE c_path + "\images\preview.bmp" 2007 ; Â Â Â Â Â Â Â Â
FONT oFont LEFT ;
ACTION MYMSGBOX( ;
"There is an error and the process could not be completed."+CRLF+"Please try it once again.", ;
150, ;Â Â Â Â Â // Â 2. Top ( centered Top and Left = 0 )
140, ;Â Â Â Â Â // Â 3. Left
{"&Close"}, ;Â Â Â Â // Â 4. aOptions
{"Exit16.bmp"}, ;Â Â // Â 5. aBmps
"Error Message", ;Â // Â 6. Title
"X", ;Â Â Â Â Â Â Â // Â 7. xIcon
, ;Â Â Â Â Â Â Â // Â 8. nDefault
, ;Â Â Â Â Â Â Â // Â 9. aGradient
"marble5.bmp", ;Â Â // 10. Bmp-brush
, ;Â Â Â Â Â Â Â // 11. bAction
, ;Â Â Â Â Â Â Â // 12. oFont
, ;Â Â Â Â Â Â Â // 13. cFileRes
oIcon1, ;Â Â Â Â Â Â // 14. oIcon
, ;Â Â Â Â Â Â Â // 15. uVar
, ;Â Â Â Â Â Â Â // 16. cPict,
, ;Â Â Â Â Â Â Â // 17. bValid
, ;Â Â Â Â Â Â Â // 18. lSpinner
, ;Â Â Â Â Â Â Â // 19. lMeter
, ;Â Â Â Â Â Â Â // 20. oMeter
, ;Â Â Â Â Â Â Â // 21. lCancel
CURDRIVE() + ":\" + GETCURDIR() )
..
..
ACTIVATE DIALOG oDlg ;
ON INIT ( DlgInit( oDlg, oFont, cMsg, nTop, nLeft, aOptions, cTitle, nDefault,;
      aGradiate, bAction, xIcon, @uVar, cPict, bValid,;
      lSpinner, lMeter, oMeter, @lCancel ), ;
      IIF( EMPTY(cBrush), Gradiate(oDlg, aGradiate), ;
                DrawBrush(oDlg, c_path + "\images\" + cBrush ) ) )
IF oIco # nil
   RELEASE ICON oIco
ENDIF
RELEASE FONT Â oFont
RETURN oDlg:Cargo
// ---- BMP-Brush-function ---------
FUNCTION DrawBrush( oDlg, cBrush )
LOCAL oBrush
IF !FILE( cBrush )
  MsgAlert( "File : " + cBrush + CRLF + ;
      "does not exist to create" + CRLF + ;
      "Brush-Background !", "ATTENTION" )
ELSE
  DEFINE BRUSH oBrush FILENAME cBrush
  oDlg:SetBrush( oBrush )
  oBrush:End()
ENDIF
RETURN nil
FOR nFor := 1 TO LEN(aOptions)
  @ nBtnHeight, nBtnOffset + ((nFor-1)*nBtnWidth) BTNBMP aBtns[nFor] OF oDlg ;
  SIZE nBtnWidth + 16, oDlg:nGetChrHeight()*2 PIXEL;
  NOBORDER ;
  PROMPT aOptions[nFor] ;
  FILENAME aBmp[nFor] ;
  FONT oFont 2007 ;
  LEFT
// old Button
//Â @ nBtnHeight, nBtnOffset + ((nFor-1)*nBtnWidth) ;
//Â BUTTON aBtns[nFor] PROMPT aOptions[nFor] OF oDlg ;
//Â PIXEL SIZE nBtnWidth, oDlg:nGetChrHeight()*1.7
  nBtnOffset  := nBtnOffset + 8
  aBtns[nFor]:bAction := GenBlock(oDlg, nFor)
NEXT nForHello Uwe,
You are most welcome to make your suggestions for the
better looking MyMsgBox Screens.
I am using TSButtons in my copy of MyMsgBox.
Other may prefer to use Skin Buttons or BtnBmp etc..
Regards,
-Ramesh Babu P