For my Windows app I need to change the icon. I used ResHacker to change
it. It seems to have taken in Windows Explorer but when I start my app I get the old VW icon. I used the GUI painter tool to inspect my window thinking I need to specify a different icon, but there is no setting there for that. What am I missing? -Carl Gundel http://www.runbasic.com |
The easiest thing to do is to add the following in your pre-strip method
that runs when you build your runtimes, Icon constantNamed: #default put: Icon runbasic. That way you don't ever have to worry about properly setting it on every window, it just takes over. Cheers! -Boris -- +1.604.689.0322 DeepCove Labs Ltd. 4th floor 595 Howe Street Vancouver, Canada V6C 2T5 http://tinyurl.com/r7uw4 [hidden email] CONFIDENTIALITY NOTICE This email is intended only for the persons named in the message header. Unless otherwise indicated, it contains information that is private and confidential. If you have received it in error, please notify the sender and delete the entire message including any attachments. Thank you. > -----Original Message----- > From: Carl Gundel [mailto:[hidden email]] > Sent: Monday, November 05, 2007 1:08 PM > To: [hidden email] > Subject: [7.4.1]Changing the runtime icon > > For my Windows app I need to change the icon. I used ResHacker to change > it. It seems to have taken in Windows Explorer but when I start my app I > get the old VW icon. I used the GUI painter tool to inspect my window > thinking I need to specify a different icon, but there is no setting there > for that. > > What am I missing? > > -Carl Gundel > http://www.runbasic.com > |
In reply to this post by Carl Gundel
I thought if I rebooted Windows maybe that would reset something being
cached. Nothing doing. In fact it did exactly the opposite of what I expected. Now the VW icon appears in Explorer for my vm. Open it again using ResHacker and it shows the icon I installed. This is really baffling. :-/ -Carl Gundel http://www.runbasic.com > For my Windows app I need to change the icon. I used ResHacker to change > it. It seems to have taken in Windows Explorer but when I start my app I > get the old VW icon. I used the GUI painter tool to inspect my window > thinking I need to specify a different icon, but there is no setting there > for that. > > What am I missing? |
In reply to this post by Carl Gundel
If you don't specify an icon, all windows get the default. To change
that default icon, do this: Icon constantNamed: #default put: myIcon To change the icon for a particular window, save it in the class resource method "icon" and set it in postBuildWith: aBuilder window icon: (Icon image: self class icon). Of course you can do more, such as adding a mask (Icon class>>figure:shape:) or caching the icon as a named constant in Icon (as for the default above). You should also send #cleanFigure to your icons (see the comment). HTH, Steve > -----Original Message----- > From: Carl Gundel [mailto:[hidden email]] > Sent: 5. marraskuuta 2007 23:08 > To: [hidden email] > Subject: [7.4.1]Changing the runtime icon > > > For my Windows app I need to change the icon. I used > ResHacker to change > it. It seems to have taken in Windows Explorer but when I > start my app I > get the old VW icon. I used the GUI painter tool to inspect > my window > thinking I need to specify a different icon, but there is no > setting there > for that. > > What am I missing? > > -Carl Gundel > http://www.runbasic.com > > > |
In reply to this post by Carl Gundel
Carl Gundel a écrit :
> I thought if I rebooted Windows maybe that would reset something being > cached. Nothing doing. In fact it did exactly the opposite of what I > expected. Now the VW icon appears in Explorer for my vm. Open it > again using ResHacker and it shows the icon I installed. This is > really baffling. :-/ If I remember well you have to do the resource hacking on all the executables. If you replace the default Icon in Icon and initialize the class you will also see your own logo on unexpected system dialogs. Rgrds, @Maarten, > > -Carl Gundel > http://www.runbasic.com > >> For my Windows app I need to change the icon. I used ResHacker to >> change it. It seems to have taken in Windows Explorer but when I >> start my app I get the old VW icon. I used the GUI painter tool to >> inspect my window thinking I need to specify a different icon, but >> there is no setting there for that. >> >> What am I missing? > > > > |
Free forum by Nabble | Edit this page |