02-14-2007, 02:26 PM
Hi,
How can I set the text color on a tree view ?
See Attached Image.
How can I set the text color on a tree view ?
See Attached Image.
Text Color - SysTreeView32
|
02-14-2007, 04:50 PM
Google for "TVM_SETTEXTCOLOR".
02-15-2007, 08:18 AM
This works too !
One followup question....Is there a way to define font/color/style for each line of a treeview ?? Thx in advance
02-15-2007, 08:35 AM
Oh...and also...
How do I define TVM_SETBKCOLOR value (4381&)?
02-15-2007, 09:35 AM
Step1. Check Options -> Files -> Use optional reference files.
Step2. In editor type TVM_SETBKCOLOR, press F2 or Ctrl+Click, and copy/paste the definition. If you have QM 2.2.0, you don't need to define it. Or you can do Step2. In both cases you can use it without definition by typing "WINAPI." before: WINAPI.TVM_SETBKCOLOR
02-15-2007, 10:55 AM
Yup...got it...
Any clues on my previous question....different text attributes on different lines of tree view ?
02-15-2007, 11:02 AM
02-15-2007, 01:40 PM
Yes...its working...i have a custom dialog
Since, data is loaded dynamically, how do i force a refresh on the tree to reflect the colors... I modified DEX_TvCustomDraw as follows : /DEX_Main
02-15-2007, 02:03 PM
another question related to this...
How do I change the "Selection" row text colors ? Tried a few combinations...not working :-(
02-15-2007, 02:16 PM
To repaint a control, can be used RedrawWindow. Example:
RedrawWindow(id(4 hDlg) 0 0 RDW_INVALIDATE) Not sure if it is possible to change selected item colors. Unsuccessfully tried in the past.
02-15-2007, 02:57 PM
Thx for all the help, Gi
07-13-2018, 11:26 AM
With treeview: is there a way to set the colors of folders and subfolders via regex of the folder names?
|
« Next Oldest | Next Newest »
|