Results 1 to 5 of 5

Thread: Clip mousie

  1. #1

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Clip mousie

    Once I've set Cursor.Clip to a custom rectangle, how can I return it to normal. In VB I'd use

    Cursor.Clip = nothing

    But that don't work in C#.

    How's it done?
    I don't live here any more.

  2. #2
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    maybe this...
    VB Code:
    1. Cursor.Clip = null;
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

  3. #3

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    That's the first thing I tried but there's a compiler error about Rectangles being a value type and so can't be null.

    I thought about storing the initial clipping region when the form loads and then using that as a fall back whenever I need to cancel my own region.

    But I thought this might interfere with other programs' clip regions and I'm not keen. Maybe I'm wrong, I'm not too sure of the ground on this one.

    :???:
    I don't live here any more.

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    This seem to be your best bet . I don't see any problems that might happen though .

  5. #5

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    I've coded it and it seems to work fine. I've stuck some code in the form deactivate event just to make sure it doesn't spill over to any other programs.
    I don't live here any more.

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