Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Enterprise Development / May 2008



Tip: Looking for answers? Try searching our database.

VB6 cursors and icons

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Laphan - 11 May 2008 15:31 GMT
Hi

Could anybody help me on the following problems:

a) Cursors

Although fine in XP, Vista makes the hand cursor that I have in my res file
go flaky, crappy and virtually invisible.  It appears that if I changed the
hand cursor to an icon and create 'x' amount of types, eg 32x32, 48x48, etc
this MAY solve it, but how to get a hotspot in an icon?

If this isn't the way then what kind of cursor can I use that won't go
screwy??  The hand icon I'm using appears to be exactly the same one as in
IE, ie black outline of a white hand, 32x32 in size (although the hand only
seems to be something like 17x22).

b) Icons

Aaaarrggghhhh.... my icons look tishy in XP cos VB6 will only allow me to
add 256 colour ones to my res file.  Is there anyway round this?  I've got
some great true colour ones, but I just can't use 'em.

Please don't tell me that I've got to hack into my app afterwards - this is
pants!!  :0)
AGP - 11 May 2008 22:57 GMT
> Could anybody help me on the following problems:
>
[quoted text clipped - 13 lines]
> only
> seems to be something like 17x22).

dont know

> b) Icons
>
> Aaaarrggghhhh.... my icons look tishy in XP cos VB6 will only allow me to
> add 256 colour ones to my res file.  Is there anyway round this?  I've got
> some great true colour ones, but I just can't use 'em.

I created some great looiimg ones in 8bit and they look pretty close to the
32bit ones. It really depends on how you create the icons. I embed the icon
directly into the foram instaead of using res files.

> Please don't tell me that I've got to hack into my app afterwards - this
> is
> pants!!  :0)

if its not supported natively in VB6 then your recourse is to either find a
programming hack or a resource hacker. no way around it even if you have
pants.

take a look here http://www.planet-source-code.com/vb/default.asp?lngWId=1

AGP
Norm Cook - 12 May 2008 12:39 GMT
>> Could anybody help me on the following problems:
>>
[quoted text clipped - 39 lines]
>
> AGP

Another workaround for the icons:

Add the true color icons as a Custom Resource
vice Icon.  Then download Brad Martinez's
graphicload.zip from
http://btmtz.mvps.org/_misc/index.htm

Use it something like this:
Private Sub Form_Load()
Dim b() As Byte
b = LoadResData(101, "CUSTOM")
Image1.Picture = PictureFromBits(b)
End Sub
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.