| |

VerySource

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

How to make some controls invisible or fixed and not draggable when arranging dialog controls?

[Copy link]

2

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 Invalid IP Address

Post time: 2020-1-22 08:20:01
| Show all posts |Read mode
I want to put a lot of controls in a dialog layout, and show or hide them by functions such as GetDlgItem (IDC_PORTOK)-> ​​ShowWindow (SW_SHOW).
But there are too many in one layout, and the program runs without any trouble, but it is very inconvenient when discharging. May I ask, is there any way to make some controls invisible during discharging? It can be fixed and not dragging.

Is there any other method? Thank you !!
Reply

Use magic Report

0

Threads

8

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-2-1 15:18:01
| Show all posts
Simply select visible and invisible in the properties of each control, and then change it in the program according to your needs
Reply

Use magic Report

2

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-2-2 06:00:02
| Show all posts
Upstairs is the "S display" in the property-> GENERAL? See you this way.
I mean, when it is not compiled and run, when it is arranged, how can it be invisible?
Reply

Use magic Report

0

Threads

8

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-2-3 16:00:01
| Show all posts
I don't know about this. When you arrange the controls, it is inconvenient to set some controls to invisible, which may cause the controls to overlap. I have painted more than 200 controls before, and slowly draw it.
Reply

Use magic Report

0

Threads

11

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-2-16 13:30:02
| Show all posts
It may be difficult to typeset ...
Reply

Use magic Report

2

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-3-1 18:15:02
| Show all posts
Well, it's not easy, draw slowly
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