Announcement

Collapse
No announcement yet.

Both Option Buttons On

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Both Option Buttons On

    I have a DDT app with six option buttons, grouped with frames into
    3 groups of two buttons each. The buttons work fine with the
    mouse, changing state when clicked and only affecting buttons
    within that frame.

    The problem is when I set the currently-OFF button to ON with:

    CONTROL SET CHECK hDlgHandle, hControlHandle, 1&

    both buttons remain ON! This is true in all frames.

    Anyone else seen this? I'm running Win2K Pro.

    Thanks!

    ------------------
    Mark Newman
    Mark Newman

  • #2
    Mark --
    try
    PostMessage GetDlgItem(hDlgHandle, hControlHandle), %BM_CLICK, 0, 0
    instead of
    CONTROL SET CHECK hDlgHandle, hControlHandle, 1&



    ------------------
    E-MAIL: [email protected]

    Comment


    • #3
      Thanks Semen!

      Your code works great! But I must ask, why??? Shouldn't the
      normal DDT method work?



      ------------------
      Mark Newman
      Mark Newman

      Comment

      Working...
      X
      😀
      🥰
      🤢
      😎
      😡
      👍
      👎