gpt4 book ai didi

delphi - 删除 tcategorypanel 边框

转载 作者:行者123 更新时间:2023-12-03 14:52:41 38 4
gpt4 key购买 nike

XE3中如何去除TCategoryPanel和TCategoryPanelGroup的边框?

尝试过,但没有成功:

type
TCategoryPanel = class (Vcl.ExtCtrls.TCategoryPanel)
protected
procedure CreateParams ( var Params: TCreateParams); override ;
end ;

procedure TCategoryPanel.CreateParams ( var Params: TCreateParams);
begin
Inherited ;
Params.Style:= Params.Style and not WS_BORDER;
end ;

最佳答案

对于TCategoryPanel,您需要将 protected 属性BevelOuter设置为bvNone

对于TCategoryPanelGroup,您确实可以在CreateParams中删除边框。就像这样:

Params.Style := Params.Style and (not WS_BORDER);

看起来像这样:

enter image description here

关于delphi - 删除 tcategorypanel 边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16004200/

38 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com