Pseudo Icon states

Discuss and share scripts and script files...
eil
Posts: 1866
Joined: 13 Jan 2011 19:44

Re: Pseudo Icon states

Post by eil »

thumb-button is great :appl: will wait to see dice.
one command but what a wonderfull effects. i thinks we'll see "alive toolbar" soon :)
Win 7 SP1 x64 100% 1366x768|1900x1080

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

Re: Pseudo Icon states

Post by serendipity »

admin wrote:Sorry, but could not resist to make a simpler version of the thumbs toggler... :whistle:

Code: Select all

//thumbs
   $i = 0;
   $rounds = rand(24, 25);
   while ($i < $rounds) {
    $icon = ($icon == "t-up.ico")? "t-dn.ico":"t-up.ico";
    ctbicon($icon);
    wait 200;
    $i++;
  }
Nice! :)

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

Re: Pseudo Icon states

Post by serendipity »

FluxTorpedoe wrote:Soon we'll play poker on our XY toolbar!
Yeah, cool 8)

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

Re: Pseudo Icon states

Post by admin »

If you have too much time and need an idea: make a slot machine (3 buttons + rand() + icons for cherries, bells, clover etc.) :)

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

Re: Pseudo Icon states

Post by serendipity »

admin wrote:If you have too much time and need an idea: make a slot machine (3 buttons + rand() + icons for cherries, bells, clover etc.) :)
Haha, good one. Can be done with all the sounds from slot machine too, fun.
Toolbar state: Day=File management mode. Night=Las Vegas mode :lol:
Alas, the week has just begun. :(

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

Re: Pseudo Icon states

Post by admin »

FluxTorpedoe wrote:
admin wrote:Not totally understood. What are the steps to get a non-refresh?

Code: Select all

delete 0, 0, "<xyicons>\Test.ico";
copyitem "<xyicons>\Test_ON.ico", "<xyicons>\Test.ico";
:arrow: "Test.ico" is displayed in its original (previous) state, whereas it should look like "Test_ON.ico". Refreshing list or icons doesn't refresh it, only a restart of XY does.

Alternately, open any icon in an editor, update it and save it: it won't be refreshed in XY (at least here under WinXP - but I may be missing a tweak or setting).
Quite noticeable when updating icons used by CFI, cause it's responsible for a lot of XY restarts... ;)
Yep, I could reproduce it. But I found out that changing this behavior is incredibly complex. Sorry, but no time. You will have to restart the app.

FluxTorpedoe
Posts: 906
Joined: 05 Oct 2011 13:15

Re: Pseudo Icon states

Post by FluxTorpedoe »

Thanks for taking the time to investigate!
Not a big deal per se anyway. It was the advent of icon states for ctbs that reminded me of the possibility of icon states in ctb menus. So dynamic menus are still our best option. :)

Post Reply