Window.IsActive
property · Window · cAlgo.API
DesktopCLICloud
Get / Set the window active / de-active flag, if Yes then the window will be active
Environment behaviour
CLI — not supported. Never shown: Show, Hide and Close send nothing; IsVisible stays false and window events never fire.
Cloud — not supported. Never shown: Show, Hide and Close send nothing; IsVisible stays false and window events never fire.
Definition
public bool IsActive {get;}
window.IsActive: bool
Returns bool
Examples
var window = new Window { Title = "Status", Width = 250, Height = 120 };
window.Activated += args => Print("Active: {0}", args.Window.IsActive);
window.Show();
Print("Is active: {0}", window.IsActive);
window = Window()
window.Title = "Status"
window.Width = 250
window.Height = 120
window.Activated += lambda args: api.Print(f"Active: {args.Window.IsActive}")
window.Show()
api.Print(f"Is active: {window.IsActive}")