Text Layout in two or more columns

Hello,

I'm thinking about a text widget which gives the user the possibility to layout the text in two or more columns, similar to a newspaper.
I like to get some suggestions how to archive this. Should I better subclass richtextctrl or construct a new widget on my own ?

Any hints ?

I also thought about using a listctrl or a grid, but then every paragraph use its own editor component which is what I don't like very much.

regards,
Jürgen

What if the new widget is composed under the hood of two or more wx.TextCtrl set aside with **wx.BORDER_NONE ** added to their style?

···

2007/12/30, Jürgen Kareta < python@kareta.de>:

Hello,

I’m thinking about a text widget which gives the user the possibility to

layout the text in two or more columns, similar to a newspaper.
I like to get some suggestions how to archive this. Should I better
subclass richtextctrl or construct a new widget on my own ?

Any hints ?

I also thought about using a listctrl or a grid, but then every
paragraph use its own editor component which is what I don’t like very much.

regards,
Jürgen


To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org

Raffaello Barella schrieb:

What if the new widget is composed under the hood of two or more wx.TextCtrl set aside with *wx.BORDER_NONE *added to their style?

hmm, played a bit with this solution, but the wx.TextCtrls are multiline and one get a vertical scrollbar for each. If this can be solved in a way that there is only one scrollbar for all which scrolls all, that should be ok.

Jürgen

Jürgen,

···

-----Original Message-----
From: Jürgen Kareta [mailto:python@kareta.de]
Sent: Sunday, December 30, 2007 7:14 AM
To: wxPython-users@lists.wxwidgets.org
Subject: Text Layout in two or more columns

Hello,

I'm thinking about a text widget which gives the user the
possibility to layout the text in two or more columns,
similar to a newspaper.
I like to get some suggestions how to archive this. Should I
better subclass richtextctrl or construct a new widget on my own ?

Any hints ?

I also thought about using a listctrl or a grid, but then
every paragraph use its own editor component which is what I
don't like very much.

regards,
Jürgen

If you know how to create a simple table in HTML, you could also use the
HTMLWindow widget to do this.

Mike