Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / November 2004

Tip: Looking for answers? Try searching our database.

Custom Designer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lee - 02 Nov 2004 22:36 GMT
I want to design a control that needs to have extra "handles" at design
time.  Basically at design time I want my control to have a line coming off
of it that extends beyond the region of my control and ends in a "gripper"
handle (probably only when it is selected in the form designer).   I want
the user to be able to grab the gripper handle and move it anywhere to
rotate the control as well as specify a distance from the control (by the
length of the line). The rotation of the control isn't a problem, but how do
I create a custom design time behaviour like that that can draw outside the
bounds of the control and allows my control to redraw itself (at design
time)?

-----
Lee
Lee - 05 Nov 2004 08:26 GMT
Anybody?

>I want to design a control that needs to have extra "handles" at design
>time.  Basically at design time I want my control to have a line coming off
[quoted text clipped - 9 lines]
> -----
> Lee
joeycalisay - 08 Nov 2004 01:32 GMT
Adding additional painting on control at design time can be done by
overriding the OnPaintAdornments method of controldesigner class.  I believe
you can even paint beyond the bounds of the control being designed.  However
providing implementations for your gripper is kind of complicated in my
opinion.  Forcing a redraw is as simple as invalidating the component that
your designer is using.

> Anybody?
>
[quoted text clipped - 11 lines]
> > -----
> > Lee
Lee - 08 Nov 2004 19:08 GMT
Thanks!  I think the ControllDesigner class is exactly what I was looking
for.  I'll have to spend some time researching how to use that now.  Again,
thanks! :)

-----
Lee

> Adding additional painting on control at design time can be done by
> overriding the OnPaintAdornments method of controldesigner class.  I
[quoted text clipped - 27 lines]
>> > -----
>> > Lee

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.