WB Icon

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

Re: WB Icon

Post by airsoftsoftwair » Mon Aug 07, 2017 12:17 pm

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: 63
Joined: Wed Feb 17, 2016 12:48 am
Location: Zdzieszowice, Poland
Contact:

Re: WB Icon

Post by r-tea » Mon Aug 07, 2017 9:38 pm

Thank you guys. You're great.

@ airsoftsoftwair
It's worth to mention in SetWBIcon() docs.

User avatar
r-tea
Posts: 63
Joined: Wed Feb 17, 2016 12:48 am
Location: Zdzieszowice, Poland
Contact:

Re: WB Icon

Post by r-tea » Fri Aug 18, 2017 11:36 pm

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: 2484
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: WB Icon

Post by airsoftsoftwair » Sat Aug 19, 2017 12:22 pm

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: 63
Joined: Wed Feb 17, 2016 12:48 am
Location: Zdzieszowice, Poland
Contact:

Re: WB Icon

Post by r-tea » Mon Sep 04, 2017 10:55 pm

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: 2484
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: WB Icon

Post by airsoftsoftwair » Tue Sep 05, 2017 6:19 pm

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: 63
Joined: Wed Feb 17, 2016 12:48 am
Location: Zdzieszowice, Poland
Contact:

Re: WB Icon

Post by r-tea » Wed Sep 06, 2017 8:31 pm

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: 2484
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: WB Icon

Post by airsoftsoftwair » Wed Sep 06, 2017 10:11 pm

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