<div dir="ltr">Look at<br>procedure TCustomForm.WMActivate(var Message : TLMActivate);<br><br> // The button reappears in some situations (e.g. when the window gets the<br> //"urgency" flag) so we hide it again here.<br>
// This is the most important place to invoke UpdateShowInTaskBar, since<br> //invoking it anywhere else seeems basically useless/frequently reversed.<br> if (ShowInTaskBar = stNever) or ((ShowInTaskBar = stDefault)<br>
and (Application.TaskBarBehavior = tbSingleButton)) then<br> begin<br> UpdateShowInTaskBar;<br> end;<br><br>For non main form it hide and show every time the form is activated, when use "Application.TaskBarBehavior := tbSingleButton" in the project.<br>
<br>I think the to resolve a problem in GTK2 "The button reappears in some situations"<br><br>Thanks<br>-- <br>Zaher Dirkey<br>
</div>