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.

selection on designtime

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Matthias Pieroth - 07 Nov 2004 20:29 GMT
Hi NG,

I have a Derived Panel with a ControlDesigner:

[DesignerAttribute(typeof(TableRowDesigner))]

public class TableRow : Panel

{

...

}

public class TableRowDesigner : ControlDesigner

{

TableRow row = null;

private void AddPanel()

{

IDesignerHost dh = (IDesignerHost) this.GetService(typeof(IDesignerHost));

Panel panel = (Panel) dh.CreateComponent( typeof( Panel ) );

panel.Dock = DockStyle.Left;

row.Controls.Add( panel );

}

public override void DoDefaultAction()

{

base.DoDefaultAction ();

AddPanel();

}

public override void Initialize(IComponent component)

{

base.Initialize (component);

row = (TableRow) component;

}

}

On DefaultAction I want to add Panels to the Control. This works and I can
select this added panels during designtime BUT: The selection-Grabs are not
shown. They are shown if I select the whole control (TableRow) but this
doesn't work for the inner Panels.

What can I do?

Thanx in advance

Matthias
joeycalisay - 08 Nov 2004 01:34 GMT
Selection grabs (whatever is the real term for it) used by the
ISelectionService I believe has a problem showing for docked controls, they
are overridden by adjacent controls.  I had the same issues for a control
added at design time which is docked-FILL.  I tested it on .NET controls and
it really is a default behavior.
> Hi NG,
>
[quoted text clipped - 62 lines]
>
> Matthias
Matthias Pieroth - 08 Nov 2004 20:05 GMT
> Selection grabs (whatever is the real term for it) used by the
> ISelectionService I believe has a problem showing for docked
> controls, they are overridden by adjacent controls.  I had the same
> issues for a control added at design time which is docked-FILL.  I
> tested it on .NET controls and it really is a default behavior.

Hi!

That's not the reason I think. If I don't use a derived ControlDesigner for
the Control, it works this way. The SelectionGrabs are drawn, although the
added controls are docked left. But if I define a ControlDesigner for the
Control, they are not. The Control  has the Appearance like it was in
RunTime. The Grid isn't drawn anymore also. I can select the added controls
but no SelectionGrabs. Perhaps adding a ControlDesigner to the Control puts
it to "Runtime" State?

Thanx

Matthias
Mick Doherty - 09 Nov 2004 07:17 GMT
For the Drawgrid Dots you should use ScrollableControlDesigner and not
ControlDesigner.

You can change the Grab Handles by modifying the SelectionRules property.

Signature

Mick Doherty
http://dotnetrix.co.uk/nothing.html

> That's not the reason I think. If I don't use a derived ControlDesigner
> for the Control, it works this way. The SelectionGrabs are drawn, although
[quoted text clipped - 7 lines]
>
> Matthias

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.