[Lazarus] Patch: single button on taskbar (was: vote for single button IDE)
Zaher Dirkey
parmaja at gmail.com
Mon Apr 19 10:31:59 CEST 2010
Look at
procedure TCustomForm.WMActivate(var Message : TLMActivate);
// The button reappears in some situations (e.g. when the window gets the
//"urgency" flag) so we hide it again here.
// This is the most important place to invoke UpdateShowInTaskBar, since
//invoking it anywhere else seeems basically useless/frequently reversed.
if (ShowInTaskBar = stNever) or ((ShowInTaskBar = stDefault)
and (Application.TaskBarBehavior = tbSingleButton)) then
begin
UpdateShowInTaskBar;
end;
For non main form it hide and show every time the form is activated, when
use "Application.TaskBarBehavior := tbSingleButton" in the project.
I think the to resolve a problem in GTK2 "The button reappears in some
situations"
Thanks
--
Zaher Dirkey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20100419/e9f88df9/attachment-0004.html>
More information about the Lazarus
mailing list