I would suspect you would have to trap the messages to the control and then handle them as required.
See Mlgrid control for another option.
Is it possible to make some items in a listbox nonselectable? Almost like a Subheading (Subtitle), allowing the user to select entries under the nonselectable item.
The LBS_NOSEL equate makes the entire listbox nonselectable. I would like to make certain items this way but not the others.
Mark
I would suspect you would have to trap the messages to the control and then handle them as required.
See Mlgrid control for another option.
Home Desktop : Windows 7 - Intel Pentium (D) - 3.0 Ghz - 2GB - Geforce 6800GS
Home Laptop : WinXP Pro SP3 - Intel Centrino Duo - 1.73 Ghz - 2 GB - Intel GMA 950
Home Laptop : Windows 10 - Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz, 2401 Mhz, 2 Core(s), 4 Logical Processor(s) - 4 GB - Intel HD 4400
Work Desktop : Windows 10 - Intel I7 - 4 Ghz - 8GB - Quadro Fx 370
Mark,
another option could be treeview, if you need some kind of structuration for your BFR project -> some nodes "chapters", and their subnodes the verses.
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
Treeview turned out to be a very nice option. Thank you for suggesting it.Originally Posted by Petr Schreiber
Thank you for suggesting this. It led me to come up with the following:Originally Posted by Michael Clease
[code=thinBasic]
SELECT CASE nmTV.hdr.Code
CASE %TVN_SELCHANGED
hTreeItem = TreeView_GetSelect(CBHNDL, %ID_MenuTREE)
Select Case hTreeItem
Case hRoot
'This next line clears the selection on the tree view.
TreeView_Select CBHNDL, %ID_MenuTREE, 0
End Select
[/code]
I suppose this could be done with ListBox, though I didn't try. I liked the idea of using TreeView instead.
I say thanks to both of you.
Mark
EDIT: By the way, Petr, I like your word "structuration."
Bookmarks