以下是引用csyx在2023-4-23 23:10:34的发言:
鼠标形状就简单,把 text1 的 MousePointer 属性改成非0,例如:15 代表手指
鼠标形状就简单,把 text1 的 MousePointer 属性改成非0,例如:15 代表手指
默认就是:MousePointer 属性 0 ,我说这个没法实现嘛
2023-04-23 22:28
2023-04-24 08:59
2023-04-24 09:30
[此贴子已经被作者于2023-4-24 13:00编辑过]
2023-04-24 12:59
程序代码:
Local oCol as Column
For each m.oCol in This.Columns
If m.oCol.ColumnOrder == m.nColIndex
Exit
EndIf
EndFor
If Upper(m.oCol.Name) == 'COLUMN2' && 当前列是绑定 f2 字段的框框列
*-- 自定义类 BoxText 设置的是透明背景,要显示背景色,必须改成不透明
m.oCol.Box1.BackStyle = 1
m.oCol.Box1.BackColor = Rgb(255,0,0)
m.oCol.Box1.Text1.ForeColor = Rgb(0,0,0)
m.oCol.Box1.Text1.FontBold = .t.
*-- 显示背景色后, 原来的绿色的粗边框就不协调了, 边框厚度调整为 0
m.oCol.Box1.BorderWidth = 0
EndIf
[此贴子已经被作者于2023-4-25 11:21编辑过]
2023-04-25 10:55
程序代码:
Local nRowHeight, nColWidth, nMagin, nTop, nWidth
m.nRowHeight = This.Parent.Parent.RowHeight
m.nColWidth = This.Parent.Width
m.nMagin = This.BorderWidth
With This.Text1 as TextBox
m.nTop = (m.nRowHeight - 2*m.nMagin - .Height) / 2
m.nTop = Max(m.nMagin, m.nTop)
m.nWidth = Max(0, m.nColWidth - 2*m.nMagin)
.Move(m.nMagin+1, m.nTop+1, m.nWidth-1)
EndWith
This.Move(0, 0, m.nColWidth, m.nRowHeight)
Return This.BackStyle
程序代码:
Local oCol as Column
m.oCol = This.Parent
With This.Text1 as TextBox
.ControlSource = m.oCol.ControlSource
.Format = m.oCol.Format
.InputMask = m.oCol.InputMask
.Alignment = m.oCol.Alignment
.FontName = m.oCol.FontName
.FontSize = m.oCol.FontSize
.FontBold = m.oCol.FontBold
.Height = Fontmetric(1, .FontName, .FontSize, Iif(.FontBold, 'B', 'N'))&&是不是这里
EndWith
This.BackColor = 0xffffff
[此贴子已经被作者于2023-4-25 11:45编辑过]
2023-04-25 11:40
2023-04-25 11:45
2023-04-25 12:42


2023-04-25 13:20

[此贴子已经被作者于2023-4-25 17:52编辑过]
2023-04-25 17:51