Announcement

Collapse
No announcement yet.

ListBox Column?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Imagine Programming
    replied
    Ah Invalid Host Object is the error message I push when my IsWindow() api call fails on the
    windowhandle I extract from ListBox.GetProperties(xx).WindowHandle, I'll test if it fails when
    the window isn't on top this afternoon. This is weird behaviour.

    There is no ListIcon.Destroy, however, suggestion taken!

    Leave a comment:


  • .74
    replied
    Uhm.. the script is in the first page. I just tried using the option 'On Top' and it worked pretty good.

    Also: 'Invalid Host Object'

    That's the error I get with Application.GetLastError.

    PS: Is there a ListIcon.Destroy function?
    Last edited by .74; 11-30-2010, 09:47 AM.

    Leave a comment:


  • Imagine Programming
    replied
    Originally posted by .74 View Post
    Annnd I have another problem :<

    Sometimes the ListIcon isn't getting created in the ListBox object OnShow event. So I sometimes have to close and re-open the program for like 3 times to get ListIcon created.

    Any idea why this is happening?
    Hmm... Interesting, would you be so kind to check if the window isn't on top at that time? If another
    window is on top of the window containing the listicon, I might know what's causing it.

    I'm not sure how to solve it yet though I've noticed this once as well, and the window was at a
    lower Z position then, I'm wondering if AMS returns a windowhandle to the object (listbox) if the window
    isn't on top.

    Also, use Application.GetLastError and _tblErrorMessages to see what ListIcon reports, so I can trace
    where the problem is occurring.

    Thanks

    Leave a comment:


  • .74
    replied
    Annnd I have another problem :<

    Sometimes the ListIcon isn't getting created in the ListBox object OnShow event. So I sometimes have to close and re-open the program for like 3 times to get ListIcon created.

    Any idea why this is happening?

    Leave a comment:


  • Imagine Programming
    replied
    np Riz did a great job on the original plug and it was a joy continuing it!

    Leave a comment:


  • .74
    replied
    After looking at the example, I figured it out

    Thanks again for such a nice plugin

    Leave a comment:


  • .74
    replied
    Aha. I see. But how do you click a full row? Because I can only click the first cell in each row. I want for example to click the 3d cell in the 1st row and then the whole row should be selected.

    Leave a comment:


  • Imagine Programming
    replied
    Originally posted by .74 View Post
    Ah thank you very much

    Great plugin by the way.

    EDIT: I have a question tho, is there any way to click the cells in other columns, or you can click the cells in the first column only?
    It's not a Grid control, so it only allows you to get clicks on full rows. There are ways of manipulating this, however
    I've never gotten it stable because it's not something that's natively supported in the LV control

    Leave a comment:


  • .74
    replied
    Ah thank you very much

    Great plugin by the way.

    EDIT: I have a question tho, is there any way to click the cells in other columns, or you can click the cells in the first column only?
    Last edited by .74; 11-29-2010, 06:57 AM.

    Leave a comment:


  • Imagine Programming
    replied
    Indeed, because ListIcon completely relies on the user to handle the events, and the
    user only has to define the functions for that, so it exists and the plugin can call them.

    The Events section of the manual contains a complete template of the event functions.
    That's the code below here, which is the standard code for events:
    Code:
    if(not ListIconEvent)then
    ListIconEvent = {}
    end
    function ListIconEvent.OnHeaderClick(ObjectName, Column)
    
    end
    function ListIconEvent.OnChecked(ObjectName, Row, boolChecked)
    
    end
    function ListIconEvent.OnRightClick(ObjectName, Row)
    
    end
    function ListIconEvent.OnSelect(ObjectName, Row)
    
    end
    function ListIconEvent.OnKillFocus(ObjectName)
    
    end
    function ListIconEvent.OnDoubleRightClick(ObjectName, Row)
    
    end
    function ListIconEvent.OnKey(ObjectName, e_Key)
    
    end
    function ListIconEvent.OnDoubleClick(ObjectName, Row)
    
    end
    function ListIconEvent.OnSetFocus(ObjectName)
    
    end
    function ListIconEvent.OnReturn(ObjectName, Row)
    
    end
    function ListIconEvent.OnHeaderRightClick(ObjectName, Column)
    
    end
    function ListIconEvent.OnColorRequest(Object, Row, Column)
        return {Back = -1, Text = -1};
    end

    Leave a comment:


  • Cybergraph
    replied
    The ListIcon object works great, but you have to follow with attention the example included in the plugin.

    the applications closes without even a warning.
    This error normally happens if you don't insert the event functions (listed in the example) in the Preload section of the page that contains the ListBox.

    Leave a comment:


  • .74
    replied
    Thanks about this but I'm having problems figuring it out. I tried adding a column but nothing is appearing. :/

    EDIT: I managed to add the columns but when I click the object, the applications closes without even a warning. :/
    Last edited by .74; 11-28-2010, 01:47 PM.

    Leave a comment:


  • O'Callaghan
    replied
    Hi,

    Sim is right, in fact this is a plugin originally created by RizlaUK and last edited by IP, please find down below the link to download it.


    http://www.indigorose.com/forums/thr...-Action-Plugin

    Leave a comment:


  • sim
    replied
    As that's not the default list box you are looking at yes its a added plugin by Riz and now IP its called List Icon, I think Shadiku's is little different then the default one, I think.

    You can make your down columns for it I used it for a good few apps in the past its a nice plugin.

    Leave a comment:


  • .74
    started a topic ListBox Column?

    ListBox Column?

    Hello guys,

    I wanted to ask you how can you add more columns in a ListBox object?

    This is what I saw in a project by Shadiku:


    As you can see, there are several of columns, ID, Tags, Dimensions, Filesize and Rating.

    How can you do that? Is it a plugin?

    Thanks,
    Leka74
Working...
X