Will a method be forth coming to make a CTB display its toggle or state the way the native XY buttons can?
Looked in The XYplorer Roadmap and did not see anything but it may be a question of terminology or nomenclature.
It would be of inestimable value to have visual feedback on the state of a carefully crafted button and may lead to more users implementing them which would be an asset to the software in general and maybe even augment sales.
CTB - Toggle/State
-
highend
- Posts: 14955
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: CTB - Toggle/State
/signedIt would be of inestimable value to have visual feedback on the state of a carefully crafted button and may lead to more users implementing them
One of my scripts helped you out? Please donate via Paypal
-
admin
- Site Admin
- Posts: 66366
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
-
aurumdigitus
- Posts: 1075
- Joined: 30 May 2008 21:02
- Location: Lake Erie
Re: CTB - Toggle/State
Something along theses lines ??
As stated really think this idea would be a significant advance.
Code: Select all
"Icon status| Nonpushed (c:Program Files\XYplorer\graphic1.ico)| Pushed (c:Program Files\XYplorer\graphic2.ico)" Script;-
admin
- Site Admin
- Posts: 66366
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: CTB - Toggle/State
That's the icon. But I meant the state. What tells the button in what state it is in? Some variable must be connected to this. How? And how is this variable remembered across sessions?
FAQ | XY News RSS | XY X
-
eil
- Posts: 1875
- Joined: 13 Jan 2011 19:44
Re: CTB - Toggle/State
just a thought: what if a defined alias would store state for icon?
(don't mean i think this is a feature to focus development)
(don't mean i think this is a feature to focus development)
Win 7 SP1 x64 100% 1366x768|1900x1080
-
admin
- Site Admin
- Posts: 66366
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: CTB - Toggle/State
Not sure what you mean. The state can be a user-defined entity, or it can depend on some volatile property of the file system, or the day time, or whatever. Witin the current framework of scripting and CTB I don't see a way to do this. Otherwise I would have long done it.eil wrote:just a thought: what if a defined alias would store state for icon?
FAQ | XY News RSS | XY X
-
eil
- Posts: 1875
- Joined: 13 Jan 2011 19:44
Re: CTB - Toggle/State
is it possible at all to change CTB icon with a script?(to send another icon path to already existing button) that can be a corner stone for such feature..
as in many other cases, CEA could be helpful here.
as in many other cases, CEA could be helpful here.
Win 7 SP1 x64 100% 1366x768|1900x1080
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: CTB - Toggle/State
I demonstrated one way to achieve a state-like button, but it requires defining multiple buttons (one for each icon) and then having each one update the toolbar.eil wrote:is it possible at all to change CTB icon with a script?(to send another icon path to already existing button) that can be a corner stone for such feature..
See here: http://www.xyplorer.com/xyfc/viewtopic. ... 463#p66463
EDIT: Wording.
-
aurumdigitus
- Posts: 1075
- Joined: 30 May 2008 21:02
- Location: Lake Erie
Re: CTB - Toggle/State
On reflection this should have been obvious.admin wrote:Witin the current framework of scripting and CTB I don't see a way to do this. Otherwise I would have long done it
If wishes could do dishes ...
TheQwerty's work around solution by swapping the buttons is innovation and will be experimented with.
Thanks to those who participated in this thread!
-
PeterH
- Posts: 2829
- Joined: 21 Nov 2005 20:39
- Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%
Re: CTB - Toggle/State
Just a thought about this...
The definition of the button could reference a variable, and it could define multiple icons.
If the variable is defined and numeric it defines the number of the defined icon.
If it's undefined, not numeric, or out of range of the number of icons the default icon "0" is shown.
It seems the variable must be global...
Maybe this could be a start?
The definition of the button could reference a variable, and it could define multiple icons.
If the variable is defined and numeric it defines the number of the defined icon.
If it's undefined, not numeric, or out of range of the number of icons the default icon "0" is shown.
It seems the variable must be global...
Maybe this could be a start?
-
eil
- Posts: 1875
- Joined: 13 Jan 2011 19:44
Re: CTB - Toggle/State
interesting variant.TheQwerty wrote:I demonstrated one way to achieve a state-like button, but it requires defining multiple buttons (one for each icon) and then having each one update the toolbar.
See here: http://www.xyplorer.com/xyfc/viewtopic. ... 463#p66463
Win 7 SP1 x64 100% 1366x768|1900x1080
XYplorer Beta Club