comboBox控件有设置下拉框宽度的属性吗
delphi吧
全部回复
仅看楼主
level 5
如题,感谢赐教。
2015年09月07日 02点09分 1
level 5
不能沉
2015年09月07日 02点09分 2
level 5
真心求教
2015年09月07日 02点09分 3
level 5
没有这个属性
2015年09月07日 02点09分 4
level 7
有啊
2015年09月08日 22点09分 5
哪个属性呢,求赐教
2015年09月09日 03点09分
level 1
重绘
2015年09月09日 03点09分 6
该控件吗
2015年09月09日 03点09分
回复
��������
:改
2015年09月09日 03点09分
level 1
说错了,左右边距变窄
var
AColor:TColor;
begin
cbxDoctorType.Canvas.Brush.Color := clWhite;
cbxDoctorType.Canvas.FillRect(Rect);
case index of
0..2: AColor := clBlue;
3..5: AColor := clRed;
else AColor := clBlack;
end;
cbxDoctorType.Canvas.Font.Color := AColor;
cbxDoctorType.Canvas.TextOut(Rect.Left +1 , Rect.Top + 1 ,cbxDoctorType.Items.Strings[index]);
参照这个改。
2015年09月09日 04点09分 8
谢谢
2015年09月09日 04点09分
1