I have been trying to detect if a listbox row is a row or a folder. I need to identify any Folder rows so i can not allow a user to “double click” thus suppressing a popup box. I must be missing a property to check, but I have been pouring over the LR and can’t seem to find anything else other than Listbox.Expanded which I know is not what I need.
Any advice you listbox gurus? Tonight is a help induced evening for me as it seems Thank you once again!
Note; I know I can mark the row using a cell/row tag but I am wondering if I am missing a built in property? Thanks!
// ONLY LOAD THE POPUP IF THIS IS NOT A FOLDER
If Me.CellTag(Me.ListIndex,1) <> "folder" Then
// LOAD THE POPUP DETAIL WINDOW
TheWindow.thePopUpDetailWindow = New PopUpDetailWindow
// AUTO SIZE THE POPUP DETAIL WINDOW
Dim thisCellContent as String = Me.Cell(me.ListIndex,0) + ": " + Me.Cell(me.ListIndex,1)
TheWindow.thePopUpDetailWindow.stringContent = thisCellContent
TheWindow.thePopUpDetailWindow.PopUpMessageCanvasLabel.Invalidate(False)
end if
YES Thank you Karen!!! That was what I was missing … The “RowIsFolder” property which is much cleaner than using a row/cell tag method. Thank you and Ill try that out in the Beta version. Thanks!
[quote=147350:@Karen Atkocius]You might want to take a look at this thread: https://forum.xojo.com/conversation/post/142177[/quote]
That’s a gated conversation; can the strategy be posted here for us peons? I have a listbox subclass that adds this and other info by wrapping the datas around RowTag and am curious how this other technique works.
I did not mention that directly because it is still beta… Oh well.
In any case already had some of that functionality wrapped nicely in my listbox subclass…
Had not thought about the new stuff with respect to my subclass. Just the presence of the new features won’t hurt it (luckily I called my function IsFolder(row as integer) ! )
But I need to think about if I will need to update it so using the new features won’t brake any of my hierarchical listbox code… I think i know what I may spending next weekend doing…