ctbstate bug

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

ctbstate bug

Post 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
To see the attached files, you need to log into the forum.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: ctbstate bug

Post 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.

admin
Site Admin
Posts: 67315
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: ctbstate bug

Post by admin »

Nice icons! But I cannot repro the bug. :|

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: ctbstate bug

Post by serendipity »

admin wrote:Nice icons! But I cannot repro the bug. :|
Well... same here. I was especially shocked when my tree vanished.

admin
Site Admin
Posts: 67315
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: ctbstate bug

Post by admin »

I really like the icons. I would like to use them for the official "Mini Tree" button.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: ctbstate bug

Post 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.

admin
Site Admin
Posts: 67315
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: ctbstate bug

Post 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.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: ctbstate bug

Post 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.

Post Reply