WB Icon

Discuss any general programming issues here
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: WB Icon

Post by airsoftsoftwair »

The first problem is now fixed...

Code: Select all

- Fix: NewIcons couldn't be used as icons for executables compiled by Hollywood because the icon
  pixels stored in the tooltypes confused Hollywood
Concerning your problems with SetWBIcon(): jPV is right. It doesn't work with MUI Royale or RapaGUI.
User avatar
r-tea
Posts: 133
Joined: Tue Feb 16, 2016 11:48 pm
Location: Zdzieszowice, Poland
Contact:

Re: WB Icon

Post by r-tea »

Thank you guys. You're great.

@ airsoftsoftwair
It's worth to mention in SetWBIcon() docs.
User avatar
r-tea
Posts: 133
Joined: Tue Feb 16, 2016 11:48 pm
Location: Zdzieszowice, Poland
Contact:

Re: WB Icon

Post by r-tea »

airsoftsoftwair wrote:The first problem is now fixed...

Code: Select all

- Fix: NewIcons couldn't be used as icons for executables compiled by Hollywood because the icon
  pixels stored in the tooltypes confused Hollywood
Concerning your problems with SetWBIcon(): jPV is right. It doesn't work with MUI Royale or RapaGUI.
What is the reason it doesn't? Or what is an obstacle to make it work?
Are there more functions that don't work with MUIRoyale and/or RapaGUI?
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: WB Icon

Post by airsoftsoftwair »

r-tea wrote:What is the reason it doesn't? Or what is an obstacle to make it work?
MUI has its own app icon handler. If Hollywood installed another one then there would be two different app icon handlers in the same program. Not good.
Are there more functions that don't work with MUIRoyale and/or RapaGUI?
On Amiga probably not, on Windows, Mac OS and Linux RapaGUI replaces the whole display handler with a custom one so that things like menu creation in Hollywood displays won't work.
User avatar
r-tea
Posts: 133
Joined: Tue Feb 16, 2016 11:48 pm
Location: Zdzieszowice, Poland
Contact:

Re: WB Icon

Post by r-tea »

airsoftsoftwair wrote:The first problem is now fixed...

Code: Select all

- Fix: NewIcons couldn't be used as icons for executables compiled by Hollywood because the icon
  pixels stored in the tooltypes confused Hollywood
When will that fix be available?

In the xml file I can pass appicon filename. Is there an other way t do it in .hws available? I need make the icon name a variable.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: WB Icon

Post by airsoftsoftwair »

r-tea wrote:When will that fix be available?
When it's ready :)
In the xml file I can pass appicon filename. Is there an other way t do it in .hws available? I need make the icon name a variable.
Just use a placeholder in the XML and then use ReplaceStr() on the XML to replace the placeholder with the variable's value.
User avatar
r-tea
Posts: 133
Joined: Tue Feb 16, 2016 11:48 pm
Location: Zdzieszowice, Poland
Contact:

Re: WB Icon

Post by r-tea »

airsoftsoftwair wrote:
r-tea wrote: In the xml file I can pass appicon filename. Is there an other way t do it in .hws available? I need make the icon name a variable.
Just use a placeholder in the XML and then use ReplaceStr() on the XML to replace the placeholder with the variable's value.
I assume I have to read the file into a string variable first, right?
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: WB Icon

Post by airsoftsoftwair »

Yes, first use FileToString(), then ReplaceStr(). See the Dynamic1.hws example that comes with RapaGUI. It also uses an XML template that is changed by the Hollywood script on the fly.
Post Reply