H
hongdo
Unregistered / Unconfirmed
GUEST, unregistred user!
谢谢 柳五公子和flier,红包一起送上!!!!!
柳五公子名字好听,又加上乐于助人,在下谢谢了!!!!!!
本人还有一问题是,你的程序我移植到builder下,
程序如下:
void __fastcall TForm1::FormEndDock(TObject *Sender, TObject *Target,
int X, int Y)
{
TPoint pt;
if (Shape1->Floating)
{
pt = Point(Shape1->Top,Shape1->Left);
pt = Form1->ScreenToClient(Shape1->ClientToScreen(pt));
Shape1->Parent = Form1;
Shape1->Top = pt.x;
Shape1->Left = pt.y;
}
}
delphi中的程序
procedure TForm1.Shape1EndDock(Sender, Target: TObject;
X, Y: Integer);
var pt :TPoint;
begin
if Shape1.Floating then
begin
pt := Point(Shape1.top,shape1.left);
pt := Shape1.ClientToScreen(pt);
pt := Self.ScreenToClient(pt);
Shape1.parent := Form1;
Shape1.Top := pt.x;
Shape1.Left := pt.y;
end;
end;
这一程序跟柳五公子的一样!!!
结果与delphi种的结果不一样.另外就是还是隐约可见toolwindows,这一问题
在delphi中会出现????
能解决吗?????
我等你和大家的指教!!!!!!!
--------------------------------------------------------------------------------
柳五公子名字好听,又加上乐于助人,在下谢谢了!!!!!!
本人还有一问题是,你的程序我移植到builder下,
程序如下:
void __fastcall TForm1::FormEndDock(TObject *Sender, TObject *Target,
int X, int Y)
{
TPoint pt;
if (Shape1->Floating)
{
pt = Point(Shape1->Top,Shape1->Left);
pt = Form1->ScreenToClient(Shape1->ClientToScreen(pt));
Shape1->Parent = Form1;
Shape1->Top = pt.x;
Shape1->Left = pt.y;
}
}
delphi中的程序
procedure TForm1.Shape1EndDock(Sender, Target: TObject;
X, Y: Integer);
var pt :TPoint;
begin
if Shape1.Floating then
begin
pt := Point(Shape1.top,shape1.left);
pt := Shape1.ClientToScreen(pt);
pt := Self.ScreenToClient(pt);
Shape1.parent := Form1;
Shape1.Top := pt.x;
Shape1.Left := pt.y;
end;
end;
这一程序跟柳五公子的一样!!!
结果与delphi种的结果不一样.另外就是还是隐约可见toolwindows,这一问题
在delphi中会出现????
能解决吗?????
我等你和大家的指教!!!!!!!
--------------------------------------------------------------------------------