| T O P I C R E V I E W |
| G.Bartsch |
Posted - 06/08/2006 : 11:29:41 AM I tried put exist(window)==2 as condition for the active status of a user defined button. that works until the next restart of origin. because then origin refuses to start until i take away my button ini. any ideas? thank you |
| 2 L A T E S T R E P L I E S (Newest First) |
| G.Bartsch |
Posted - 06/12/2006 : 04:28:57 AM thank you for your efforts. ill try that next time. |
| Mike Buess |
Posted - 06/08/2006 : 2:33:09 PM I can reproduce that in Origin 7.5 but have no idea why it happens. A workaround that I've found is to combine your condition with another. For example, Data2!wks.ncols>=0 && exist(Data2)==2 (in that order) satisfies Origin at startup and works as intended. Note that Data2!wks.ncols>=0 works on its own but that condition is also met by a matrix window named Data2.
...Turns out that Origin will also fail to start when the colnum() function is used as the sole button condition. There may well be other functions that offend Origin on startup. An easy general solution seems to be to combine such conditions with @V>0 where @V is the Origin version number which is alway greater than zero. @V>0 && exist(Data2)==2 works fine but switching the order of the conditions or using exist(Data2)==2 alone will prevent Origin from starting.
Mike Buess Origin WebRing Member
Edited by - Mike Buess on 06/08/2006 2:40:30 PM
Edited by - Mike Buess on 06/08/2006 3:36:09 PM |