DELPHI combobox 文字水平居中
来源:互联网 发布:windows体验指数5.9 编辑:程序博客网 时间:2024/06/05 10:48
这个是COMBOBOX
procedure TForm1.ComboBox1DrawItem(Control: TWinControl; Index: Integer; Rect: TRect; State: TOwnerDrawState);var ItemString: string;begin TComboBox(Control).Canvas.FillRect(Rect); ItemString := TComboBox(Control).Items.Strings[Index]; DrawText(TComboBox(Control).Canvas.Handle, PChar(ItemString), - 1, Rect, DT_CENTER);end;
这个是CXCOMBOBOX
procedure TFormLogin.cxcbb1PropertiesDrawItem(AControl: TcxCustomComboBox; ACanvas: TcxCanvas; AIndex: Integer; const ARect: TRect; AState: TOwnerDrawState);var ItemString: string;begin TcxComboBox(AControl).Canvas.FillRect(ARect); ItemString := TcxComboBox(AControl).Properties.Items.Strings[AIndex]; cxDrawText(ACanvas, PChar(ItemString), ARect, DT_CENTER, - 1, ra0);end;
- DELPHI combobox 文字水平居中
- 文字图片水平居中对齐
- div文字水平垂直居中
- div 文字垂直居中 水平居中 div css 文字垂直居中 水平居中
- DIV中文字水平、垂直居中
- div中的文字垂直水平居中
- Android TextPaint 写文字 水平、垂直居中
- HTML编程之实现文字水平居中
- UITextField的提示文字水平居中
- Android Canvas 文字水平垂直居中
- css div 文字水平上下居中
- css如何让文字水平垂直居中
- div+css文字水平垂直居中
- CSS文字图片div元素居中方法之水平居中
- css中让文字水平居中和竖直居中
- DIV CSS字体居中实现DIV文字水平左右居中
- div 中的文字水平居中和垂直居中
- delphi中Label文字居中之方法
- A summery of compile android 4.0 question
- 申请基金-撰写体会
- jsp study 3 变量与与数据
- java参数传递机制
- Box2D源码学习(2)-b2BlockAllocator块内存分配
- DELPHI combobox 文字水平居中
- 解决 ScrollView和ListView连用时的滑动冲突和显示不正常
- 虚析构函数? vptr? 指针偏移?多态数组? delete 基类指针 内存泄漏?崩溃?
- 利用phpmyadmin修改mysql的root密码
- 343
- 2013年锦绣中华民俗村迷情聊斋夜
- 浅谈 non-blocking I/O Multiplexing + poll/epoll 的正确使用
- KVC的基础
- UVa 11137 Ingenuous Cubrency (DP)