`
cfeers
  • 浏览: 135108 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

Delphi Component Palette 多行显示

阅读更多

1: 新建一个单元文件,复制如下代码,并保存名称为:MultiLinePaletteExpert.pas

unit MultiLinePaletteExpert;
interface
uses
Forms, Controls, ComCtrls;
implementation
type
TMultiLinePalette = class
public
procedure ResizeComponentPalette(Sender : TObject);
end;

var
MultiLinePalette : TMultiLinePalette;
procedure TMultiLinePalette.ResizeComponentPalette(Sender : TObject);

var
AHeight : integer;

begin
with (Sender as TTabControl) do begin
AHeight := Height + DisplayRect.Top - DisplayRect.Bottom + 29;
Constraints.MinHeight := AHeight;
Parent.Constraints.MaxHeight := AHeight;
end;
end; {ResizeMultiLineComponentPalette}
procedure SetMultiLineComponentPalette(MultiLine : boolean);
var
AppBuilder : TForm;
TabControl : TTabControl;
begin
AppBuilder := TForm(Application.FindComponent('AppBuilder'));
if (AppBuilder <> nil) then begin
TabControl := TTabControl(AppBuilder.FindComponent('TabControl'));
if (TabControl <> nil) then begin
TabControl.MultiLine := MultiLine;
if MultiLine then
TabControl.OnResize := MultiLinePalette.ResizeComponentPalette
else
TabControl.OnResize := nil;
end;
end;
end; {SetMultiLineComponentPalette}
initialization
MultiLinePalette := TMultiLinePalette.Create;
SetMultiLineComponentPalette(true);
finalization
SetMultiLineComponentPalette(false);
MultiLinePalette.Free;
end.

 

2:打开Delphi 7,新建一个Package,Add刚刚保存的MultiLinePaletteExpert.pas文件,编译、安装。想卸载该Package,在Delphi菜单项选择Component/Install Pacgage,找到我们的bplremove它就可以了,简单吧!

3:最后打开你的Delphi7 ,Component Palette 是不是变多行了?

分享到:
评论

相关推荐

    表格控件Vcl TopGrid.v3.01

    If you do not select automatic installation of the components, or if a version of the TopGrid is already installed on the Delphi Component Palette, the TopGrid components will need to be installed ...

    Raize控件 delphi版本

    Raize控件 delphi版本 ... Restart RAD Studio and you will see the following pages on the component palette: Raize Panels Raize Edits Raize Lists Raize Buttons Raize Display Raize Shell Raize Widgets

    Raize Components Full Source 6.2.2 For Delphi 10.2 Tokyo

    Unfortunately, when you restart the IDE, the component palette pages for the newly installed components will appear at the end of the component palette. If you would like to move the Raize pages to ...

    RC6.2.3forD10.3

    Unfortunately, when you restart the IDE, the component palette pages for the newly installed components will appear at the end of the component palette. If you would like to move the Raize pages to ...

    Raize Component

    WELCOME TO RAIZE ... Restart RAD Studio and you will see the following pages on the component palette: Raize Panels Raize Edits Raize Lists Raize Buttons Raize Display Raize Shell Raize Widgets

    01_Raize_v4_11.rar

    the IDE, the component palette pages for Raize Components will appear at the end of the component palette. If you would like to move the Raize pages to the front of the palette, there is an a ...

    Raize Components 6.2.3 for Delphi 10.3 Rio(Full Source).zip

    COMPLETING THE ... Restart RAD Studio and you will see the following pages on the component palette: Raize Panels Raize Edits Raize Lists Raize Buttons Raize Display Raize Shell Raize Widgets

    TPerlRegEx〖D7~XE5〗

    The original TPerlRegEx was developed when Borland's goal was to have a component for everything on the component palette. If you want to migrate from an older version of TPerlRegEx to the latest ...

    KONOPKA SIGNATURE VCL CONTROLS VERSION 6 FOR RAD10.2.1

    Unfortunately, when you restart the IDE, the component palette pages for the newly installed components will appear at the end of the component palette. If you would like to move the Raize pages to ...

    调整位图调色板

    DELPHI 学习 通过调整位图的调色板来改变位图效果

    最新Ehlib 5.0.13(含完整Delphi、C++builder源代码,完全支持delphi 2010正式版)

    to put any control from component palette on this panel. At run time, panel is hidden and user can open it by pressing on a '+' sign which is shown at the begining of every row. + Grid can ...

    4个delphi压缩包分割控件大全下载后合并为一个压缩包即可

    选Component/configure Palette… 有pages和components两个区域 双击components区域,选中要删除得控件,下面有得Delete按钮 但系统提供的控件只能Hide,不能delete。 打开控件所在的包文件(*.dpk),从中删除控件...

    ICS delphixe10源码版

    ICS - Internet Component Suite - V8 - Delphi 7 to RAD Studio 10 Seattle ======================================================================= (Aka FPIETTE's Components) Revised: March 3, 2016 ...

    Delphi 正则表达式 控件与demo

    1、先把解压的 TRegEx 文件夹放一个合适的地方, 我放在了 Delphi 的 Imports 目录中. 2、目前最新 For Win32 的版本是对 Delphi 2006 的, 2007 也能用. 打开 PerlRegExD2006.dpk, 提示缺少资源文件, 没关系; 在...

    material-design-color-palette, 用于显示Google材质设计调色板的草图应用程序插件.zip

    material-design-color-palette, 用于显示Google材质设计调色板的草图应用程序插件 用于显示Google材质设计调色板的草图应用程序插件。演示 命令行快捷方式操作键色调Ctrl Shift H值Ctrl Shift V样本安装 你可以在...

    明基Palette Master校正显示器软件-Palette Master Ultimate for Windows

    明基Palette Master校正显示器 明基Palette Master支持硬件自动校准,简化校正并确实地产生正确的色彩结果。 Palette Master 可以用来校正显示器的色彩引擎,并完全支支持 X-Rite 色度计/分光仪。 除了可在短时间内...

    4个delphi压缩包分割控件大全下载后合并为一个压缩包即可-part2

    选Component/configure Palette… 有pages和components两个区域 双击components区域,选中要删除得控件,下面有得Delete按钮 但系统提供的控件只能Hide,不能delete。 打开控件所在的包文件(*.dpk),从中删除控件...

    像Delphi IDE动态加载和动态注册包

    请问一下我想,針對handel.ini中的分類palette 及包的记录knownpackges, 像Delphi IDE一样运行时动态加载和动态注册自动填knownpackges中所控件实现加载上 [KnownPackages]包的记录的格式 所有的包翻譯0=D:\Delphi...

    palette的jar包

    palette的jar包,放在libs目录里面,build path就可以使用了

    AutoUpgrader.Pro.v4.6.4 自動更新元件

    Unzip files from "Delphi2" directory to your "Delphi 2\Lib" directory. 2. Start Delphi 2 IDE. 3. Select "Component \ Install..." menu item. 4. Press "Add" button and select "_AUReg.pas" file. 5. ...

Global site tag (gtag.js) - Google Analytics