Help Me Please again, A problem about framebar

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #32845
    georgettank
    Participant

    Again I found it hard to enable the controls in the left framebar when I active a click event in the frame created by mainform

    Is it a bug or a mistake of me??

    Thanks for your suggestion very much

    Attached is the demo about this

    #38667
    Support
    Keymaster

    Try this code, please

    CODE
    procedure TFrameButtons.sBitBtn3Click(Sender: TObject);
    begin
      if Mainform.sFrameLookBar1.Items[0].Frame nil then TFrameBarControls(Mainform.sFrameLookBar1.Items[0].Frame).sBitBtn1.Enabled := True;
    {
      if Assigned(OldFrame) then FreeAndNil(OldFrame);
      Frame := TFrameBarControls.Create(nil);
      TFrameBarControls(Frame).sBitBtn1.Enabled := True;
    }
    end;


    PS. Other your messages will be deleted, please do not duplicate them.

    #38675
    georgettank
    Participant

    Thanks for your reply

    That do good

    best regard

    QUOTE (Support @ Apr 16 2009, 06:30 PM)
    Try this code, please

    CODE
    procedure TFrameButtons.sBitBtn3Click(Sender: TObject);
    begin
      if Mainform.sFrameLookBar1.Items[0].Frame nil then TFrameBarControls(Mainform.sFrameLookBar1.Items[0].Frame).sBitBtn1.Enabled := True;
    {
      if Assigned(OldFrame) then FreeAndNil(OldFrame);
      Frame := TFrameBarControls.Create(nil);
      TFrameBarControls(Frame).sBitBtn1.Enabled := True;
    }
    end;


    PS. Other your messages will be deleted, please do not duplicate them.

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