VCLskin Skin QuantumGrid 5 Components
Vclskin support Button, CheckBox, RadioButton, Combobox, cxGrid in QuantumGrid4. all procedure for skining QuantumGrid4 component in SkinEQGrid.pas unit .
Scrollbar of TcxGrid is owner-draw, it need modify QuantumGrid5 source code to skin them.
Vclskin provide the modified code fro register user.
1. add 'SkinEQGrid.pas' into your project.
2. call 'InitStyle' in FormCreate event.
3. call 'doskinchanged' in TSkinData.onskinchanged event;
4. call 'doskincontrol' in TSkinData.OnSkinControl event;
Download QuantumGrid Demo project 1.2M
Download QuantumGrid Demo2 (Tcxbutton and Combobox) 700K
procedure TUnboundSimpleDemoMainForm.FormCreate(Sender: TObject);
begin
.......
InitStyle(SkinData1);
end;
procedure TUnboundSimpleDemoMainForm.SkinData1SkinControl(
Sender: TComponent; SkinData: TSkinData; Form, Control: TControl;
ControlClass: String; var SkinnedControl: TComponent);
begin
doskincontrol(sender,skindata,form,control,controlclass,skinnedcontrol);
end;
procedure TUnboundSimpleDemoMainForm.SkinData1SkinChanged(Sender: TObject);
begin
doskinchanged(sender);
end; |
|