#89270 - 2002-11-04 05:26 PM
Kixforms - SHELL32.DLL Icon Extraction Reference
|
Shawn
Administrator
Registered: 1999-08-13
Posts: 8611
|
The following is a list of "standard" icons contained in shell32.dll. Im certain this will come in handy over the next few releases:
code:
00 Unknown File Type 01 Default document 02 Default application 03 Closed folder 04 Open folder 05 5 1/4 floppy 06 3 1/2 floppy 07 Removable drive 08 Hard disk drive 09 Network drive 10 network drive offline 11 drive 12 RAM disk 13 Entire network 14 ? 15 My Computer 16 Printer Manager 17 Network Neighborhood 18 Network Workgroup 19 Start Menu Programs 20 Start Menu Documents 21 Start Menu Settings 22 Start Menu Find 23 Start Menu Help 24 Start Menu Run 25 Start Menu Suspend 26 Start Menu Docking 27 Start Menu Shutdown 28 Sharing overlay (hand) 29 Shortcut overlay (small arrow) 30 Default printer overlay (small tick) 31 Recycle bin empty 32 Recycle bin full 33 Dial-up Network Folder 34 Desktop 35 Control Panel 36 Program Group 37 Printer 38 Font Folder 39 Taskbar 40 Audio CD 41 ? 42 ? 43 IE favorites 44 Start Menu Logoff 45 ? 46 ? 47 Lock 48 Hibernate
-Shawn
|
Top
|
|
|
|
#89272 - 2002-11-04 05:43 PM
Re: Kixforms - SHELL32.DLL Icon Extraction Reference
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
I think there are others too.
Progman.exe (doesn't exist in XP) and Pifmgr.dll
Kent
|
Top
|
|
|
|
#89275 - 2002-11-05 03:53 PM
Re: Kixforms - SHELL32.DLL Icon Extraction Reference
|
Shawn
Administrator
Registered: 1999-08-13
Posts: 8611
|
Wiz, I have to agree with you 100%. Think we need to narrow the focus down to supporting 16s and 32s at whatever color depth and leave it at that. And theres much, much more work that needs to be done in terms of defining a standard and simplified approach to specifying bitmaps and icons in Kixforms. Theres a new control in the works right now the will accept multiple icons, in a list, and the current mechanism for specifying icons (the icon property) just doesn't cut it anymore.
VB & C developers have an edge over us Kixtart developers in that they can package just about anything they want, embedded inside the EXE. Wish we had things so good. But we can package a few things inside the Kixforms DLL and I've already started to test and flesh this idea out:
There are a couple of embedded objects in the current version of Kixforms (36). I put them in to start testing the waters. Its an LED flasher that can flash on and off. The resolution aint so good and I'm finding it hard to find good quality free icons on the web. The way the embedded icons are specified is as follows:
$Form.Icon = Number
Here,s an exmaple script:
code:
Break On $Form = CreateObject("Kixtart.Form") $Form.Size = 400,200 $Form.Text = "Text..." $Form.Icon = 0 $imgLight = $Form.Image $imgLight.Tag = 0 $imgLight.Icon = 0 $imgLight.Center $tmrTimer = $Form.Timer(500) $tmrTimer.OnTimer = "OnTimer" Function OnTimer() If $imgLight.Tag = 0 $imgLight.Icon = 1 $imgLight.Tag = 1 $Form.Icon = 0 Else $imgLight.Icon = 0 $imgLight.Tag = 0 $Form.Icon = 1 EndIf EndFunction $Form.Center $Form.Show While $Form.Visible $=Execute($Form.DoEvents) Loop
|
Top
|
|
|
|
#89276 - 2002-11-05 05:29 PM
Re: Kixforms - SHELL32.DLL Icon Extraction Reference
|
Wizard
Hey THIS is FUN
Registered: 2000-12-05
Posts: 264
Loc: Bristol, England
|
I know there are millions of icons available on the net, and some of them have been ripped from M$ anyway.
I think the problem you are going to have is deciding which icons stay and which go. As you may have seen in the middle of the SHELL32.DLL resource, M$ has a tree.! In all my years in IT, I have never seen this icon used by M$.
I suppose the basics could include the standard file, folder, computer, network, disk, etc icons that M$ have, and maybe even a tick/cross pair.
Other than that, a way to call either other DLL icon resources from KIX, or linked directly to an .ICO file.
Just my 2 cents.
I think this could turn into one of those debates that go on for a while.!!
W
_________________________
Wizard There's no place like 127.0.0.1
vb | kix | batch | html | cfm | js | english
|
Top
|
|
|
|
#89277 - 2002-11-05 06:14 PM
Re: Kixforms - SHELL32.DLL Icon Extraction Reference
|
Shawn
Administrator
Registered: 1999-08-13
Posts: 8611
|
yeah agreed again. the debate would center around which icons got included. and they would have to be generic enough, yet usable by all. plus, i could see a schism evolve between icons related to network logins and icons related to network admin scripts.
all that aside, i've been to a few sites that have hundreds upon hundreds of icons. but to be honest - they all suck. getting free professional looking icons seems to be tough to do. unless you know of a site in particular, any recommendations ?
I think the way things are going to shape-up is like follows (and this is strictly psuedo-code mind you). Leverage the ImageList object to host all the icons, the way this would work is as follows:
code:
;; Build an ImageList, a control that contains a ;; collection of icons or bitmaps ... $ImageList = $Form.ImageList ;; the default is 16x16 but well set it up to support 32x32 ... $ImageList.Size = 32,32 ; Add some icons to the imagelist ... $ImageList.Images.Add("c:\off.ico") $ImageList.Images.Add("c:\on.ico") ;; Create a button that supports Hot Tracking ... hot tracking ;; is where the icon that is displayed in the button changes ;; depending on whether the mouse cursor is over the button or ;; not ... $Button = $Form.Button $Button.ImageList = $ImageList
Now, I'm not sure if this particular object model makes things easier or tougher to script. I know for sure it makes things powerfull, but our we sacrificing too much here ?
Having the icon property there is kinda nice as well, and this should be supported going forward. We should be able to assign one-shot icons using the following syntax:
code:
$Button.Icon = $ImageList.Images(#)
Where $ImageList is a previously initiallized and loaded ImageList, and # is the index of the icon in the collection.
The the ImageList control is going to happen anyways (to support icons in the other un-implemented ListView report modes), so in keeping with dotnet, extend the ImageList to other controls as well. Personnaly myself, I like this image list approach.
|
Top
|
|
|
|
#89278 - 2002-11-05 09:12 PM
Re: Kixforms - SHELL32.DLL Icon Extraction Reference
|
Wizard
Hey THIS is FUN
Registered: 2000-12-05
Posts: 264
Loc: Bristol, England
|
|
Top
|
|
|
|
Moderator: Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart
|
0 registered
and 329 anonymous users online.
|
|
|