0
這是我的應用程序的截圖的一部分:C++ Builder的XE - 定製TCategoryPanel
我需要做以下的事情:
- 移除線分離摺疊板
- 刪除線在展開面板的底部邊框上
我說的這些句子是用字符'!'突出顯示的在圖像中。
這是我的應用程序的截圖的一部分:C++ Builder的XE - 定製TCategoryPanel
我需要做以下的事情:
我說的這些句子是用字符'!'突出顯示的在圖像中。
我通過創建TCategoryPanel的正式派生類完成了第二個任務:
class MyCategoryPanel : public TCategoryPanel
{
public:
__property BevelWidth;
};
的目標是改變BevelWidth財產的能見度從保護公衆。現在我們可以像這樣設置斜角寬度爲零(代碼從父級窗體類調用):
int i;
for (i = 0; i < ComponentCount; i++) {
TComponent *component = Components[i];
TCategoryPanel *cat_panel = dynamic_cast<TCategoryPanel*>(component);
if (cat_panel == NULL) {
continue;
}
((MyCategoryPanel*)cat_panel)->BevelWidth = 0;
}