framebar in bcb

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #48316
    momith
    Participant

      oh yeah 😀 I got it 😛

      Frame = new TFrameDemo(NULL);

      Frame->Parent = this;

      the search engine of this forum is great!!

      and sorry for my bad english 😀

      #48318
      momith
      Participant

        I just have 2 another questions

        when i use the code of my previous post the frame is placed more on the left side than the Title-Button's side.

        furthermore there are so many bugs after clicking the title2 and by using more than one frame (title1->frame1; title2->frame2 …)?! (title1->frame1; title2->frame1 … is possible!)

        in delphi you don't have to do anything. but i want the framebar in bcb6 looking nice, too 🙂

        and before programming an own framebar (i've already started) it would be great to know any other option to fix that?! 😀

        momith

        #48331
        Support
        Keymaster

          Hello

          'momith' wrote:
          Frame = new TFrameDemo(NULL);

          Frame->Parent = this;

          Where you uses this code? In the OnCreateFrame event?

          #48334
          momith
          Participant
            'Support' wrote:

            Where you uses this code? In the OnCreateFrame event?

            yes.

            void __fastcall Tmainform::sFrameBar1Items0CreateFrame(TObject *Sender,

            TCustomFrame *&Frame)

            {

            Frame = new TFrame1(NULL);

            Frame->Parent=this;

            }

            #48339
            Support
            Keymaster

              Try remove this code “Frame->Parent=this;”

              This line is not needed.

              #48341
              momith
              Participant

                thanks!! now it's much better than before!

                I changed the framesection of the frameadapter to “BARPANEL” and now the result is perfect! 🙂

                Thanks a lot!

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