给Label.caption赋值,窗体没任何变化,但是把窗体最小化后再放大,就能看到,
我用了label1.refresh、repaint、Update还有Form1.refresh、Repaint、update
都没用,tnnd烦死我了。
那位高手能解决,一定感恩戴得,一定给分,救命!
我用了label1.refresh、repaint、Update还有Form1.refresh、Repaint、update
都没用,tnnd烦死我了。
那位高手能解决,一定感恩戴得,一定给分,救命!
Label1.AutoSize:=False;
Label1.Caption:='XXXXX';
Label1.Width:=Canvas.WordWidth('X') * Length(Label1.Caption);
begin
BorderStyle:= bsSizeable;
FormStyle:= fsNormal;
Visible:= true;
//一般在窗体隐藏状态或者BorderStyle非缺省状态下出现怪现象的。
Label1.Caption:= 'Hello!';
BorderStyle:= bsDialog;
FormStyle:= fsMDIForm;
end;我爱Delphi!
能调用Win32 API。这些A P I负责操纵客户窗口,并捕获窗口消息W M _ E R A S E B K N D