Results 1 to 6 of 6

Thread: Why r the cursors not displayed properly? look in for details

  1. #1

    Thread Starter
    Hyperactive Member toughcoder's Avatar
    Join Date
    Nov 2002
    Location
    Near, Very Near
    Posts
    340

    Question Why r the cursors not displayed properly? look in for details

    Hello every1,
    I have a UserControl, I have to use custom cursors on it. I have some 3D style cursors with some embossed effects. Mind u, these cursors r in 16 bit color(or 256 i dont know but they r colored). In the mouseMove event i have set the cursor properties like

    Usercontrol.MousePointer=99 'For custom cursors
    and another statement to set the cursor(i dont remember the command, i think its MouseIcon)
    It works and the cursor r displayed but they r not the same cursors. I mean the color is gone and they r displayed in full black. Why is this happening. Can any1 help plz.
    If Not VB Then Exit
    ------------------------------------------------
    visit me @ http://mzubair.50g.com/

  2. #2
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Vb doesn't seem to handle cursors that have more than 2 colors (black and white), you must either run into a lot of trouble doing it with the windows API, or forget about that idea
    Unless it's very important for your program, you shouldn't use colored cursors,
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  3. #3
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Or you can use DX to do it...if that will help you...

  4. #4
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457


    He's got a UserControl, DX is not gonna help much... but yeah, you can use an Image control or BitBlt
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  5. #5
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    For this task I would suggest looking through the Microsoft Developer Network (MSDN). I did, and I found a topic which may be of relevance:

    http://msdn.microsoft.com/archive/de...sdn_msdn42.asp
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  6. #6
    Addicted Member
    Join Date
    Jun 2002
    Location
    Far.. far away! (Netherlands)
    Posts
    169
    Try saving the cursor as an icon, works fine over here.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width