English 中文(简体)
主形式上展示的MDIChild 的 AdvToolbar 和将它拖累到周围的可能性
原标题:AdvToolbar from MDIChild displayed on MainForm and possibility to drag it all around

我创建了一个应用程序, 由主格式和多个 MDI 儿童表格组成。 Im 使用来自 TMS 组件的 AdvDockPanel 和 AdvToolbar 。 我的主要表格是表格上、 下、 左、 右两侧的 AdvDockPanel, 以显示 AdvToolbar 。

每个儿童表格都含有AdvToolbar, 并在创建这些表格时, AdvToolbar。 父子关系被设置在主形式上的AdvDock小组。 最初, AdvToolbar是假的, 在启动每个MDI儿童表格I时, 将它设置为真实的。

总而言之,在启动MDI儿童表格时,我想在主 Form.AdvDock Panel 上展示AdvToolbar, 并把它关闭,我要把它隐藏起来。

除非我试图将AdvToolbar从一个AdvDockPannel拖到另一个AdvDockPanel时,

I ve debugged it and found where this Exception is raised. It s in Vcl.Forms. procedure TCustomForm.CMShowingChanged(var Message: TMessage);

所以,我想知道是否有办法 展示AdvToolbar 从我活跃的MDIChild Form主论坛的MDI儿童表格中 展示出来 同时可以在我的主论坛中拖动我的工具栏。

谢谢

  • Charles
最佳回答

您可以检查工具栏的当前父页是否为 TVloingWindow( 拖动工具栏时为父页 ) :

procedure TForm25.FormDeactivate(Sender: TObject);
begin
   if not (orgaadvtoolbar1.Parent is TFloatingWindow) then
      OrgaAdvToolBar1.visible:=false;
end;

TAdvToolBar.Drlagging 不起作用, 因为 TAdvToolbar 使用自己的拖动旗除法, 但不是属性, 所以只有修改 TMS 软件源代码时, 您才能访问变量 。

问题回答

暂无回答




相关问题
determining the character set to use

my delphi 2009 app has a basic translation system that uses GNUGetText. i had used some win API calls to prepare the fonts. i thought it was working correctly until recently when someone from Malta ...

Help with strange Delphi 5 IDE problems

Ok, I m going nuts here. For the last (almost) four years, I ve been putting up with some extremely bad behavior from my Delphi 5 IDE. Problems include: Seemingly random errors in coride50.bpl ...

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How convert string to integer in Oxygene

In Delphi, there is a function StrToInt() that converts a string to an integer value; there is also IntToStr(), which does the reverse. These functions doesn t appear to be part of Oxygene, and I can ...

Quick padding of a string in Delphi

I was trying to speed up a certain routine in an application, and my profiler, AQTime, identified one method in particular as a bottleneck. The method has been with us for years, and is part of a "...

热门标签