Menu

#763 Grid Control - OnButtonClicked

v_7.0
closed-works-for-me
5
2014-05-22
2014-05-21
No

I can't seem to get the OnButtonClicked to work for my Grids. I've tried both Asynchronous and Synchronous. Not sure if this is a bug or something I'm doing wrong.
The DblClicked or OnColumnClick works, so I know I'm loading the correct form and it's reading it properly, but when I "check" or "uncheck" a button in a cell, it doesn't react.

sample functions:
;does not work
(defun c:Main_Form1_Grid1_OnButtonClicked (Row Column /)
(dcl_MessageBox "To Do: code must be added to event handler\r\nc:Main_Form1_Grid1_OnButtonClicked" "To do")
)
;does work
(defun c:Main_Form1_Grid1_OnColumnClick (Column /)
(dcl_MessageBox "To Do: code must be added to event handler\r\nc:Main_Form1_Grid1_OnColumnClick" "To do")
)

Thanks,
Paul

Related

Bugs: #763

Discussion

  • Owen Wengerd

    Owen Wengerd - 2014-05-21
    • status: open --> open-works-for-me
    • assigned_to: Owen Wengerd
     
    • Paul Gregersen

      Paul Gregersen - 2014-05-22

      Maybe that is it, I probably want the EndLabelEdit. It's doing what I
      need. Thanks.

      On Wed, May 21, 2014 at 10:02 AM, Owen Wengerd owenwengerd@users.sf.netwrote:

      • status: open --> open-works-for-me
      • assigned_to: Owen Wengerd
      • Comment:

      What is your cell style? Buttons cannot be checked or unchecked, so my
      guess is that you're not using a button cell style. If my hunch is correct,
      you probably want to use the BeginLabelEdit or EndLabelEdit events instead.


      Status: open-works-for-me

      Group: v_7.0
      Labels: ButtonClick Grid
      Created: Wed May 21, 2014 04:43 PM UTC by Paul Gregersen
      Last Updated: Wed May 21, 2014 04:43 PM UTC
      Owner: Owen Wengerd

      I can't seem to get the OnButtonClicked to work for my Grids. I've tried
      both Asynchronous and Synchronous. Not sure if this is a bug or something
      I'm doing wrong.
      The DblClicked or OnColumnClick works, so I know I'm loading the correct
      form and it's reading it properly, but when I "check" or "uncheck" a button
      in a cell, it doesn't react.

      sample functions:
      ;does not work
      (defun c:Main_Form1_Grid1_OnButtonClicked (Row Column /)
      (dcl_MessageBox "To Do: code must be added to event
      handler\r\nc:Main_Form1_Grid1_OnButtonClicked" "To do")
      )
      ;does work
      (defun c:Main_Form1_Grid1_OnColumnClick (Column /)
      (dcl_MessageBox "To Do: code must be added to event
      handler\r\nc:Main_Form1_Grid1_OnColumnClick" "To do")
      )

      Thanks,
      Paul


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/opendcl/bugs/763/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #763

  • Owen Wengerd

    Owen Wengerd - 2014-05-21

    What is your cell style? Buttons cannot be checked or unchecked, so my guess is that you're not using a button cell style. If my hunch is correct, you probably want to use the BeginLabelEdit or EndLabelEdit events instead.

     
  • Owen Wengerd

    Owen Wengerd - 2014-05-22
    • status: open-works-for-me --> closed-works-for-me
     

Log in to post a comment.