Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Formatting QmGrid - row height, Font, Color
#2
Function dialog_qmgrid2
Code:
Copy      Help
,case WM_INITDIALOG
,int hlv=id(3 hDlg)
,__Font- gfont.Create("" 20)
,SendMessage hlv WM_SETFONT gfont 0
,SendMessage hlv LVM_SETTEXTCOLOR 0 0xff0000
,SendMessage hlv LVM_SETTEXTBKCOLOR 0 0xe0ffff
,SendMessage hlv LVM_SETBKCOLOR 0 0xe0ffff

To set different colors for cells, use custom draw. Look in explorer style dialog sample. It is somewhere in forum. DEX_Dialog etc. Look for NM_CUSTOMDRAW in code.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)