Add Item (TsTitleItem) in FrameBar at runtime..??

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #45248
    kazuya85
    Participant

      no help? 😡

      #45258
      Support
      Keymaster

        Hello, you can try such code :

        Code:
        procedure TMainForm.sBitBtn1Click(Sender: TObject);
        var
        ci : TsTitleItem;
        begin
        ci := sFrameBar1.Items.Add as TsTitleItem;
        ci.Caption := 'New item';
        ci.OnCreateFrame := sFrameBar1Items1CreateFrame;
        end;

        Here is the demo : http://www.alphaskins.com/sfiles/demos/framebar.zip

        #45311
        kazuya85
        Participant
          'Support' wrote:

          Hello, you can try such code :

          Code:
          procedure TMainForm.sBitBtn1Click(Sender: TObject);
          var
          ci : TsTitleItem;
          begin
          ci := sFrameBar1.Items.Add as TsTitleItem;
          ci.Caption := 'New item';
          ci.OnCreateFrame := sFrameBar1Items1CreateFrame;
          end;

          Here is the demo : http://www.alphaskins.com/sfiles/demos/framebar.zip

          thanks dude, u are my savior…

          #45313
          mol
          Participant

            It always helps to read the documentation and take a look at the demos, you know… 😉

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.