Hello,
With Delphi 11 and latest UI Pack (v12.0.1.0.1 currently) I try to realize a drop down that contains two different types if items. Comparable with your example in the smooth components manual with list of cars where you have Mercedes and indented the models. The problem is one can also click on "Mercedes" and has chosen a company instead of a model. Is is possible to make an item "unselectable"? The possibility of "seperator" is good, the problem is it is blank even when a caption is given. Is there any way to realize that?
2nd option: Is it possible to have an AdvSmoothListBox as dropdown from a button, so no Item needs to be selected, but instead the selection happens by a button on an item? The AdvControlDropDown unfortunatly doesn't work properly on HighDPI.
In this TAdvSmoothComboBox demo , you can do something like:
var
flg: boolean;
procedure TForm194.AdvSmoothComboBox2ItemSelectionChanged(Sender: TObject;
previousitemindex, itemindex: Integer);
begin
if AdvSmoothComboBox2.Items[itemindex].GraphicLeftType = gtSmoothButton then
begin
flg := true;
Abort;
end;
end;
procedure TForm194.AdvSmoothComboBox2MouseUp(Sender: TObject;
Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
if flg then
begin
flg := false;
Abort;
end;
end;