最小化形式时线消失 [英] Line disappears when minimizing form

查看:79
本文介绍了最小化形式时线消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.当我画一条线时,当我最小化该页面时它消失了.我试过了
this.invalidate(true).
然后调用paint事件.
但是此事件一次只画一条线.我想一次更新很多行.

请帮忙!

Hi. When I draw a line it disappears when I minimize that page. I tried
this.invalidate(true).
Then it calls the paint event.
But this event draws one line at a time. I want to update many lines at a time.

Please help!

推荐答案

我对
My answer to this[^] question applies here as well, particularly the bit about drawing in the paint handler.


这篇关于最小化形式时线消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆