Page 1 of 2 12>
Topic Options
#89104 - 2002-11-01 09:28 AM Icon from .exe in KixForms
Schuliebug Offline
Hey THIS is FUN
*****

Registered: 2002-01-18
Posts: 379
Loc: Netherlands
Is it possible to use icons from .exe files instead or next to from .dll files ? I try to achieve something as in KixForms wish list, item Remote Management Utility. I can add an icon from a .dll in a $Form.Image, but what i want is to add icons from eventvwr.exe ..

Is it also possible to automatically resize the icons added to the form ?? [Confused]

[ 01. November 2002, 11:14: Message edited by: Schuliebug ]
_________________________
Kind regards,

Top
#89105 - 2002-11-01 02:24 PM Re: Icon from .exe in KixForms
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
schulie, you might want to "create" the icons by yourself.
tools like irfanview can open exe's and dll's showing their icons and saving them in whatever format you want (including .ico)
_________________________
!

download KiXnet

Top
#89106 - 2002-11-01 02:26 PM Re: Icon from .exe in KixForms
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Jan, will look into this asap.
Top
#89107 - 2002-11-01 03:27 PM Re: Icon from .exe in KixForms
Schuliebug Offline
Hey THIS is FUN
*****

Registered: 2002-01-18
Posts: 379
Loc: Netherlands
Lonkero,

I solved this with .ico files, but still it would be nice that:
  • you could get icons form whatever file (.dll, .exe, .ico)
  • and that it would be automatically be resized to the size of the object.
_________________________
Kind regards,

Top
#89108 - 2002-11-01 05:29 PM Re: Icon from .exe in KixForms
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
the resize is ok and missed that when did button with image.
needed to resize (modify) the image to get it fit there...
_________________________
!

download KiXnet

Top
#89109 - 2002-11-01 05:59 PM Re: Icon from .exe in KixForms
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
What is it about Images and Icons that can't be resized ?
Top
#89110 - 2002-11-01 06:02 PM Re: Icon from .exe in KixForms
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
autoresize, auto...
_________________________
!

download KiXnet

Top
#89111 - 2002-11-01 06:05 PM Re: Icon from .exe in KixForms
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
You mean, for exmaple, if you created an icon image that is 16x16 pixels - then if you load the image with another icon that is 32x32, the image control would automatically resize to 32x32 ?
Top
#89112 - 2002-11-01 06:26 PM Re: Icon from .exe in KixForms
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
or, if you have a image of 800x1024 and button for 20x20 the image gets automatically to that size.
_________________________
!

download KiXnet

Top
#89113 - 2002-11-01 06:35 PM Re: Icon from .exe in KixForms
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Well, if you create an image icon that is 32x32 - then set the width and height to 200x200 - you will get an icon that is 200x200, albiet very grainy - same with a bitmap, if you compress a bmp from 500x500 down to 50x50 - something is going to get lost in the translation. ie: would one really want to do this ?
Top
#89114 - 2002-11-01 06:42 PM Re: Icon from .exe in KixForms
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, if one has that sized image and wants it smaller, it has to be resized anyway.
_________________________
!

download KiXnet

Top
#89115 - 2002-11-01 06:59 PM Re: Icon from .exe in KixForms
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Well, I don't think icons were really meant to be stretched and resized too much - the developer would choose to use either small (16x16) or large (32x32) and simply size the image accordingly. Could see maybe deviating from this "standard" a little bit (+/- 10%) but then the icons start to look grainy and loose the standard Windows look-nd-feel. Bitmaps are a different story ...

It has always been stated (even with VB6) that one shouldn't use the compiler to as an imaging studio (tool) - that is to say - if one wants to change the appearance (size/effects/tone) of a bitmap, the developer should use free or commercially available software to do this ahead of time - and ship the revised bitmap in pretty much the state the he/she would render it in.

This is because Kixforms (or VB6 or anything like it) wasn't engineered to be on the same level as PhotoShop or the like. Im not an expert to be sure, but I think dedicated software like this is much, much more adept at compressing a bitmap then VB6 is - plus add to that the fact that one really wouldn't want to be doing this at "run time" anyways - it would just take up more time and cycles than are needed - why not just ship bitmap in its rendered state and size and be done with it. The size you would know ahead of time so you could properly construct it ahead of time.

As an example of all this - might want to check out how the KIX-LANDER script was built and shipped.

Top
#89116 - 2002-11-01 07:14 PM Re: Icon from .exe in KixForms
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
shawn, I know I know.
just, that it would be awesome.
but even with real editor (like the irfanview, which did better quality than photoshop) the image resize reduces the outerlook.
and hasn't many webpages in the link page the smaller image as link to the same image in fullsize?

scretching image is one thing that I can't understand for programmatic usage... unless someone is coding image editor.
_________________________
!

download KiXnet

Top
#89117 - 2002-11-01 07:32 PM Re: Icon from .exe in KixForms
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
You know what Jooel - I know you know this - my comments aren't directed toward you or Jan ... Im just making some statements here. And to be honest, once an icon or bitmap has been sized ahead of time - why would one need to dynamically chnage the size of it (while the app is running). Unless one is coding some kind of funky game or imaging software itself ... how many Windows apps have you seen that dynamically change the size of a bitmap. One very rarely see this, even (like you say) when using the webbrowser.
Top
#89118 - 2002-11-01 07:36 PM Re: Icon from .exe in KixForms
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
now came to mind...
I new to find a way to create bitmaps...
with kix!
man, this is stupid thing this friday, coding only.

{edit}
actually, I made photogallery some 1,5 year ago that loaded dynamically the files and created the java code to point to those images which were automatically resized to client width.
even when user resized the ie window...
lot of code and after 6 months it was abandoned.
I quess I would have needed to take more money so it would be still there [Big Grin]

[ 01. November 2002, 19:38: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#89119 - 2002-11-01 10:12 PM Re: Icon from .exe in KixForms
Schuliebug Offline
Hey THIS is FUN
*****

Registered: 2002-01-18
Posts: 379
Loc: Netherlands
Shawn,

I read your opinion about autoresize, and after thinking about it and looking into some other .dll files i have to agree with you. I saw that in some .dll files there are three versions of icons: 16x16, 32x32 and 48x48. If we want to display icons from files (.exe, .dll or .ico) we just have to point to the right resolution [Wink]
_________________________
Kind regards,

Top
#89120 - 2002-11-01 10:25 PM Re: Icon from .exe in KixForms
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11616
Loc: CA
What your wanting "auto resize" requires that the object be written in vector format, not bitmap.

In vector (such as AutoCAD or similar) an object that is so small it can fit 1,000 times on the head of a needle can be blown up to the size of football field and still have the same appearance of detail because it is all done proportionally with mathmatics. A bitmap is not handled in the same manner.

Here are a couple links to further describe this.

http://www.mustek.com/class/bit_vec.html

http://tuts.cit.nih.gov/dtpcourse_vargas/A04-bitmapvsvector.html

Top
#89121 - 2002-11-01 10:32 PM Re: Icon from .exe in KixForms
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
doc, I know what you are after but autoresize is not after perfect.
you can resize gif and jpg... can't you?

the meaning of resize is when it comes to bmp, to calculate the closest available true.
so to pixels saying:
11
comes to one:
1

4 pixels saying:
1001
comes to:
101

or somewhat similar...
I know you didn't miss the point but someone might had.
_________________________
!

download KiXnet

Top
#89122 - 2002-11-01 11:32 PM Re: Icon from .exe in KixForms
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Luv yeah doc - think you hit the nail on the head for flawless resizable graphics - can't remember the name of the file format though ... eh ... WMF ? Windows Meta Format/File ? We can support that if we want but not a very popular format. They scale well and are very (very) sml.

Jan,

At the end of day here, I think I can squeeze .EXE icon extraction in for this weekend. I have another change lined-up for krabourn do do with deleting ListView cols, plus a couple of misc fixes ...

[ 01. November 2002, 23:34: Message edited by: Shawn ]

Top
#89123 - 2002-11-01 11:44 PM Re: Icon from .exe in KixForms
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Noticed eventvwr.exe only has one icon [Frown]
Top
Page 1 of 2 12>


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

Who's Online
1 registered (Allen) and 59 anonymous users online.
Newest Members
jtpk2022, Rayvenhaus, Insecurity, KGSOFT, fobrien
17791 Registered Users

Generated in 0.072 seconds in which 0.024 seconds were spent on a total of 13 queries. Zlib compression enabled.

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