SetIconProperties to change also way of run DefaultTool?

Feature requests for future versions of Hollywood can be voiced here
Post Reply
User avatar
Tuxedo
Posts: 345
Joined: Sun Feb 14, 2010 12:41 pm

SetIconProperties to change also way of run DefaultTool?

Post by Tuxedo »

Hi Andreas!
I just realized that SetIconProperties() will change everything in an icon but not the way a defTool was launched...
I need to launche the DefaultTool from Shell instead as WB but dunno how...
Any way atm or have to wait next release?

Thank you!

EDIT: I also noticed that if I create an icon with my desired run mode If I "touch" it with SetIconProperties the run method was reverted automatically to Workbench...
Simone"Tuxedo"Monsignori, Perugia, ITALY.
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: SetIconProperties to change also way of run DefaultTool?

Post by airsoftsoftwair »

No, this is currently not supported. But I could add it for a future version...
User avatar
Tuxedo
Posts: 345
Joined: Sun Feb 14, 2010 12:41 pm

Re: SetIconProperties to change also way of run DefaultTool?

Post by Tuxedo »

ok, thank you!
Simone"Tuxedo"Monsignori, Perugia, ITALY.
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: SetIconProperties to change also way of run DefaultTool?

Post by airsoftsoftwair »

I've investigated into this and it seems that a little trick is used to configure the run mode. If you want the program to be run from Shell, the first two tooltypes must be set to

Code: Select all

CLI
DONOTPROMPT
If you want the program to be run from Rexx, the first two tooltypes must be set to

Code: Select all

REXX
DONOTPROMPT
In all other cases the program will be started from Workbench. Note that these tooltypes are special and won't be shown when you examine the icon from Workbench. Instead, the cycle gadget in the icon information dialog will be switched to the correct run mode.

Summing up, it's not necessary to add any additional functionality to Hollywood. You can just SetIconProperties() and set the tooltypes as described above.
User avatar
Tuxedo
Posts: 345
Joined: Sun Feb 14, 2010 12:41 pm

Re: SetIconProperties to change also way of run DefaultTool?

Post by Tuxedo »

Great!
Thank you!

I imagine that the "DONOTPROMPT" Tooltype can be setted also.on "POMPT" if you like to ask arguments on cli/rexx Cmq run...I'll try...

Keep up good.work!
Simone"Tuxedo"Monsignori, Perugia, ITALY.
Post Reply