framebar in bcb

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #35197
    momith
    Participant

    Hello,

    How can I use frames in the framebar (borland c++ builder)?

    in the delphi-demo it says in the oncreateframe “Frame := TFrameDemo.Create(nil);” (as example).

    i need the code translated for borland 🙂 (“Frame = FrameDemo;” is not possible :D) and do i have to do anything else in addition?

    thanks in advance,

    momith

    ps: i dont have any delphi-experience

    #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 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.