请教:TPageControl,属性页之间如何拖动?

pdz6 2004-10-28 04:24:42
我想将控件从TPageControl的一个属性页,拖到另一个中属性页。

如何知道,鼠标停在哪一个属性页的Tab上?

或者,鼠标移到哪一个属性页的Tab上,该属性页即激活。
...全文
92 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
pandengzhe 2004-10-28
  • 打赏
  • 举报
回复
根据TabWidth算
pdz6 2004-10-28
  • 打赏
  • 举报
回复
up
pdz6 2004-10-28
  • 打赏
  • 举报
回复
问题是:
我肯定是,从ActivePage,拖动到UnActivePage,怎么知道,鼠标停在哪一个UnActivePage的Tab上?
ksaiy 2004-10-28
  • 打赏
  • 举报
回复
procedure TForm1.Button1Click(Sender: TObject);
begin
ShowMessage(IntToStr(PageControl1.ActivePageIndex));
end;

是当前活动的页.
pdz6 2004-10-28
  • 打赏
  • 举报
回复
如何知道,鼠标所停的Tab的PageIndex?
ksaiy 2004-10-28
  • 打赏
  • 举报
回复
你设置PageIndex值就可以了。
IDE Fix Pack 2007 - Version 3.0 (2010-03-15) Installation: ============= 1. Start IDEFixPackReg.exe under your user account 2. Select the IDE registry keys for which you want to install the bugfix 3. Press the "Install" button Uninstallation: =============== 1. Start IDEFixPackReg.exe under your user account 2. Press the "Uninstall" button. This will uninstall the bugfix for all (not only the selected) IDE registry keys. Changelog: ========== 2010-03-15: - Added fix for: QC #80822: ObjectInspecor: Properties are duplicated after scrolling - Added fix for: QC #80776: ObjectInspector shows "EditControl" instead of the real content - Added fix for: QC #79776: Clicking on object Inspector rejects focus 2009-12-22: - Added fix for: QC #75738: Debugging extremly slow - Added fix for: QC #68493: Switching away and back to Delphi orphans focus on Code Editor 2009-12-05: - Added fix for: Vista compatible main icon resource doesn't work 2009-09-03: - Added fix for: 64 bit Debugger assertion - Added fix for: Undo destroyed editor buffer - Added fix for: Vista 64 IDE startup delay - Added: QC #74646: Buffer overflow in TCustomClientDataSet.DataConvert with ftWideString - Fixed: TTabSheet looked strange if used with SilverThemes 2009-03-03: - Fixed: The AppDeActivateZOrder patch now fixes the cause instead of the symptoms - Added fix for: Error Insight fails to find TObject class - Added fix for: Possible deadlock when Error Insight calls ProcessMessages 2009-02-18: - Added for for IDE may select the wrong file when performing a ctrl+click on a filename in the editor - Added faster AnsiCompareFileName replacement function which speeds up the "Install Packages..." dialog 2009-02-05: - Added: fix for "Cannot resolve unit name" Error Insight bug. 2009-01-25: - Fixed: C++Builder compilation slow down caused by the ReadWrite mode fix - Fixed: DBGrid ScrollBar gab wasn't painted correctly in BiDiMode <> bdLeftToRight - Fixed: TTabSheet could throw an access violation if no PageControl was assigned to it 2008-11-24: - Added fix for Show Component Caption IDE bug - Added fix for IDE Compiler opens all files in ReadWrite mode and blocks command line compiler 2008-07-19: Added: Control resize fix replaces the old editor resize bugfix Added: Background Parser now stops if the main thread wants to do something with the compiler. 2008-05-12: Added: Fix for Find dialog has problems with Umlaut chars Removed: CodeCompletion is fixed in RAD Studio 2007 April Update 2008-04-02: Added: Added fix for TCustomActionList.Notification memory overwrite Added: Fixed some TDBGrid and TPageControl form designer flicker Improved: Application window tastbar button removal (should now work for all Windows versions) 2008-02-18: Added: CodeCompletion patch to show inherited items 2008-02-10: Added Application window tastbar button removal for Vista Added TDBText Color bugfix Renamed to IDE Fix Pack 2008-02-04: Initial release as IDEWin64Fix

5,386

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧