CheckBox ControlInfo doesnot work inside a mouse event
| jtigor | June 13, 2012 - 04:08 | ||
|---|---|---|---|
|
Have you checked the value of V_flag after the ControlInfo operation? Acording to command help:
V_flag = 2 for a checkbox. |
|||
| jjweimer | June 13, 2012 - 04:53 | ||
|---|---|---|---|
|
I suggest that you probably want to do a ControlInfo/W=panelname Check5 where panelname is the name of the panel where the checkbox resides. Also, you can save yourself the need to create a new variable, so the result is ...
-- |
|||
| proland | June 13, 2012 - 05:05 | ||
|---|---|---|---|
|
Whenever I come accross this, it is usually a result of checking for the control in the wrong panel. If it doesn't exist in the topmost panel, the returned is usually the default value. This is very common when dealing with multiple windows (your two graphs). JJweimer's advice for specifying the panel name usually solves the problem for me. |
|||


Joined: 2011-08-10
Location: United States
This is the code that allows someone to drag a trace from a graph and add it to a another graph.
I borrowed this code from utility "Drag and Drop Traces by" "RGerkin" and used it in my own program with certain modifciation and bug fixed.
I added a Checkbox named "Check5" and used it to select whether the "AppendToGraph" is with or without reverse axis.( See the code within two red horizontal dashed line.")
But Somehow this control does not work. always it choose the default unchecked option ( without reverse axis ) although it does not give any wrong message. Is it because this control is within a mouse event that’s why its not working ? or I am missing something.