[wxPython] Fw: [wx-users] wxListControl Styles

Hi,
I have now downloaded and recompiled everything:
glib-1.2.8
gtk+-1.2,8
wxGTK-2.2.5
wxPython-2.2.5
but the problem remains :frowning:

Is anyone out there changing list styles successfully ?

路路路

----- Original Message -----
From: "Roger Wenham" <roger.wenham@gmx.net>
To: <wxwindows-users@lists.sourceforge.net>
Sent: Saturday, February 10, 2001 8:39 AM
Subject: [wx-users] wxListControl Styles

Hi, I have already sent this to the wxPython list but got no response,
can anyone here help me with this?

I'm having a bit of difficulty setting the style of a wxListCtrl

(wxPython,

Linux platform).

When I use
    SetSingleStyle(wxLC_REPORT, 1)
or
    SetWindowStyleFlag(wxLC_REPORT)

I get a segmentation fault the next time I load data into the control.

Note

that
wxLC_SMALL_ICON and wxLC_LIST work just fine.

I have tried clearing the control first, but that does not help. Can

anyone

help me?

One other question: when I change the style to ICON or LIST, nothing is
displayed.
Refreshing does not help. The only way I can get the data displayed in the
new
style is to clear and reload the data. Is there any way round this?

regards

        Roger

_______________________________________________
wxWindows-users mailing list
wxWindows-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxwindows-users

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

Thanks John,
I am using wxPython, so I'll have to analyse what calls wxPython makes and
compare
with your code to see what I'm doing wrong..

Roger

路路路

----- Original Message -----
From: "John Labenski" <jrl1@Lehigh.EDU>
To: <wxwindows-users@lists.sourceforge.net>
Sent: Tuesday, February 13, 2001 6:20 AM
Subject: Re: Fw: [wx-users] wxListControl Styles

Roger Wenham wrote:
>
> Hi,
> I have now downloaded and recompiled everything:
> glib-1.2.8
> gtk+-1.2,8
> wxGTK-2.2.5
> wxPython-2.2.5
> but the problem remains :frowning:
>
> Is anyone out there changing list styles successfully ?

Yes, I just put one in last night.

wxListCtrl *pointslistctrl = new wxListCtrl( this, ID_POINTS_LISTCTRL,
wxDefaultPosition, wxSize(180,250),
wxLC_REPORT|wxLC_EDIT_LABELS|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );

pointslistctrl->InsertColumn(0, "X Y", wxLIST_FORMAT_LEFT);
pointslistctrl->DeleteAllItems();

then pointslistctrl->InsertItem(i,wxstr);

Now, I only have Items since I'm making a cheesy wxGrid, or in other
words an editable wxListBox (without having to have a separate textctrl
to edit). I wish you could edit all the item columns though...

No problems, wxGTK and wxMSW.

Good Luck,
John Labenski

_______________________________________________
wxWindows-users mailing list
wxWindows-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxwindows-users

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users