MVakili Posted June 2, 2021 Share Posted June 2, 2021 I want to create ToolButtons in UniPanel at runtime it seems I can use this UniPanel2.ToolButtons.InsertButtons but how add a button to it? Quote Link to comment Share on other sites More sharing options...
MVakili Posted June 2, 2021 Author Share Posted June 2, 2021 with TUniPanel.Create(Self) do begin Left:=100; Top:=140; Width:=140; Height:=140; Text:='Text'; Name:='AA'; Parent:=MainForm; TitleVisible:=True; With ToolButtons.Add Do Begin Index:=0; IconCls:='action'; Action:=Action1; End; With ToolButtons.Add Do Begin Index:=1; IconCls:='add'; Action:=Action2; End; With ToolButtons.Add Do Begin Index:= 2; IconCls:='more'; Action:=Action3; End; end; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.