| |

VerySource

 Forgot password?
 Register
Search
View: 676|Reply: 2

VC Button control inheritance problem ~! ~~~~~~~~~~~~~~~

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-3-8 00:30:01
| Show all posts |Read mode
I now want to turn Button into a control that can be dragged and enlarged & shifted by a mouse. If it is implemented, everyone will help! !!
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-5-27 19:45:01
| Show all posts
How to achieve, online, etc., VC newbie, I hope everyone can help. I want to make the effect like having the mouse to enlarge it and shift it when editing, I like to write such a control. . . . . . .
Reply

Use magic Report

0

Threads

3

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-7-5 22:45:01
| Show all posts
I don’t think it’s necessary to make a control to solve this thing. The problem with a few lines of code
Define a hotspot area. Then, how much does the coordinate change when the mouse is pressed until you release it? Just pass the value to the size property of the button. The same applies to the holding.
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