Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

[MBS] Windows Icons (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Next thread: [MBS] 63pr8 Linux problem, other notes


Re: [MBS] MIDI Destinations and External Devices   -   Ron Benditt
  [MBS] Windows Icons   -   Greg O'Lone
   Re: [MBS] Windows Icons   -   Christian Schmitz
    Re: [MBS] Windows Icons   -   Michael Diehr
     Re: [MBS] Windows Icons   -   Christian Schmitz
      Re: [MBS] Windows Icons   -   Michael Diehr
       Re: [MBS] Windows Icons   -   Christian Schmitz

[MBS] Windows Icons
Date: 28.08.06 22:43 (Mon, 28 Aug 2006 17:43:15 -0400)
From: Greg O'Lone
I've just been working with folderitem.iconMBS with good results, but
I was wondering if it is possible to get the rendered icons in
windows? What I am trying to do is:

When a file from Flexisign (similar to illustrator & freehand) is
viewed in Explorer, the icons change to show the actual contents of
the file. I'd like to use that same mechanism to get a picture of the
file if possible. Anyone have any ideas?

GregO
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
http://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Windows Icons
Date: 28.08.06 23:23 (Tue, 29 Aug 2006 00:23:23 +0200)
From: Christian Schmitz
Greg O'Lone <<email address removed>> wrote:

> I've just been working with folderitem.iconMBS with good results, but
> I was wondering if it is possible to get the rendered icons in
> windows?

IconMBS is outdated.
Please use IconImageMBS and IconMaskMBS together.

And they work on Windows.

Gruß
Christian

-

Re: [MBS] Windows Icons
Date: 04.07.07 21:46 (Wed, 4 Jul 2007 13:46:56 -0700)
From: Michael Diehr
On Aug 28, 2006, at 3:23 PM, Christian Schmitz wrote:

> Greg O'Lone <<email address removed>> wrote:
>
>> I've just been working with folderitem.iconMBS with good results, but
>> I was wondering if it is possible to get the rendered icons in
>> windows?
>
> IconMBS is outdated.
> Please use IconImageMBS and IconMaskMBS together.
>
> And they work on Windows.
>
> Gruß
> Christian

Trying to understand how to do cross-platform icon handling. I'd
like to be able to load and save icons from mac to windows, and back
from windows to mac:

Assumptions:
IconFamilyMBS and IconMBS classes are mac only?

FolderItem.IconImageMBS and .IconImageMask.mbs work on mac/win?

FolderItem.IconImageMBS and .IconImageMask.mbs are read-only? You
can not set a file icon.

So it seems like the best way to do this is to use IconFamilyMBS on
the mac side, but for cross-platform file transfers I should just
extract the icon images & masks and save them as PNGs?

Is there any way to set a file icon on windows using MBS?

thanks!
-mike


_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
http://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Windows Icons
Date: 05.07.07 14:22 (Thu, 5 Jul 2007 15:22:32 +0200)
From: Christian Schmitz
Michael Diehr <<email address removed>> wrote:

> IconFamilyMBS and IconMBS classes are mac only?

Yes.

> FolderItem.IconImageMBS and .IconMaskMBS work on mac/win?

Yes.

> FolderItem.IconImageMBS and .IconMaskMBS are read-only? You
> can not set a file icon.

Yes.

> So it seems like the best way to do this is to use IconFamilyMBS on
> the mac side, but for cross-platform file transfers I should just
> extract the icon images & masks and save them as PNGs?

Maybe.

> Is there any way to set a file icon on windows using MBS?

Normally you don't do that at all.
Windows doesn't have resource fork. There is something similar defined
for certain file types like executeable files.

Gruß
Christian

-

Re: [MBS] Windows Icons
Date: 05.07.07 21:01 (Thu, 5 Jul 2007 13:01:46 -0700)
From: Michael Diehr
On Jul 5, 2007, at 6:22 AM, Christian Schmitz wrote:

>> Is there any way to set a file icon on windows using MBS?
>
> Normally you don't do that at all.
> Windows doesn't have resource fork. There is something similar defined
> for certain file types like executeable files.

Windows EXEs do have resources, they are just really hard to get to.
In the past I've just edited the icons by brute force (find the
starting point in the file then replace the bytes... as long as you
don't change the file size it works ok). But the newer way is to
set icons via the registry, which is what most installers do.

There are tools out there to take an EXE, split it into the component
parts, change the icon, then rebuild the EXE file. I found that
REALbasic 4.5 apps would not work afterwards (some checksum issue?).
I've not tried this process with 2007r3. I wonder if the RB EXE
format is more well-defined?

here is a tool to edit PEF: http://www.heaventools.com/overview.htm

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
http://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Windows Icons
Date: 05.07.07 22:00 (Thu, 5 Jul 2007 23:00:03 +0200)
From: Christian Schmitz
Michael Diehr <<email address removed>> wrote:

> Windows EXEs do have resources, they are just really hard to get to.

Correct.

> I found that REALbasic 4.5 apps would not work afterwards (some checksum
> issue?).

I think they have a lot of hard coded offsets inside which break.
e.g. the position of the internal dlls or the resources like pictures.

> I've not tried this process with 2007r3. I wonder if the RB EXE
> format is more well-defined?

It is not defined at all.

So forget it and use an installer to give your application an icon when
being shows in the start menu or as a link on the desktop.

Gruß
Christian

-