Page 1 of 1

ctbstate bug

Posted: 22 May 2013 17:56
by serendipity
Clicking on my minitree button with ctbstate SC gives this error:
ctbstate error.png
and on second click the tree goes empty :? :
tree empty.png
Can reproduce most times, here's the snippet:

Code: Select all

Snip: CTB 1
  XYplorer 12.40.0205, 5/22/2013 11:49:26 AM
Action
  NewUserButton
Name
  MiniTree
Icon
  tree1.ico
ScriptL
  // Minitree toggle
            if (ctbicon() == "tree1.ico" AND get(#489)==0 AND ctbstate() == 0) {
              ctbicon("tree2.ico");
              ctbstate(1);
              
              button "minitree";//Toggle minitree
            } else {
              ctbicon("tree1.ico");
              ctbstate(0);        
   
              button "minitree";//Toggle minitree
            }  
ScriptR
  
FireClick
  0
and the buttons:
minitree.zip

Re: ctbstate bug

Posted: 22 May 2013 17:59
by serendipity
As luck would have it... cannot reproduce this anymore.
It happened last night and this morning, well not anymore.
Will report back if that changes.

Re: ctbstate bug

Posted: 22 May 2013 18:03
by admin
Nice icons! But I cannot repro the bug. :|

Re: ctbstate bug

Posted: 22 May 2013 18:09
by serendipity
admin wrote:Nice icons! But I cannot repro the bug. :|
Well... same here. I was especially shocked when my tree vanished.

Re: ctbstate bug

Posted: 23 May 2013 09:28
by admin
I really like the icons. I would like to use them for the official "Mini Tree" button.

Re: ctbstate bug

Posted: 23 May 2013 16:47
by serendipity
admin wrote:I really like the icons. I would like to use them for the official "Mini Tree" button.
Ofcourse, you are free to use them. Just read the license from fatcow, seems fine.
I have the PSD if you want.

Re: ctbstate bug

Posted: 23 May 2013 16:52
by admin
serendipity wrote:
admin wrote:I really like the icons. I would like to use them for the official "Mini Tree" button.
Ofcourse, you are free to use them. Just read the license from fatcow, seems fine.
I have the PSD if you want.
Oh yes, I'd like to have it, thanks.

Re: ctbstate bug

Posted: 23 May 2013 17:03
by serendipity
admin wrote:
serendipity wrote:
admin wrote:I really like the icons. I would like to use them for the official "Mini Tree" button.
Ofcourse, you are free to use them. Just read the license from fatcow, seems fine.
I have the PSD if you want.
Oh yes, I'd like to have it, thanks.
Will send it to you when i get home.