!- overwrite column behavior
CLEAR(extProps)
extProps.nColumn = 2 !- name column
extProps.bWordWrap = TRUE
SELF.SetExtListProps(extProps)
CLEAR(extProps)
extProps.nColumn = 3 !- address column
extProps.bWordWrap = TRUE
extProps.nMinFontSize = 6 !- min reduced font size
SELF.SetExtListProps(extProps)
CLEAR(extProps)
extProps.nColumn = 4 !- post column
extProps.bWordWrap = TRUE
SELF.SetExtListProps(extProps)
For writing code that specifies List Column Numbers using Equates works better if the List changes to add, move or delete columns.
For APPs there are templates like this post of mine, and it links to Rick’s original, that make it easy. For Hand Code use ITEMIZE.
I took Rick’s template for Generating Column Equates and added Equates for LIST Groups. Everything Rick said applies to Groups also.
Instead of using hard-coded numeric constants for column numbers in code for manipulating your list control columns, it is better to use an equate for the column number. Hard-coded column numbers can become incorrect when new columns are added or columns deleted or reordered in the list format. Using the use equates means your code won’t need to be updated when t…
1 Like
In new update:
New list property “hot tracking” added: visual effects while an end user hovers over a row.
Simplified property declarations: new methods like EnableWordWrap, EnableUnicode, EnableHotRow.
Bug fixes.
A new video on GitHub page demonstrates hot tracking property behavior.
Tips and tricks:how to separate header from data?
lstEmployees.AfterDrawList PROCEDURE(TRect pListRect)
hdrHeight LONG, AUTO
g TGdiPlusGraphics
pen TGdiPlusPen
CODE
!- draw a line between a header and 1st row
hdrHeight = SELF.HeaderHeight()
pen.CreatePen(GdipMakeARGB(COLOR:Red))
g.FromHDC(SELF.dc.GetHandle())
g.DrawLine(pen, pListRect.left, hdrHeight-1, pListRect.right, hdrHeight-1)
2 Likes
jkuijt
August 10, 2025, 5:02pm
24
Nice Mike! Looks very clear with a nice line under the header.
Best regards
Jeffrey
Another useless feature that could be implemented: blurred sensitive data.
Normal appearance:
Blurred sensitive data:
2 Likes