| |

VerySource

 Forgot password?
 Register
Search
View: 876|Reply: 5

How to realize the lyrics window like Qianqian Jingting, you can set whether it is always front by the button (dynamic s

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 United States

Post time: 2020-1-16 14:00:01
| Show all posts |Read mode
How to realize the lyrics window like Qianqian Jingting, you can set whether it is always front by the button (dynamic setting window is always front)
Reply

Use magic Report

0

Threads

17

Posts

16.00

Credits

Newbie

Rank: 1

Credits
16.00

 China

Post time: 2020-1-20 22:18:01
| Show all posts
Is this not?
procedure TForm1.Button2Click (Sender: TObject);
begin
   form1.FormStyle: = fsstayontop;
end;
Reply

Use magic Report

0

Threads

4

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-24 21:09:01
| Show all posts
SetWindowPos (Form1.Handle, HWND_TOPMOST, Form1.Left, Form1.Top, Form1.Widht, Form1.Height, SWP_SHOWWINDOW);
Reply

Use magic Report

0

Threads

4

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-30 07:45:02
| Show all posts
Forefront display:
SetWindowPos (Form1.Handle, HWND_TOPMOST, Form1.Left, Form1.Top, Form1.Width, Form1.Height, SWP_SHOWWINDOW);

Cancel frontmost display:
SetWindowPos (Form1.Handle, HWND_NOTOPMOST, Form1.Left, Form1.Top, Form1.Width, Form1.Height, SWP_SHOWWINDOW);
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-1-31 23:54:02
| Show all posts
(Owner) Ask for help again!
    The code upstairs is not working. If you press to display the desktop form, it will be hidden, but Qianqianjing will not be hidden. What I want is this effect !!! Please help !!
Reply

Use magic Report

0

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-2 11:45:01
| Show all posts
1.form1.FormStyle:=fsstayontop;
2. The forefront display:
SetWindowPos (Form1.Handle, HWND_TOPMOST, Form1.Left, Form1.Top, Form1.Width,

Form1.Height, SWP_SHOWWINDOW );
Cancel the front end display:
SetWindowPos (Form1.Handle, HWND_NOTOPMOST, Form1.Left, Form1.Top, Form1.Width,

Form1.Height, SWP_SHOWWINDOW );
All three are ok, you can try again
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list