Hello,
I’m using unit AdvSmoothCombobox
MAJ_VER = 2; // Major version nr.
MIN_VER = 0; // Minor version nr.
REL_VER = 3; // Release nr.
BLD_VER = 1; // Build nr.
Which refers unit AdvSmoothListbox
MAJ_VER = 2; // Major version nr.
MIN_VER = 5; // Minor version nr.
REL_VER = 0; // Release nr.
BLD_VER = 2; // Build nr.
Which refers unit GDIPFill
No revision
Under Delphi XE environment.
It’s been a while I’m trying to correct a bad functioning with the smoothcombobox component.
I’m setting a “PictureContainer” both in the “Combobox.PictureContainer” and the “combobox.ItemAppareance.ButtonAppareance.PictureContainer” properties.
The aim for me is to change the GraphicLeftName property as to make a NodeOpen/NodeClosed visual glyph. ( I didn’t success to use the NodeOpen/NodeClosed properties)
Then, I’m adding dynamically some items to the list:
With AAdvCbx.Items.Add do
begin
Level := ALevel;
Caption := ACaption;
GraphicLeftType := gtSmoothButton;
GraphicLeftShow := gsAlways;
GraphicLeftName := cszIconNodeOpen;
DeleteButton := False;
DeleteButtonVisible := False;
CategoryID := AId;
Indent := 30 * Level;
Tag := 0;
End;
When I run the program here is what I have:
Only selected Item is taking the picture.
After searching a while, I’ve made the following modification :
Unit : GDIPFill
Line : 5086
procedure TGDIPButton.Assign(Source: TPersistent);
begin
if (Source is TGDIPButton) then
begin
FFont.Assign((Source as TGDIPButton).Font);
FLayout := (Source as TGDIPButton).Layout;
FSpacing := (Source as TGDIPButton).Spacing;
FShiftDown := (Source as TGDIPButton).ShiftDown;
FAlignment := (Source as TGDIPButton).Alignment;
FPictureAlignment := (Source as TGDIPButton).PictureAlignment;
FFocusColor := (Source as TGDIPButton).FocusColor;
FSimpleLayout := (Source as TGDIPButton).SimpleLayout;
FGlowPercentage := (Source as TGDIPButton).GlowPercentage;
FPictureContainer := (Source as TGDIPButton).PictureContainer; ß ADDED
Changed;
end;
end;
Everything is working well now !!!!!!!
Do you think that this modification is suitable and/or do you have any other idea ???
Thanks for your reply