Hi,
Just to add that if you require different styles applied to different ranges of
text within a text control, now might be a good time to switch to the
Wx::RichTextCtrl interface, which probably wasn't available when you started
out on the project.
Regards
Mark
Keith Brown wrote:
Hi all. I'm writing a wxperl app that uses a text control to print out
information for the user. The program deals with some aspects of the
physics of nuclear spins.
I've been developing the program under Linux for a couple of years
with the intention of moving it over to Windows (and Mac eventually) and
offering it to the general physics community. Just this past week I
moved it over to Windows XP and, using ActivePerl and several modules
from the wxPerl repository at www.wxperl.co.uk, I tried to get it
running. Everything works properly except anything that modifies the
text. I can't seem to change colour or fonts under Windows XP whereas
everything works fine under Linux.
The text control object is defined using Wx::TextCtrl->new and the
text attribute object is defined using Wx::TextAttr->new in the usual
fashion. The textattr object is then used as needed to alter the text.
Works fine under Linux ... doesn't work under Windows.
Any ideas? Is there something that I might have missed?
Dr. Keith Brown
Department of Chemistry/
Saskatchewan Structural Sciences Center
University of Saskatchewan
Saskatoon, Saskatchewan
306-966-1725
http://chem4823.usask.ca/kbrown.html
-----------------------------------------------------------------------
It is impossible to travel faster than light, and certainly not
desirable, as one's hat keeps blowing off.
-- Woody Allen
-----------------------------------------------------------------------