Recent

Author Topic: TGtk2WidgetSet.SetAppActive Seems work crazy  (Read 1743 times)

ϻαϻɾΣɀО

  • Jr. Member
  • **
  • Posts: 54
  • MaMrEzO
TGtk2WidgetSet.SetAppActive Seems work crazy
« on: June 10, 2016, 02:31:58 am »
Hi
If you know Conky(system monitor) on linux this application will alive and visible even it's application/process run into deactivated!
I have same view in Conky,  A visible window to monitor somthing, and there is some setting forms.
But in my case Everything will disappeared on one of other forms show/hide.
Tracing codes get me in TGtk2WidgetSet.SetAppActive place!
The question: Why when application run into deactivate, Application tries to AppRemoveStayOnTopFlags?
In other words, What is means of StayOnTop? It must keep visible and stayontop out of Application scop.

Code: Pascal  [Select][+][-]
  1. procedure TGtk2WidgetSet.SetAppActive(const AValue: Boolean);
  2. begin
  3.   if AValue <> FAppActive then
  4.   begin
  5.     FAppActive := AValue;
  6.     if FAppActive then
  7.     begin
  8.       Application.IntfAppActivate;
  9.       AppRestoreStayOnTopFlags(False);
  10.     end else
  11.     begin
  12.       Application.IntfAppDeactivate;
  13.       AppRemoveStayOnTopFlags(False); //[b]<<==Here is the question[/b]
  14.     end;
  15.   end;
  16. end;
  17.  

I have commented that line and it seems work fine, However I didn't check if something goes wrong!
« Last Edit: June 10, 2016, 02:34:51 am by ϻαϻɾΣɀО »
Debio-Sql is a new brand of GUI Database tool for the Firebird RDBMS.
http://debio-sql.ariaian.com/

 

TinyPortal © 2005-2018