Author Topic: Button bar text change depending on operation  (Read 15988 times)

GrantSP

  • Active Member
  • ***
  • Posts: 92
    • View Profile
Button bar text change depending on operation
« on: April 12, 2012, 03:25:31 »
Hey Mathias. What I mean is it possible to have the text on the buttons to change after the the button is clicked to display the then current option.

e.g. I have written some scripts to toggle the display to show certain types of files when a button is pressed like your example for *.log files. So the button has the text "Show Logs" and when it is pressed only the *.log files are shown. However the button text still displays "Show Logs" but when it is pressed again the file display is returned to all *.*.

Is it possible to have the button text alternate between "Show Logs" and "Show All" or "Hide Folders" and "Show Folders"? That way the button bar may become even more useful than it is now!

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4484
    • View Profile
    • Multi Commander
Re: Button bar text change depending on operation
« Reply #1 on: April 12, 2012, 12:43:29 »
No it is not possible to modify the button name from script dynamically.

GrantSP

  • Active Member
  • ***
  • Posts: 92
    • View Profile
Re: Button bar text change depending on operation
« Reply #2 on: April 13, 2012, 02:59:38 »
Thanks Mathias.

Looks like I'll just have to name them something like "Show/Hide...".

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4484
    • View Profile
    • Multi Commander
Re: Button bar text change depending on operation
« Reply #3 on: April 13, 2012, 07:33:44 »
Yes..

It would be nice if it was possible to dynamically change the button text. I been thinking if it would be possible to add.
But it would require a lot of work to get that working so for now you have to go with fixed button names.

I will put it on the "Nice to have" list.

GrantSP

  • Active Member
  • ***
  • Posts: 92
    • View Profile
Re: Button bar text change depending on operation
« Reply #4 on: April 13, 2012, 07:53:51 »
Not a problem.

The functionality of your MultiScript is more important than what the button says and I like what it does so far.

I agree, add it to the "Nice to have" list.

Cheers :D