TRzPopupPanel border

Components on the Raize Panels palette: panels, group bars, page controls, splitters, toolbars, status bars, group boxes, etc.

TRzPopupPanel border

Postby bstaggs » Wed Dec 04, 2013 1:18 pm

I'm using TRzPopupPanel in a custom control to manage a popup panel that I want to behave like a popup menu. It works well, except that no matter what properties I change, I always get a border drawn around the panel and I have no control over its appearance. What I really want is no border at all; I can handle all of the drawing the way I want it within the frame I am placing in the panel.

Here's the code I am using to invoke the popup:

Code: Select all
  PopupPanel := TRzPopupPanel.Create(Self);
    PopupPanel.AutoSize := False;
    PopupPanel.Parent := TWinControl(Owner);

    PopupPanel.BorderInner := fsNone;
    PopupPanel.BorderOuter := fsNone;
    PopupPanel.BorderColor := clBtnFace;
    PopupPanel.AlignWithMargins := False;
    PopupPanel.FlatColor := clBtnFace;

    PopupPanel.Width := 200;
    PopupPanel.Height := 400;

    TabList := TFrameTabList.Create(PopupPanel);
    TabList.Align := alClient;
    TabList.Color := clBtnFace;
    TabList.Parent := PopupPanel;



But no matter what I do with PopupPanel properties -- width, color, etc, I get a bluish border of 2 or 3 pixels wide, no matter what. The frame I am creating has no border of its own (it contains a client aligned list box).

Is there any way to make the popup panel not paint a border of any kind?
Posts: 29
Thu Oct 27, 2011 6:36 pm

Re: TRzPopupPanel border

Postby Raize Support » Thu Dec 05, 2013 5:42 am


The TRzPopupPanel descends from the TRzCustomPopup class and in the TRzCustomPopup.Create constructor, the BorderOuter property is set to fsPopup, and BorderWidth is set to 2. You are resetting the BorderOuter property, but not the BorderWidth. If you change the BorderWidth to 0, then the border should be eliminated.

Raize Software Support
Raize Software
Raize Support
Posts: 613
Fri Mar 25, 2011 9:04 pm

Return to Panels

Who is online

Users browsing this forum: No registered users and 2 guests