如何将控件置之窗口最上面?

linx88 2003-08-19 11:57:08
我的父窗体上有一个TShape和一个TStaticText控件。想将TShape放到TStaticText上面。但是不能通过修改parent属性实现:(。(TStaticText为播放多媒体时的显示窗口,TShape的parent若设为TStaticText,则在播放时,就看不到了)。请问各位有什么好办法?
The Bring To Front and Send To Back commands do not work if you are combining windowed
and non-windowed components. For example, you cannot change the z-order of a label in relation to a button
...全文
179 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
hiflower 2003-08-22
  • 打赏
  • 举报
回复
建议用 Label 或 Panel 替换 StaticText
hiflower 2003-08-22
  • 打赏
  • 举报
回复
AControl.BringToFront

但从 TGraphControl 继承的控件不可能放到 TWinControl 继承的控件之前
linx88 2003-08-22
  • 打赏
  • 举报
回复
The Bring To Front and Send To Back commands do not work if you are combining windowed
and non-windowed components. For example, you cannot change the z-order of a label in relation to a button

你们都可用BringToFront来解决??
rustle 2003-08-20
  • 打赏
  • 举报
回复
BringToFront

xxx.BringToFront
SydPink 2003-08-20
  • 打赏
  • 举报
回复
TStaticText为播放多媒体时的显示窗口,问题应该是它刷新的时候把SHAPE给覆盖了。
我没做过。看看在处理播放完一贞的时候能不能把SHAPE画一次
vchoushen6 2003-08-19
  • 打赏
  • 举报
回复
在程序中执行下面的代码就行了.

控件名.BringToFront;
delphi_xizhousheng 2003-08-19
  • 打赏
  • 举报
回复
右击控件 BringToFront
DWGZ 2003-08-19
  • 打赏
  • 举报
回复
在对象管理器里选中对象 BringToFront
jun_01 2003-08-19
  • 打赏
  • 举报
回复
在TShape上点右键 然后选“...toTop”(没记住具体的) ,这样行吗?
wweijie 2003-08-19
  • 打赏
  • 举报
回复
你可不可以变通一下,把TStaticText变成Panel,将TShape放到Panel上,文本写到Panel的caption上

5,388

社区成员

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

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