菜鸟高分紧急求救------如何设置ComboBox右边下拉条的宽度? 我想把ComboBox右边的下拉条的宽度增大一些。该如何设置呢?还有我想把RichTextEdit右侧的滚动条的宽度设置的大一些。又该如何设置呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 1、在tcombobox类下增加一个属性DropDownWidth2、或者从tcombobox派生一个类,增加一个属性DropDownWidthTComboBox = class(TCustomComboBox)published property DropDownWidth: Integer read FDropDownWidth write SetDropDownWidth default 0; protected FDropDownWidth: Integer; procedure SetDropDownWidth( Value: Integer ); virtual;end;procedure Tcombobox.SetDropDownWidth( Value: Integer );begin if FDropDownWidth <> Value then begin FDropDownWidth := Value; SendMessage( Handle, cb_SetDroppedWidth, FDropDownWidth, 0 ); end;end; fastreport 打印页面本身乱码 请教:如何将ADOQuery查询出来的结果双击后进行修改,修改后可以更新到原数据表中(原表未设主键)? delphi=>c#求助。 500高分求CNGP协议及用法(分5次给)-在线等 修改多条记录的问题 请问以下有什么好的实现方法,我有好多查询都一样,但是设及参数太多,有不知道怎么定义过程或函 作妨式的软件公司还有活路吗? 请教高手关于如何把客户端一个目录下的所有文件上传到服务器上? 不晓得是否有什么函数或者方法能取得代码在编译器中的具体位置(行)! 鼠标移入移出事件怎么写? 请教无边框窗口拖放 有没有人能告诉我什么是3层/多层体系架构?
2、或者从tcombobox派生一个类,增加一个属性DropDownWidthTComboBox = class(TCustomComboBox)
published
property DropDownWidth: Integer read FDropDownWidth write SetDropDownWidth default 0;
protected
FDropDownWidth: Integer;
procedure SetDropDownWidth( Value: Integer ); virtual;
end;procedure Tcombobox.SetDropDownWidth( Value: Integer );
begin
if FDropDownWidth <> Value then
begin
FDropDownWidth := Value;
SendMessage( Handle, cb_SetDroppedWidth, FDropDownWidth, 0 );
end;
end;