|
Post by Brandon Parker on Feb 23, 2019 18:33:45 GMT -5
Carl, The contact_lb5.bas file is missing the close window handler for the window.
'Missing from file [quit]
close #main
end
The ListView object is behaving oddly. Sometimes when doubl-clicking the ListView object, even on a valid item, will return 0 for the item number and an empty string for the selection string.
I added the three lines shown below to test for the 0/ Empty String return.
#main.contacts "selectionindex? index"
print index
print selection$ if selection$ = "" then [inputLoop][/code}
{:0)
Brandon Parker
|
|
|
Post by Carl Gundel on Feb 24, 2019 14:55:27 GMT -5
The issue with the listbox is that clicking to select is selecting, and then deselecting on the second click. By default it should work the way that LB4 does.
|
|
|
Post by Chris Iverson on Feb 24, 2019 15:45:36 GMT -5
Maybe the windowing toolkit treats listboxes differently than Win32 does?
IIRC, clicking an item again in a win32 listbox doesn't result in clearing the selection. Maybe it does in the toolkit's windowing system?
|
|
|
Post by Brandon Parker on Feb 24, 2019 16:25:45 GMT -5
I tested it in LB4.5 and it does not cause the same issue.
{:0)
Brandon Parker
|
|
|
Post by Carl Gundel on Feb 24, 2019 19:56:18 GMT -5
Maybe the windowing toolkit treats listboxes differently than Win32 does? IIRC, clicking an item again in a win32 listbox doesn't result in clearing the selection. Maybe it does in the toolkit's windowing system? Yeah, this is how the listbox behaves in the Smalltalk I'm using, but this should be easy to fix.
|
|