// 9个显示函数 procedure SetBounds(ALeft, ATop, AWidth, AHeight: Integer); virtual; // 虚函数,important 根据父控件 // 手法:固定不变的模式,或者简单调用,或者简单设置标志位,就不是虚函数。 ... Read More
posted @ 2015-08-25 19:42 findumars Views(429) Comments(0) Diggs(0)
前提条件:要明白在TWinControl有以下四个函数的存在,注意都是虚函数:procedure Invalidate; override;procedure Update; override;procedure Repaint; override; // 相当于前两句的组合procedure Se... Read More
posted @ 2015-08-25 16:37 findumars Views(701) Comments(0) Diggs(0)
procedure TForm1.Button3Click(Sender: TObject);begin if (csOpaque in ControlStyle) then ShowMessage('不透明') else ShowMessage('透明') // Form透明end;proc... Read More
posted @ 2015-08-25 04:25 findumars Views(3782) Comments(0) Diggs(0)
就是这段代码: 在VS2010 Release下,按F5运行需要几万毫秒,但是按Ctrl F5却只需要几百毫秒。难道Release模式还可以调试?搞不懂,留个爪,以后再研究~ Read More
posted @ 2015-08-24 20:09 findumars Views(385) Comments(0) Diggs(0)
SIGNAL-SLOT是Qt的一大特色,使用起来十分方便。在传统的AWT和Swing编程中,我们都是为要在监听的对象上添加Listener监听器。被监听对象中保存有Listener的列表,当相关事件发生时,被监听对象会通知所有Listener。而在Qt中,我们只需通过connect方法连接两个对象上... Read More
posted @ 2015-08-24 17:19 findumars Views(643) Comments(0) Diggs(0)