|
-
Nov 28th, 2001, 03:51 PM
#1
Thread Starter
Junior Member
-
Nov 28th, 2001, 04:19 PM
#2
Good Ol' Platypus
You can control the animation yourself. Look around here (search vb-world above @ the VB Forums) for an example of Bitblt and GetCursorPos. What you can do is use Bitblt to Blit a transparent (non-square) cursor where the mouse is. You would also have to hide the original mouse cursor with the showcursor API call. I don't think VB supports .ANI cursors on it's own, but you could store them in a series of frames and work with them that way. I think there may be another way, too...
I'll see what I can do for you in the meantime.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Nov 28th, 2001, 05:21 PM
#3
As Sas said, .ani cursors are not supported in VB. You can create a set of regular .cur cursors, and loop through them to simulate the animation, or use BitBlt as Sas mentioned.
Z.
-
Nov 28th, 2001, 06:12 PM
#4
Good Ol' Platypus
Plus it would be easier to solve if your application was fullscreen or better yet DirectX.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Nov 28th, 2001, 06:28 PM
#5
PowerPoster
Re: hum little probleme about cursor
Guess I should read posts b4 I post my own... I just posted the 'Why is it black??!!??' question...
So, why do cursors come in B&W only, no colours??
-----------------------------------------
-RJ
[email protected]
-----------------------------------------
-
Nov 28th, 2001, 06:38 PM
#6
Thread Starter
Junior Member
ok tanx. for the picture i already tought about it but it will be very tricky for my program. i use many picture box so if i put a image on my form and i want to go in the picture box th epicture will be under the picture box! anyway ill post some picture of my program tommorow.
-
Nov 28th, 2001, 07:00 PM
#7
Junior Member
Originally posted by Sastraxi
You can control the animation yourself. Look around here (search vb-world above @ the VB Forums) for an example of Bitblt and GetCursorPos. What you can do is use Bitblt to Blit a transparent (non-square) cursor where the mouse is. You would also have to hide the original mouse cursor with the showcursor API call. I don't think VB supports .ANI cursors on it's own, but you could store them in a series of frames and work with them that way. I think there may be another way, too...
I'll see what I can do for you in the meantime.
"Series of frames"
Can someone explain a code to put picture in a single file?
bcuz we have a lot of .jpg and would like to put them in the same file. thanks
ZaSz
-
Nov 28th, 2001, 07:17 PM
#8
if all of the images are the same size, you can assign each picture an ID number (in your program), and get the picture using that:
Code:
Cosnt Size as Long = 256
Const NumAcross as Long = 4
Private Sub GetPic(ID As Long)
Dim PX as Long
Dim PY as Long
PX = ID mod NumAcross * Size
PY = ID \ NumAcross *Size
'....
End Sub
Should work fine. If the images are different sizes, you can create a file that has the ID, then an X, Y, SizeX, and SizeY, to get the info about the image.
Z.
[edit]
Opps, used the C++ mod operator instead of the VB one. Fixed.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|