Click to See Complete Forum and Search --> : Common Icons and Cursors
slcotten
May 19th, 2001, 09:17 AM
How can I access some of the common icons and cursors that is seen in many Windows programs? For example, how can I use the "hand" cursor that is displayed over links in IE? Or what about the "splitter" cursor that is displayed when mousing over the splitter in the Windows Explorer?
Thank you.
coolbiz
May 19th, 2001, 09:42 AM
Few ways to do it (I'm assuming you're asking to do it from within your program and not to find the physical files themselves):
1. Use the Screen.MousePointer property which allows you to use the current selected system mouse icons. For example, Screen.MousePointer = vbHourGlass will set the mouse pointer on your application to hour-glass icon.
2. Customized mouse icon
--> set the Screen.MousePointer = 99
--> then load the new mouse icon into the Screen.MouseIcon property
Example:
Screen.MousePointer = 99
set Screen.MouseIcon = LoadPicture("myface.bmp")
-Cool Bizs
slcotten
May 19th, 2001, 09:53 AM
Thanks for your reply. However, I was probably a bit unclear in my question. I think I want to find the physical files. From what I understand, there are .ico's and .cur's in .exe's, .dll's, .ocx's, etc... I know you can extract these from the files. First of all how do you do that? Then is there any directory or library of common windows .ico's and .cur's anywhere... such as on the Internet, on a CD, on my computer? Thanks again, though, for replying.
coolbiz
May 19th, 2001, 10:09 AM
Actually most of the icons are on your HD itself. Just search for .ICO.
There are some icons in:
C:\Program Files\Microsoft Visual Studio\Common\Graphics
To extract the images from the DLL, EXE or OCX, you'll need to use the APIs or even some free-ware/share-ware application available out there. There was a post in this forum today and the poster mentioned that he/she has the code already. The thread is:
http://www.codeguru.com/cgi-bin/bbs/wt/showpost.pl?Board=vb&Number=51653&page=0&view=collapsed&sb=5
If that does not help, just search for EXTRACT ICON or just ICON on this forum and I am pretty sure you'll get the solution.
-Cool Bizs
shree
May 19th, 2001, 08:17 PM
To extract icons from DLLs and EXEs on your system, download Icon Hunter from
http://www.planetsourcecode.com/xq/ASP/txtCodeId.8474/lngWId.1/qx/vb/scripts/ShowCode.htm
There's a gallery of common icons in
http://www.planetsourcecode.com/xq/ASP/txtCodeId.8429/lngWId.1/qx/vb/scripts/ShowCode.htm
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.