"Catch" buttons status clicked or not

This question has suggested answer(s)

Hello, how is it possible to determine a button state? Is it active(clicked) or not?

All Replies
  • Hi Supertramp,

    You can override the "clicked" method at the control level, is that what you are looking for?

    Regards,

    Dominic

    My blog | PBC

    This forum post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • thanks for answer Domenic. here is my situation: there is a button 'A' and when I click this button I need to determine the state of button 'B'. for example pseudocode

    if(ButtonB.IsClicked) { //do something }

  • Hi,

    I am not sure I get what you mean. When button 'A' is clicked, then button 'B' would be, naturally, not clicked. At least when we are talking about keyboard and mouse, not multi-touch input. Your description of button B sounded like something that can be done with a radio button or checkbox?

    Regards,

    Dominic

    My blog | PBC

    This forum post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Hi

    As for my knowledge, you can only "save" if the Button was pressed or not, e.g. in a variable.

    As for your requirement, I think is better manage a checkbox.

    So if ticked, do something.

    Regards

    Thanks & Regards

    Denis Macchinetti

    Senior Technical Architect

  • This is the same question that is asked here: stackoverflow.com/.../determine-button-state-clickedactive-or-not-ms-dynamics-ax

    It's better not to double post...