Re: Create an object surface using GDI+
- From: "Robbe Morris [C# MVP]" <info@xxxxxxxxxxxxxxx>
- Date: Tue, 6 Dec 2005 18:14:21 -0500
You didn't look closely enough at the sample code.
Basically, in the onclick event or any of the
mouse down or mouse up events, you grab
the x,y of the clicked section and see if it
is a match on the drawn objects.
The sample code figures out the dimensions
that the object should contain when drawn.
You can always iterate back through
the collections and figure out what item
was drawn where.
--
Robbe Morris - 2004/2005 Microsoft MVP C#
http://robbemorris.blogspot.com
"Alejandro Serrano" <trupill@xxxxxxxx> wrote in message
news:eNnUhlk%23FHA.916@xxxxxxxxxxxxxxxxxxxxxxx
> Robbe Morris [C# MVP] escribió:
>> This might be a good start depending on
>> your requirements.
>>
>> http://www.eggheadcafe.com/articles/draw_tree_with_gdi_plus.asp
>>
>
> This tutorial manages wll the problem. However, I need to where where the
> user has clicked not just based in rectangles, like here, but on rectangle
> or ellipses that can be rotated, each one at a different rotation.
> In addition, I need to provide some drag&drop functionality for the
> objects inside the design surface.
>
> Thanks
.
- References:
- Create an object surface using GDI+
- From: Alejandro Serrano
- Re: Create an object surface using GDI+
- From: Robbe Morris [C# MVP]
- Re: Create an object surface using GDI+
- From: Alejandro Serrano
- Create an object surface using GDI+
- Prev by Date: Re: Best Way to Check for Dataset Changes
- Next by Date: Re: General Windows Forms and Memory Question
- Previous by thread: Re: Create an object surface using GDI+
- Next by thread: Re: Designing forms for 120DPI, 133DPI etc
- Index(es):
Relevant Pages
|