App staying behind taskbar when starting in fullscreen!
Hey, this is the code i'm using

    r:TRect;    
    BorderStyle := bsNone;
    SystemParametersInfo(SPI_GETWORKAREA, 0, @r,0) ;
    SetBounds(r.Left,r.Top,r.Right-r.Left, r.Bottom- r.Top);

What i get:
r.Left = 0
r.Top = 0
r.Right = 1366
r.Bottom = 728

My resolution is 1366x768. Also it seems like top would be -xx when i run the application.
Another problem is that the application won't cover taskbar, but goes behind it.

Also what i've tried:

    BorderStyle := bsNone;
    WindowState := wsMaximized;

It works fine when switching fullscreen at runtime, but it wont work when starting the app at startup. I get the same problem.

Any help would be appreciated.

App staying behind taskbar when starting in fullscreen!
===

Hey, this is the code i'm using

    r:TRect;    
    BorderStyle := bsNone;
    SystemParametersInfo(SPI_GETWORKAREA, 0, @r,0) ;
    SetBounds(r.Left,r.Top,r.Right-r.Left, r.Bottom- r.Top);

What i get:
r.Left = 0
r.Top = 0
r.Right = 1366
r.Bottom = 728

My resolution is 1366x768. Also it seems like top would be -xx when i run the application.
Another problem is that the application won't cover taskbar, but goes behind it.

Also what i've tried:

    BorderStyle := bsNone;
    WindowState := wsMaximized;

It works fine when switching fullscreen at runtime, but it wont work when starting the app at startup. I get the same problem.

Any help would be appreciated.
