Jump to content

Unigui Tips & Tricks #1: Add your Controls into Window header


mhmda

Recommended Posts

2 hours ago, mhmda said:

Soon....

You will learn how add your controls (Buttons, Edits,Combo...) to window header. you will learn adding controls using 2 methods: 

  • Adding a design time controls.
  • Adding controls dynamically at runtime using Extjs code.

image.png.a96f85329148b38cf50cf71819df503b.png

Would it really be code to use on a panel? a Grid?

  • Like 1
Link to comment
Share on other sites

9 minutes ago, picyka said:

Would it really be code to use on a panel? a Grid?

Hello,

One possible solution:

1. UniHiddenPanel - > UniButton1

2. 

procedure TMainForm.UniFormReady(Sender: TObject);
begin
  with UniDBGrid1 do
    if HeaderTitle<>'' then
      JSInterface.JSCall('header.add', [UniButton1.JSControl]);
end;

 

  • Like 1
  • Upvote 1
Link to comment
Share on other sites

  • 1 month later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...