Menu

#184 Bug with hwg_IsCheckedMenuItem

v1.0_(example)
closed
nobody
None
1
2024-09-02
2024-08-16
No

Hi,

A little sample to see this bug.

Thanks
A+

1 Attachments

Discussion

  • Alexander S.Kresin

    The bug is in your code.
    Since the menu is not a window main menu, but a context menu, you must use the menu object oMenuRun instead of window object oMakeDlg in menu functions:

    hwg_CheckMenuItem(oMenuRun,1100,lTerm)
    hwg_IsCheckedMenuItem(oMenuRun,1100)

    Regards, Alexander

     
  • Aupeix Alain

    Aupeix Alain - 2024-08-21

    Hi,

    Thanks
    it works nicely now

    A+

     
  • Alexander S.Kresin

    • status: open --> closed
     

Log in to post a comment.