Menu

#82 Sample tutor fail

v1.0_(example)
closed
nobody
None
1
2021-04-23
2021-04-01
No

Hi!
See screen annex
Linux OS.

Best regards,
Itamar M. Lins Jr.

1 Attachments

Discussion

  • Wilfried Brunken

    Hello Itamar,
    sorry for this late response, i am very busy.
    Fixed with commit r2966 , please check.
    (HWG_MSGNOYES() is Windows only).
    I'll look for your tickets #83 und #84 in the next few days.

    My new computer with 4,5 Ghz processor arrived yesterday, so i can install Ubuntu 20
    and test all features for HWGUI some more faster.

    With regards,
    MNI TNX, 73 es 55 de
    DF7BE, Wilfried

     
  • Itamar M. Lins Jr.

    Hi!
    No!!!
    Hwg_MsgYesNo() works on Linux!!!

    ATENTION

    hwg_MsgYesNoCANCEL() //Fail on test tutor

    But works fine on linux.

    #include "hwgui.ch"
    
    function main
    INIT DIALOG oDlg CLIPPER NOEXIT TITLE "MESSAGE" AT 0,0 size 800,600 STYLE DS_CENTER
    
       lRet1 := hwg_msgYesNo("Hi!")
    
       lRet2 := hwg_msgyesnocancel("Hi!")
    
       hwg_msginfo(HB_VALTOSTR(lRet1) + " - " + HB_VALTOSTR(lRet2))
    
    oDlg:Activate()
    
    return nil
    

    I detected than return of hwg_MsgYesNoCancel()
    Yes = 6
    No = 7
    Cancel = 2
    ????
    Why no 1,2,3 or 0,1,2 or logical ,.T.,.F. .and 0 for "CANCEL" ?

    Best regards,
    Itamar M. Lins Jr.

     
  • Alexander S.Kresin

    This goes from a long time ago. Appropriate winapi call returns these values and when I wrote gtk function, I set the same for compatibility.
    Yes, I agree, any user may be discouraged by this return values. I vote for 1, 2 and 0 for Cancel.

     
  • Itamar M. Lins Jr.

    Hi!
    Fixed error, close this request.

    Best regards,
    Itaamr M. Lins Jr.

     
  • Alexander S.Kresin

    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB