| |

VerySource

 Forgot password?
 Register
Search
View: 58|Reply: 14

How to modify the background color of DW in Label format

[Copy link]

2

Threads

10

Posts

10

Credits

Newbie

Rank: 1

Credits
10

 United States

Post time: 2020-1-24 11:40:01
| Show all posts |Read mode
1. I made a DW in Label format, and now I want to modify its background color, but after the brush window is changed, the runtime is still white, for some reason.
2. In this DW, because there are multiple small labels, why the left margin cannot be modified. A3 horizontal paper is used.
3. There is a column on the label of the DW. I want to automatically adjust the font size of the displayed value (string type) in the program according to the size of the DW, but it doesn't work.
Reply

Use magic Report

0

Threads

13

Posts

10

Credits

Newbie

Rank: 1

Credits
10

 China

Post time: 2020-2-10 12:30:02
| Show all posts
1. See if a data window with the same name exists in other pbl.
Reply

Use magic Report

2

Threads

10

Posts

10

Credits

Newbie

Rank: 1

Credits
10

 Saudi Arabia

 Author| Post time: 2020-2-10 14:00:01
| Show all posts
Definitely not
Reply

Use magic Report

0

Threads

13

Posts

10

Credits

Newbie

Rank: 1

Credits
10

 China

Post time: 2020-2-10 17:30:01
| Show all posts
Is it to set the background color of the column or the background color of the entire data window?
Reply

Use magic Report

2

Threads

10

Posts

10

Credits

Newbie

Rank: 1

Credits
10

 China

 Author| Post time: 2020-2-12 00:00:02
| Show all posts
Is the background color of the entire DW window
Reply

Use magic Report

1

Threads

9

Posts

9

Credits

Newbie

Rank: 1

Credits
9

 China

Post time: 2020-2-15 14:00:01
| Show all posts
Try setting the background color of the columns to transparent! I haven't used a Label in a long time.
Reply

Use magic Report

2

Threads

10

Posts

10

Credits

Newbie

Rank: 1

Credits
10

 China

 Author| Post time: 2020-3-17 15:45:01
| Show all posts
The background color of the column is transparent. Now you need to modify the background color of the entire DW.
Reply

Use magic Report

0

Threads

21

Posts

18

Credits

Newbie

Rank: 1

Credits
18

 China

Post time: 2020-4-1 10:30:01
| Show all posts
I do n’t know what you wrote in Modify
Reply

Use magic Report

0

Threads

4

Posts

4

Credits

Newbie

Rank: 1

Credits
4

 China

Post time: 2020-4-5 20:15:01
| Show all posts
Try to make a background image
Reply

Use magic Report

2

Threads

10

Posts

10

Credits

Newbie

Rank: 1

Credits
10

 China

 Author| Post time: 2020-4-17 22:00:01
| Show all posts
dw_1.SetRedraw (False)

// Set the font size
string ls_tmp
ls_tmp = dw_1.Modify ("FShow1.Font.Weight = '" + string (ll_TWeight) + "'")
ls_tmp = dw_1.Modify ("FShow2.Font.Weight = '" + string (ll_TWeight) + "'")
ls_tmp = dw_1.Modify ("FBoardNo.Font.Weight = '" + string (ll_BWeight) + "'")

dw_1.SetRedraw (True)


The above is to use a variable to set the font size, and I will not change it to a specific value below.
dw_1.SetRedraw (False)

ls_tmp = dw_1.Modify ("FShow1.Font.Weight = '-9'")
ls_tmp = dw_1.Modify ("FShow2.Font.Weight = '" + string (ll_TWeight) + "'")
ls_tmp = dw_1.Modify ("FBoardNo.Font.Weight = '9'")

dw_1.SetRedraw (True)
Reply

Use magic Report

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

Points Rules

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

Quick Reply To Top Return to the list