Delphi – How to make my form always in the best state?

I have these small cursor shapes, I need to keep everything in everything, always…
FormStyle is already fsStayOnTop
I use this code:

SetWindowPos(tempCursor.Handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE or SWP_NOSIZE or SWP_NOACTIVATE );

And this (though I don’t know its Function):

procedure TCursorFrm.CreateParams(var Params: TCreateParams);
const
WS_EX_NOACTIVATE = $8000000;
begin
inherited;
Params.ExStyle := Params.ExStyle + WS_EX_NOACTIVATE;
end;

But I still can’t get my table on top of TMenuItems.
How to make mine Is the form always in its best condition?

This must be the final or worst hackery I will post.

>Set FormStyle to fsStayOnTop (this step may not be necessary in fact)
>Delete TTimer on the form and set its interval to 100
>In the OnTimer event, place the following code:

If it is visible
SetWindowPos(Self.Handle,HWND_TOPMOST,0,0,0,0,SWP_NOSIZE or SWP_NOMOVE or SWP_NOACTIVATE);

I use it in one of my projects , It seems to work fine.

I have these small cursor shapes, I need to keep everything in all, always…
FormStyle is already fsStayOnTop
I Use this code:

SetWindowPos(tempCursor.Handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE or SWP_NOSIZE or SWP_NOACTIVATE );

And this (though I don’t know what it does):

procedure TCursorFrm.CreateParams(var Params: TCreateParams);
const
WS_EX_NOACTIVATE = $8000000 ;
begin
inherited;
Params.ExStyle := Params.ExStyle + WS_EX_NOACTIVATE;
end;

But I still can’t get my form in TMenuItems Above.
How to keep my form always in the best condition?

This must be the final or worst hackery I will post.

>Set FormStyle to fsStayOnTop (actual (This step may not be needed above)
>Delete TTimer on the form and set its interval to 100
>In the OnTimer event, place the following code:

If it is visible
SetWindowPos (Self.Handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE or SWP_NOMOVE or SWP_NOACTIVATE);

I use it in one of my projects and it seems to work fine.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 3138 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.