Page 3 of 3

Re: Pseudo Icon states

Posted: 20 May 2013 13:18
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 :)

Re: Pseudo Icon states

Posted: 20 May 2013 17:45
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! :)

Re: Pseudo Icon states

Posted: 20 May 2013 18:12
by serendipity
FluxTorpedoe wrote:Soon we'll play poker on our XY toolbar!
Yeah, cool 8)

Re: Pseudo Icon states

Posted: 20 May 2013 20:32
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.) :)

Re: Pseudo Icon states

Posted: 20 May 2013 21:08
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. :(

Re: Pseudo Icon states

Posted: 21 May 2013 08:41
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.

Re: Pseudo Icon states

Posted: 21 May 2013 09:38
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. :)