Self.Handle的值在运行时居然会改变
目前最新的XE2 Update3
当换皮肤后TStyleManager.TrySetStyle('Emerald Light Slate');
主窗体的Self.Handle值居然变化了,整的人好晕。这算是BUG么?
部门测试代码
当换皮肤后TStyleManager.TrySetStyle('Emerald Light Slate');
主窗体的Self.Handle值居然变化了,整的人好晕。这算是BUG么?
部门测试代码
procedure TForm1.Button1Click(Sender: TObject);
begin
Memo1.Lines.Add('1:' + IntToStr(Self.Handle));
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
TStyleManager.TrySetStyle('Emerald Light Slate');
Memo1.Lines.Add('2:' + IntToStr(Self.Handle));
end;
procedure TForm1.Button3Click(Sender: TObject);
begin
Memo1.Lines.Add('3:' + IntToStr(Self.Handle));
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
Memo1.Lines.Clear;
end;
...全文
相关推荐
解决Python中定时任务线程无法自动退出的问题
`TimerExec`类的实例也会被销毁,进而触发析构函数的执行,从而改变全局变量`g_flag`的值。
javascript运行机制之this详细介绍.docx
使用 `call` 和 `apply` 方法中的 `this``call` 和 `apply` 方法可以用来改变函数执行时 `this` 的值。
Monopoly
Python的随机模块(random)可以帮助我们生成随机的骰子值。
Python中asyncore异步模块的用法及实现httpclient的实例
() def handle_write(self): sent = self.send(self.buffer) self.buffer = self.buffer[sent:] def handle_read
weakable-self:Swift微框架可轻松处理内部封闭中对自身的弱引用
弱自我语境闭包是Swift的必备功能之一,Swift开发人员意识到,当捕获外部对象的引用时,特别是当该对象是self时,它们可能会非常棘手。 为了解决此问题,开发人员需要使用[weak self]和g


