Re: (no subject)
Mannequin wrote:
>
> Along with my last question (repost below), I am in need of some examples of
> how to
> use the Windows clipboard with wxEuphoria. (I'll deal with how to do it in
> Linux later.)
> I've done some searching through the EUforum, and have come across some posts,
> but
> I'm not too sure that they are still relevant considering the changes that
> have been
> made since wxEuphoria 0.5.0:
>
You should be able to use set_clip_text() and get_clip_text() under windows.
The documentation doesn't really say anything useful, but you basically pass
a string to set_clip_text() and a string is returned from get_clip_text().
> ==> START REPOST <==
> > As a learning experience, I'm working on a text editor that's loosely based
> > on Windows'
> > Notepad using wxEuphoria. I was wondering what would be the best method of
> > implementing
> > a word-wrap toggle option.
> >
> > Here's what I have used to create the text area:
> >
> > text_area = create (wxTextCtrl, {panel, -1, "", -1, -1, -1, -1,
> > wxTE_MULTILINE + wxTE_DONTWRAP}),
> >
> > Using that, word wrap is automatically turned OFF when the program is
> > started. Is there
> > an easy way to turn it on via wxEuphoria when the user wants it on, or am I
> > going to
> > have to find a way to do it myself?
> ==> END REPOST <==
I don't think there is a way to do this after the control has been created.
You can try wxTextCtrl::SetWindowStyleFlag, but it doesn't work for me. I
suspect that this is one of those styles that can't be changed after the
control has been created. This limitation is probably imposed by windows.
Matt Lewis
|
Not Categorized, Please Help
|
|