Finally it came down to how I was adding the column to the list control:

This worked:

            listCtrl:InsertColumn(0, "Test")

which I picked from bindings

compared to what I was doing before was:

        local col = wx.wxListItem()
col:SetId(0)
listCtrl:InsertColumn(0,col)

I don't understand though why though 1 overloaded InserColumn works only in
Windows and not on Linux.

Thanks for leading me in the right direction.

Regards,
Milind

On Tue, Feb 21, 2012 at 1:09 PM, Milind Gupta <milind.gu...@gmail.com>wrote:

> I tried bindings.wx.lua and that shows the listing fine on the main
> window. I then changed listCtrl in my example from wxListCtrl to wxListView
> and I still did not see anything so I need to look into the differences
> between bindings and the minimal listing I sent earlier. If you have any
> suggestions do let me know.
>
> Thanks,
> Milind
>
>
> On Tue, Feb 21, 2012 at 12:41 PM, John Labenski <jlaben...@gmail.com>wrote:
>
>> On Tue, Feb 21, 2012 at 2:26 PM, Milind Gupta <milind.gu...@gmail.com>
>> wrote:
>> > Hi John,
>> >           Thanks for the reply. I created a minimal example (attached
>> and
>> > pasted). This example works fine in windows but doesn't show anything in
>> > Linux. Also another thing I noticed in my original program is that when
>> the
>> > GUI is shown the list Controls in which I have added a lot of elements
>> show
>> > scroll bars also! But no elements are visible.
>>
>> This sounds odd, something very strange is going on. Can you select
>> these hidden items? Is it a matter of having the text the same color
>> as the background? Maybe as a theme setting?
>>
>> When you run the samples/bindings.wx.lua program does it work? You
>> should see a wxListControl (actually a wxListView, but they're the
>> same, the wxListView is derived and has a couple extra methods added)
>> with about 20 items and if you click them you get a new list.
>>
>> I don't have access to a Linux machine right now, but I know that the
>> bindings.wx.lua sample works in RedHat 6, Mandriva 2011, and Fedora 13
>> and 15. I see that it adds items exactly as you do as well.
>>
>> Regards,
>>   John
>>
>>
>> ------------------------------------------------------------------------------
>> Keep Your Developer Skills Current with LearnDevNow!
>> The most comprehensive online learning library for Microsoft developers
>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
>> Metro Style Apps, more. Free future releases when you subscribe now!
>> http://p.sf.net/sfu/learndevnow-d2d
>> _______________________________________________
>> wxlua-users mailing list
>> wxlua-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wxlua-users
>>
>
>
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to