| |

VerySource

 Forgot password?
 Register
Search
View: 1052|Reply: 6

vclskin skin application - the form is docked to the panel, the controls in the form are invalid, come master!

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-12-9 09:30:01
| Show all posts |Read mode
Create two new forms, frmMain and frmConfig
Put a skinData1, panel1 in frmMain
When docking is performed in the code,
The Button in frmConfig is not the style set by skinData1
The other windows pop up with no problem in style. It just cannot be docked.
If the docked form is changed back to a complete form by double-clicking on the small bar above,
At this time, Button becomes the style set in skinData1
It's been a day, depressed!
Reply

Use magic Report

0

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-12-9 20:15:01
| Show all posts
Halo, I don’t know what you mean. Anyway, VCLSKIN has two attributes. One is activated as TRUE and the other is the path to load the skin.
Reply

Use magic Report

0

Threads

16

Posts

16.00

Credits

Newbie

Rank: 1

Credits
16.00

 China

Post time: 2020-12-9 20:30:02
| Show all posts
These controls are generally not used, and third-party controls often have problems. I can't control myself.
Reply

Use magic Report

0

Threads

14

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-12-9 20:45:01
| Show all posts
Didn’t redraw it? I’ve never used this control, I’ve used businessSkinform, it should be much better than this
Reply

Use magic Report

0

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-12-9 21:00:01
| Show all posts
Try adding code in the OnActivate event of frmConfig
procedure frmConfig.FormActivate(Sender: TObject);
begin
  frmMain.mySkinData.SkinForm(Self.Handle);
end;
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-12-9 21:15:01
| Show all posts
if frm <> nil then
          begin
            LockWindowUpdate(Panel_Client.Handle);
            try

              frm.Hint := ACaption;
              frm.BorderStyle := bsNone;
              frm.Visible := false;
              frm.Parent := Panel_Client;
              frm.Align := alClient;
              frm.Visible := true;
              skindata1.AddNestForm(Self, frm);
              skindata1.UpdateSkinControl(self);
              frm.SetFocus;
            except;

            end;
            LockWindowUpdate(0);
          end;

      end;
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-12-9 21:30:01
| Show all posts
Maybe it is the bug of VCLSkin, the unstable control is also a common problem!
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