TOPIC: List view control ERROR in Query View
#877
List view control ERROR in Query View 3 Years, 3 Months ago
I believe that Query View window uses standard List View control. I've noticed that when I stopped cursor for a couple of seconds above the bottom part of Query View (where number of rows situated), when there are no info in them (i.e. rows are empty) annoying error window appears. I think this error raises trying to show tooltip. See file attached.

Post edited by: ChVA, at: 2007/05/05 15:56

Post edited by: ChVA, at: 2007/05/05 16:01

Post edited by: ChVA, at: 2007/05/05 17:00
 
 
#878
Re:List view control ERROR in Schema View 3 Years, 3 Months ago
See image attached
 
 
#881
Re:List view control ERROR in Schema View 3 Years, 3 Months ago
Sorry, yes that is a bug. Here are the fixes for ListViewControl:

Code:


    MOUSEHOVER(lParam)
        {
        if GetActiveWindow() isnt .Window.Hwnd
            return 0
        x = LOSWORD(lParam)
        y = HISWORD(lParam)
        ht = .SubItemHitTest(x, y)
        if ht.iItem isnt -1 and ht.iSubItem isnt -1
            {
            if .tips is true
                .Send("ListView_Tip", ht.iItem, ht.iSubItem)
            else if .tips is 'auto'
                .autoTip(ht.iItem, ht.iSubItem)
            }
        return 0
        }

    On_Inspect()
        {
        .with_value_under_mouse()
            { |value|
            Inspect(value)
            }
        }
    with_value_under_mouse(block)
        {
        if .rx is false // e.g. On_Copy from CTRL+C
            return
        ht = .SubItemHitTest(.rx, .ry)
        if ht.iItem is -1 or ht.iSubItem is -1
            {
            Beep()
            return
            }
        data = .GetRecord(ht.iItem)
        value = data[.cols[ht.iSubItem]]
        try
            block(value)
        catch
            Beep()
        }

 
 
andrew
 
#882
Re:List view control ERROR in Schema View 3 Years, 3 Months ago
Thank you, that works.