Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在我的框架上画一条线(在 FormPaint 方法上绘制)。
问题是框架上有一些组件,其中包括覆盖所有框架区域的图像。
因此,这条线是不可见的。
任何想法如何解决它?
提前致谢!
您在 Frame 本身上绘图,但 TImage 覆盖了 Frame 的客户区,因此它涵盖了您在 Frame 上所做的任何绘图。你需要重新考虑你的绘图策略。如果您希望线条出现在 TImage 的顶部,则在 TImage 而不是 Frame 上绘制线条。或者在 TImage 顶部放置一个单独的 TImage/TPaintBox 并在其上绘制。