Forum Replies Created
-
AuthorPosts
-
April 27, 2020 at 4:41 pm in reply to: sdbgrid Column Header : Import Section from other skin #68724carlosig03Participant
Hello AlphaSkins support,
It’s Working!!!
Thanks!!!
Best Regards
April 20, 2020 at 12:18 pm in reply to: sdbgrid Column Header : Import Section from other skin #68707carlosig03ParticipantHello Stephane Senecal,
It’s Working!!!
Thanks!!!
Best Regards
Attachments:
You must be logged in to view attached files.April 3, 2020 at 10:36 am in reply to: sdbgrid Column Header : Import Section from other skin #68659carlosig03ParticipantHello Stephane Senecal,
I’m using Delphi Tokyo and Rio.
Best Regards
March 31, 2020 at 9:55 pm in reply to: sdbgrid Column Header : Import Section from other skin #68654carlosig03ParticipantHello,
I am usina the last oficial release, not beta.
March 30, 2020 at 4:33 pm in reply to: sdbgrid Column Header : Import Section from other skin #68649carlosig03ParticipantGood afternoon.
Thank you very much for your reply.
However, the problem remains. The titles remain with the same problem but now in gray.
I send two prints, one with the problem and the other with what I want.
Best Regards
Attachments:
You must be logged in to view attached files.carlosig03ParticipantI've downloaded the file and is opening..
Could you try again please.
carlosig03Participantwell,
may be wath you want is this (look at the last column of attached sample)
It's WORKING
carlosig03ParticipantHere's a simple solution:
a) Into aclfPainter.pas replace the procedure DrawProgressBarChunk
procedure TcxACLookAndFeelPainter.DrawProgressBarChunk(ACanvas: TcxCanvas; ARect: TRect; AVertical: Boolean);
var
i : integer;
TmpBmp, BGBmp : TBitmap;
begin
if Skinned then begin
if AVertical then
i := DefaultManager.GetSkinIndex(s_ProgressV)
else
i := DefaultManager.GetSkinIndex(s_ProgressH);
if DefaultManager.IsValidSkinIndex(i) then
begin
TmpBmp := CreateBmp32(WidthOf(ARect), HeightOf(ARect));
BGBmp := CreateBmp32(WidthOf(ARect), HeightOf(ARect));
BitBlt(BgBmp.Canvas.Handle, 0, 0, TmpBmp.Width, TmpBmp.Height, ACanvas.Handle, ARect.Left, ARect.Top, SRCCOPY);
PaintItem(i, s_Button, MakeCacheInfo(BgBmp), True, 0, Rect(0, 0, TmpBmp.Width, TmpBmp.Height), Point(0, 0), TmpBmp, DefaultManager);
if DefaultManager.Tag>0 then
sGraphUtils.ChangeBmpHUE(TmpBmp, DefaultManager.Tag);
BitBlt(ACanvas.Handle, ARect.Left, ARect.Top, TmpBmp.Width, TmpBmp.Height, TmpBmp.Canvas.Handle, 0, 0, SRCCOPY);
DefaultManager.Tag:=0;
FreeAndNil(TmpBmp);
FreeAndNil(BgBmp);
end;
end else inherited
// Old Flat style //
// if Skinned then ACanvas.FillRect(ARect, MixColors(DefaultManager.GetActiveEditFontColor, DefaultManager.GetActiveEditColor, 0.5)) else inherited;
end;
😎 The column you want an diferent color, ondraw set tag of skinmanager with Hue value
procedure TForm1.cxGrid1TableView1Column1CustomDrawCell(Sender: TcxCustomGridTableView; ACanvas: TcxCanvas; AViewInfo: TcxGridTableDataCellViewInfo;
var ADone: Boolean);
begin
DataModule2.sSkinManager1.Tag := 250;
end;
and that's it.
Hope this help you.
carlosig03Participant'Giuseppe' wrote:+1
+2
carlosig03ParticipantI've replaced the old functions of DEVX with the new one :
procedure _InitDevEx(const Active : boolean);
var
vPainter: TcxCustomLookAndFeelPainter;
begin
if Active then begin
if not cxLookAndFeelPaintersManager.GetPainter(s_AlphaSkins, vPainter) then begin
cxLookAndFeelPaintersManager.Register(vPainter); <
Access ViolationRootLookAndFeel.SkinName := s_AlphaSkins;
end
end
else if cxLookAndFeelPaintersManager.GetPainter(s_AlphaSkins, vPainter) then begin
RootLookAndFeel.SkinName := '';
cxLookAndFeelPaintersManager.Unregister(s_AlphaSkins);
end
end;
But I get an access violation, maybe because vPainter is nil ?
carlosig03Participanturgently needed
carlosig03ParticipantI corrected the errors. But isn't painting.
if Active then begin
if not GetExtendedStylePainters.GetPainterByName(s_AlphaSkins, vPainter) then begin
GetExtendedStylePainters.Register(s_AlphaSkins, TcxACLookAndFeelPainter, TdxSkinInfo.Create(nil));
cxLookAndFeels.RootLookAndFeel.SkinName := s_AlphaSkins;
end
end
else if GetExtendedStylePainters.GetPainterByName(s_AlphaSkins, vPainter) then begin
cxLookAndFeels.RootLookAndFeel.SkinName := '';
GetExtendedStylePainters.Unregister(s_AlphaSkins);
end
Now we must use cxLookAndFeelPaintersManager.GetPainter and cxLookAndFeelPaintersManager.register, but don't now how use it.
Any help ?
-
AuthorPosts