Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change Button State without activating its Case macros
#1
Hi,
I have a smart dialog which can be controlled from two different networked computers (actually side-by-side). I was wondering if it was possible to have a button state (0x50001003 PUSHLIKE AUTOCHECKBOX i.e. depressed or not depressed) be changed without activating its case commands specified in the Dialog macro. The problem is that those case commands can also be run from the second computer. I want the button state to reflect that the state has changed but since the relevant commands have already been run from the other computer, I don't want them to be run again from the dialog.
I hope that is not too confusing.
Thanks,
Stuart

ps. I know how to assess the state of the button, so that is not the problem.

Function ButtonOn
Code:
Copy      Help
Acc Button=acc("Button" "CHECKBUTTON" win("ButtonSettings" "#32770") "Button" "" 0x1001)
int ButtonState=Button.State()
#2
but+ brobably will check without sending message to the dialog function.
but- unchecks.

Or use CheckDlgButton.
#3
Thanks Gintaras, will give it a try today.
Stuart


Forum Jump:


Users browsing this thread: 1 Guest(s)