> Basically I just want to put some copy-able text onto the
> window. Maybe I have overlooked something.
Well, yes you did *grin*
If you have the documentation handy, you'll see
>wxTextCtrl
>A text control allows text to be displayed and edited. It may be single line or multi-line.
>
>Derived from
>
>streambuf
>wxControl
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>wxWindow
>wxEvtHandler
>wxObject
since a wxTextCtrl is also a wxWindow, just pass the
wxSIMPLE_BORDER flag as part of the "style" argument,
and see if that does anything for you.
A lot of the other wxWindow flags should work.
my $TEXT = new Wx::TextCtrl(
$Panel, -1, "foo", [-1,-1],[-1,-1],
wxSIMPLE_BORDER
);
The only problem with this, is that the textbox will outlined with a black border of 1 px.
I don't think there is anything you can do to change it.
I tried $TEXT->Clear, but that function is overridden in Wx::TextCtrl,
and $TEXT->SUPER::Clear(); doesn't work.
SUPER::Clear probably doesn't work because there is some binding/inheritance
issues between perl and XS. I figure Mattia has to do a whole lotta work to get that to work (if
it's possible at all, which i dunno)
__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
|