| |

VerySource

 Forgot password?
 Register
Search
View: 1755|Reply: 7

How to add a drop-down box to the color property of a self-edited control? ? ?

[Copy link]

1

Threads

4

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-9-29 16:30:03
| Show all posts |Read mode
If a custom control has a color attribute, how can you make the effect of the color attribute of the standard control? There is a drop-down selection menu, double click can also show the palette
Reply

Use magic Report

0

Threads

22

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 China

Post time: 2020-9-29 20:45:01
| Show all posts
TColorBox
    ColorBox1->Style << cbCustomColor;
Reply

Use magic Report

0

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-9-30 10:15:01
| Show all posts
Adding a TColor attribute should be fine.
Reply

Use magic Report

1

Threads

4

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-9-30 23:30:01
| Show all posts
The one on the second floor didn't understand.
I set the attribute to TColor type but it still doesn't work. Added stored=isCOLORED... or something. Not good
Reply

Use magic Report

0

Threads

22

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 China

Post time: 2020-10-1 00:30:01
| Show all posts
Sorry, I didn't see what the original poster meant.

TColor attribute, there is no reason not to. . .
Reply

Use magic Report

1

Threads

4

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-10-1 00:45:01
| Show all posts
Are there any examples? Who can give an example or post it here?
Reply

Use magic Report

1

Threads

4

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-10-1 01:00:01
| Show all posts
Oh. Is the attribute to be of type TColorBox? I thought it was a TColor type.
Reply

Use magic Report

0

Threads

22

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 China

Post time: 2020-10-1 01:15:01
| Show all posts
Is TColor type
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