Jump to content
Sign in to follow this  
FabDev

FMX App Not Showing in Taskbar When Running in RemoteApp (RDP Seamless Mode)

Recommended Posts

Hello,

I'm developing a Delphi FireMonkey (FMX) application that works perfectly when run locally on Windows. However, when the application is deployed through RemoteApp (RDP seamless mode) — for example, on Windows Server 2019 — the application does not appear in the taskbar.

- Here's what I’ve tried so far (with no success):

  • Setting BorderStyle := TFmxFormBorderStyle.Single

  • Manually setting the form's Visible := True

  • Forcing the form to be shown using ShowWindow(...)

  • Using Windows API to set WS_EX_APPWINDOW and remove WS_EX_TOOLWINDOW

  • Trying to delay taskbar hacks via TThread.Synchronize(...)

  • Attempting similar tricks in Loaded, OnCreate, and OnShow

I also tried calling this helper function in FormCreate, but it had no visible effect:

uses
  FMX.Platform.Win, Winapi.Windows;

procedure ForceTaskbarPresence(Form: TForm);
var
  Wnd: HWND;
begin
  if TPlatformServices.Current.SupportsPlatformService(IFMXWindowService) then
  begin
    Wnd := WindowHandleToPlatform(Form.Handle).Wnd;
    SetWindowLong(Wnd, GWL_EXSTYLE,
      GetWindowLong(Wnd, GWL_EXSTYLE) and not WS_EX_TOOLWINDOW or WS_EX_APPWINDOW);
    ShowWindow(Wnd, SW_SHOW);
  end;
end;

Tested in both Delphi 11.X and 12.3.

 

In contrast, a VCL application behaves correctly in the same RemoteApp environment, especially when setting Application.MainFormOnTaskbar := True.

My goal: make the main FMX window appear in the taskbar under RemoteApp, so the user can interact with it as a normal application window.

My question: Has anyone successfully made a pure FMX application appear in the Windows taskbar under RemoteApp?
If not, is the only reliable workaround to embed FMX inside a VCL host form?
 

Thanks in advance,

Edited by FabDev

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×