我的父窗体上有一个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

解决方案 »

  1.   

    你可不可以变通一下,把TStaticText变成Panel,将TShape放到Panel上,文本写到Panel的caption上
      

  2.   

    在TShape上点右键 然后选“...toTop”(没记住具体的) ,这样行吗?
      

  3.   

    在对象管理器里选中对象 BringToFront
      

  4.   

    在程序中执行下面的代码就行了.控件名.BringToFront;
      

  5.   

    TStaticText为播放多媒体时的显示窗口,问题应该是它刷新的时候把SHAPE给覆盖了。
    我没做过。看看在处理播放完一贞的时候能不能把SHAPE画一次
      

  6.   

    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来解决??
      

  7.   

    AControl.BringToFront但从 TGraphControl 继承的控件不可能放到 TWinControl 继承的控件之前
      

  8.   

    建议用 Label 或 Panel 替换 StaticText