 |
|
 |
Rect Tracker is awesome. I am needing more functionality however. I need to be able to select multiple controls at runtime, and resize them or move them at the same time. Also, I need to be able to align controls (top, left, right, bottom). Can your product be enhanced to do this? Could you do this for a fee, or do you know other products that could do this?
Thank You,
Derek Hart
Derek Hart
|
|
|
|
 |
|
 |
Hi!. I need to know how to make a perspective using your component.
I want to move only one vertex of the selected object.
Thanks for your help.
Bye
|
|
|
|
 |
|
 |
Just having a slight problem. When you select a control and move it to an area where scrollbars will appear it places it fine. But when you reselect the the control and start moving it the location of the control changes (it looses the scrollbar offset i think). Its using the mouse coordinates as the appear on the screen and not the forms cooridinates. I've tried to change it but with no luck. Any ideas on how to fix this?
Thanks.
|
|
|
|
 |
|
 |
I'm trying to recreate your problem, but I don't understand what actually happens..
can you be more detailed?
|
|
|
|
 |
|
 |
Hi,
Basically I am using the tracker on a panel. Now when I place a control on the panel the tracker works fine. I can re-select and move the control around the panel. When I move the control outside of the bounds of the panel, scrollbars appear and I can place the control and it's fine. I can now move the scrollbar and select the control which is all good. The problem is when you now select the control and move the scrollbars dissapear. The coordinates of the control have now changed. What I can tell is that when you reselect the control the mouse coordinates don't take into account the scrollbar position offset. I've tried to add this in but with no luck.
Hope you understand what im getting at.
Thanks.
|
|
|
|
 |
|
 |
I have had the same problem with a project I am currently working on. To get the correct location of the control you have to add the AutoScrollPosition from the controls parent container.
The true location of a control inside a Panel is actually
Control.Location - Panel.AutoScrollPosition
the AutoScrollPosition returns a negative result so you have to minus it to add it.
To set the location of the Control you have to do the oposite
Control.Location = NewLocation + Panel.AutoScrollPosition
|
|
|
|
 |
|
 |
Thanks for sharing this. It is quite innovative and clearly and concisely presented.
kmerrell
|
|
|
|
 |
|
|
 |
|
 |
I don't know if its the better way to do it, but I have a form without borders and I want to be able to move it across the screen. Your control didn't worked fine with Forms. Is there something I shoud change?
--
Rafael
|
|
|
|
 |
|
|
 |
|
 |
Hi! Nice work!
Is it possible to select several controls and move them together ?
|
|
|
|
 |
|
 |
And another question : I would like to move control when cursor is over the control, not only over rectTracker. Is it possible to change implementation to achieve this goal ?
THanx in advance.
|
|
|
|
 |
|
 |
hi,
I think an implementation of a Creation Delegate would achive the goal of multi-control RectTracker.
about moving controls: this is simple drag and drop of controls, since the tracker is in the borders and not on all the control.
|
|
|
|
 |
|
 |
Hi,great Job!
Anyway it seems to me that the rectTracker doesn't work well when is used over a ListBox...I'm not able to resize the control..Is There any solution for that?...Thanks in advance for everyone wants to help me!!!
Bye..
vil
|
|
|
|
 |
|
 |
on listbox control, set DrawMode property to OwnerDrawVariable , since the height of the listbox is changed every X (dependes on the ItemHeight) and not 1.
|
|
|
|
 |
|
 |
The Demo for the RecTracker has codehandling for every control that can be handeld
by RectTracker.
I moved that handling code to the RecTracker class itself so codehandling in the forms now becomes
public class Form1 : System.Windows.Forms.Form
{
...
private void button1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
CSharpTracker.StartTracking(button1);
// CSharpTracker.StartTracking(sender as Control);
}
// New Method RectTracker.StartTracking
public class RectTracker : System.Windows.Forms.UserControl
{
...
public void StartTracking(Control ctl)
{
if ((ctl != null) && (ctl.Parent != null))
{
ctl.BringToFront();
ctl.Capture = false;
if (ctl.Parent.Controls.Contains(this))
ctl.Parent.Controls.Remove(this);
//set the tracked control
this.currentControl = ctl;
//Create the tracker
Create();
ctl.Parent.Controls.Add(this);
this.BringToFront();
this.Draw();
}
}
|
|
|
|
 |
|
 |
i'll apply it and update asap
|
|
|
|
 |
|
 |
Nice work, but if you wanna create a winforms designer this is not the way. You should use root designers to do this.
In Whidbey there is a DesignSurface control that will help with this kind of thing, take a look on this sample http://www.windowsforms.net/TrackViews.aspx?ID=197&Type=Samples&Redir=%2fSamples%2fdownload.aspx%3fPageId%3d1%26ItemId%3d197%26tabindex%3d4
GMilano
|
|
|
|
 |
|
|
 |
|
 |
Nice work, nashcontrol! but I found a couple of problems.
When I try to size/move controls, the tracker disappears; but sizing continues.
Moving controls is not working. The cursor changes to Cursors.SizeAll only for button2. Click and drag doesn't move controls properly except the textbox.
I tested this on MS Windows 2000 5.00.2 Serivce Pack 4
.NET Framework 1.1
I found a C# port for the MFC CRectTracker class over here
There is a link to recttacker4.7.rar over the top which is a the old CRectTracker demo app of MFC ported to C#.
It seems Chineese hehe
-Silver-
|
|
|
|
 |
|
 |
hello and thanks,
try to move the controls when over the yellow rectangle.
about it disappearing, it was made like this so that when you leave the mouse key, it will reappear, you will notice Visual Studio does the same (it was made to be a clone).
more feedback is more than welcome
|
|
|
|
 |
|
 |
it doesn't seem to work with controls...
|
|
|
|
 |
 | doh:  |  | Anonymous | 0:42 10 Nov '04 |
|
|
 |
|
 |
What has DataGrid being one of the worst things, got to do with adding trackers to objects?
It looks like you copied the text from one of your other articles.
Gary
While you're waiting, read the free novel we sent you. It's a Spanish story about a guy named 'Manual.'
- Dilbert
|
|
|
|
 |
|
 |
I found that when it was published, an update was already sent
thanks.
|
|
|
|
 |