Page 1 of 1 1
Topic Options
#91579 - 2003-02-24 09:13 PM KiXforms - Multi-Image Icons
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Can KiXforms support multi-image icons?

I have a custom multi-image icon that I built, but I can't seem to get KiXforms to display anything other than the first indexed icon. Example...

code:
$frmMain.Icon = "@SCRIPTDIR\kixftp_icons.ico;0"

...works, but...
code:
$frmMain.Icon = "@SCRIPTDIR\kixftp_icons.ico;1"

...displays the same icon as index 0.

[ 24. February 2003, 21:20: Message edited by: Chris S. ]

Top
#91580 - 2003-02-24 10:02 PM Re: KiXforms - Multi-Image Icons
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11631
Loc: CA
Chris,

Yes it does support, but the extension .ICO may be misleading. A normal .ico is expected to be a single icon. .DLL, .EXE, .NIL etc are often expeted to be a library resource of icons.

Maybe try renaming it to .dll and retesting.

This works for me.

$frmMain.Icon = "%SystemRoot%\system32\SHELL32.dll;24"

Top
#91581 - 2003-02-24 10:28 PM Re: KiXforms - Multi-Image Icons
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Didn't work. I get a 'Bad Image' error. The details of the message is: 'The application or DLL kixftp_icons.dll is not a valid Windows image.'

The app I'm using has the ability to save the icon library as a DLL, but I get the same error with it.

Other applications like IconXtractor are able to read the multi-image icons.

It isn't a big deal. I can make it an image strip, but then I'm having problems with the 'transparent' color.

Being able to access multi-image icons would allow me to use many customized images without cluttering up the folder. It is also slightly smaller in size.

Top
#91582 - 2003-02-24 10:46 PM Re: KiXforms - Multi-Image Icons
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11631
Loc: CA
Hmm.. not sure what method Shawn is using.

Does the example code I showed work?

Please try that code to verify that your version of KiXForms is working in the first place.

Then I guess we'll have to wait for Shawn to reply here.

Top
#91583 - 2003-02-24 11:33 PM Re: KiXforms - Multi-Image Icons
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Chris - I have more questions than answers at the moment - try catching you on MSN chat later tonight.
Top
#91584 - 2003-02-25 05:45 AM Re: KiXforms - Multi-Image Icons
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
good idea indeed.

this could remove the need for tons of ico-files in my projects!
_________________________
!

download KiXnet

Top
#91585 - 2003-02-25 01:50 PM Re: KiXforms - Multi-Image Icons
Rory Daniels Offline
Getting the hang of it

Registered: 2003-02-25
Posts: 64
Loc: Bristol, UK
I've been playing with this as I did not like having lots of .ico files sitting around in my script directory. I found that you can create a .icl file from Microangelo 5.5. If you ten rename the file with the extension of .exe the icons can be retrieved using:

$ObjName.Icon="$Location\icnlib.exe;7"

Note:
I could not get this going by renaming as a .dll file but have to admit not much effort was put into this.

Top
#91586 - 2003-02-25 02:27 PM Re: KiXforms - Multi-Image Icons
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
nice, must try with irfanview...
_________________________
!

download KiXnet

Top
#91587 - 2003-02-25 02:43 PM Re: KiXforms - Multi-Image Icons
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Excellent. That worked for me as well. Thanks, Rory.
Top
Page 1 of 1 1


Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 764 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.057 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org