PC Review


Reply
Thread Tools Rate Thread

Dragging an image

 
 
rick cameron
Guest
Posts: n/a
 
      25th Sep 2003
Hi, all

I'm writing a game for the PPC in C#. I'd like to be able to drag a coloured
circle across the screen. Solitaire does a great job of dragging fairly
large images around.

Are there any samples for this sort of thing around? Any suggestions?

Thanks!

- rick


 
Reply With Quote
 
 
 
 
Floris Briolas
Guest
Posts: n/a
 
      25th Sep 2003
rick

just a pointer,... do't redraw the background.. override onPaintBackground
and don't call the base...


> Hi, all
>
> I'm writing a game for the PPC in C#. I'd like to be able to drag a

coloured
> circle across the screen. Solitaire does a great job of dragging fairly
> large images around.
>
> Are there any samples for this sort of thing around? Any suggestions?
>
> Thanks!
>
> - rick



 
Reply With Quote
 
Geoff Schwab [MSFT]
Guest
Posts: n/a
 
      25th Sep 2003
Hi Rick,

In the MSDN library under ".NET Development->.NET Compact
Framework->Technical Articles" there is an article titled "Writing Mobile
Games Using the Microsoft .NET Compact Framework." In the article, Ravi
discusses optimizations by using dirty rectangles instead of updating the
entire screen, as well as how to override the OnPaint and OnPaintBackground
functions. These techniques should be similar to what you are trying to do.

http://msdn.microsoft.com/library/

--
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility

This posting is provided "AS IS" with no warranties, and confers no rights.

"Floris Briolas" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> rick
>
> just a pointer,... do't redraw the background.. override onPaintBackground
> and don't call the base...
>
>
> > Hi, all
> >
> > I'm writing a game for the PPC in C#. I'd like to be able to drag a

> coloured
> > circle across the screen. Solitaire does a great job of dragging fairly
> > large images around.
> >
> > Are there any samples for this sort of thing around? Any suggestions?
> >
> > Thanks!
> >
> > - rick

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
disabling the dragging of cropped image to the address bar ravishankar Maduri Microsoft Dot NET 0 2nd Aug 2007 04:02 PM
Display image while dragging =?Utf-8?B?TmF0aGFu?= Microsoft C# .NET 0 12th Apr 2006 04:26 PM
Dragging the image in RichTextBox ? =?Utf-8?B?U2FjaGlu?= Microsoft C# .NET 1 6th Oct 2004 02:01 PM
RE: Dragging image inside the RichTextBox ? Mohamoss Microsoft C# .NET 0 6th Aug 2004 03:14 PM
Dragging image inside the RichTextBox ? =?Utf-8?B?U2FjaGlu?= Microsoft C# .NET 3 23rd Jul 2004 01:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:07 PM.