01-30-2008, 06:14 AM
Well...I was able to get my hands on ver 6.01 which has LoadFromArray.
So, I am able to display/edit the grid and capture events now. Just a quick question on the same :
1. Which function of this control will display the column titles...they come up just blank
2. There is a font member function in it. How do I assign a font that I create using the following :
So, I am able to display/edit the grid and capture events now. Just a quick question on the same :
1. Which function of this control will display the column titles...they come up just blank
2. There is a font member function in it. How do I assign a font that I create using the following :
;/
function $font [size] [weight];;weight: 400 is normal
dll gdi32 #GetObject hgdiobj cbBuffer !*lpvObject
def SYSTEM_FONT 13
LOGFONT lf
GetObject(GetStockObject(SYSTEM_FONT) sizeof(LOGFONT) &lf)
lf.lfPitchAndFamily=0
lf.lfWidth=0
if(size) lf.lfHeight=-MulDiv(size GetDeviceCaps(GetDC(0) LOGPIXELSY) 72)
else lf.lfHeight=0
lf.lfWeight=weight
strncpy(&lf.lfFaceName font 31)
ret CreateFontIndirect(&lf)