在ListBox的Item左边从上到下显示序号1,2,3....N
来源:互联网 发布:c语言getch函数 编辑:程序博客网 时间:2024/05/23 01:53
在ListBox的Item左边从上到下显示序号1,2,3....N
procedure TForm1.ListBox1DrawItem(Control: TWinControl; Index: Integer;
Rect: TRect; State: TOwnerDrawState);
begin
with ListBox1.Canvas do
begin
FillRect(Rect);
TextOut(Rect.Left+1, Rect.Top+1,inttostr(Index+1)+ListBox1.Items[Index]);
end;
end;
[说明]需要把ListBox的Style属性设为lbOwnerDrawFixed
- 在ListBox的Item左边从上到下显示序号1,2,3....N
- delphi 如何让tcxGrid左边显示序号
- WPF中确保显示ListBox选中的Item
- WPF listBox 显示每个Item的index值
- C#实现item自定义颜色的ListBox,显示日志
- 让superfish的菜单在左边显示
- ListBox绑定数据,从左边移到右边的ListBox
- WPF重写ListBox的item
- CComboBox控件的下拉列表框,用鼠标在该ListBox上滑动的时候显示出当前具有focus的item项的索引
- CComboBox控件的下拉列表框,用鼠标在该ListBox上滑动的时候显示出当前具有focus的item项的索引
- 在左边显示滚动条
- notepad++在左边显示explorer
- 在Ehlib中显示序号
- MFC:在状态栏最左边显示鼠标当前的坐标
- C# DataGridView 在最左边的列显示行号
- MFC:在状态栏最左边显示鼠标当前的坐标
- Android中PopupWindow显示在控件的左边
- 在一个从左到右从上到下都是递增的m*n的矩阵中找一个数x
- web2.0?
- 我决定学JAVA
- 求主怜爱显彰
- 网站首页head区代码规范
- Frequently Asked Questions for System.Web.Mail
- 在ListBox的Item左边从上到下显示序号1,2,3....N
- 搬座位了(2005年8月25日 周四)
- C#学习笔记一--C#中的参数传递
- 按DBGRID1的Title排序
- Eclipse零起步系列讲座 (四~六)(转贴)
- Delphi中票据凭证的精确打印 (收藏)
- 20050825日志
- AOP:通过面向方面编程提高代码的封装和复用性
- 对RSS技术的认识