Xojo Conferences
XDCMay2019MiamiUSA

Styled Editfield broken in OS9 and Wn 32? (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: valid unicode string
Next thread: Drag reorder in hierarchical listbox?


Re: Your general text to file problem form a tired user!   -   Jan Erik Moström <
  Styled Editfield broken in OS9 and Wn 32?   -   keatk comcast.net

Styled Editfield broken in OS9 and Wn 32?
Date: 14.08.03 18:25 (Thu, 14 Aug 2003 17:25:23 +0000)
From: keatk comcast.net
I wanted to used an editfield as a quick and dirty styled static text. I'm
workin in 5.2.1

To that end i put i set the editfield to multi-line, Styled and ligment to
centered, turned off the verticalscroll bar and put the following code in the
editfield Open event:

me.TextSize = 16
me.Text = "In-Vitro Acoustic Testing (IVAT)"

me.SelStart = 0
me.SelLength  me.SelBold = true
me.SelTextColor = &c932C8C
me.SelTextSize = 24

me.SelStart = inStr(me.text, "Vitro") - 1
me.SelLength  me.SelBold = true
me.SelTextColor = &c932C8C
me.SelTextSize = 24

me.SelStart = inStr(me.text, "Acoustic") - 1
me.SelLength  me.SelBold = true
me.SelTextColor = &c932C8C
me.SelTextSize = 24

me.SelStart = inStr(me.text, "Testing") - 1
me.SelLength  me.SelBold = true
me.SelTextColor = &c932C8C
me.SelTextSize = 24

me.SelStart = inStr(me.text, "(IVAT)") - 1
me.SelLength ` me.SelBold = true
me.SelTextColor = &c932C8C
me.SelTextSize = 24

me.SelLength = 0
Me.ReadOnly = true

On OS X (run from tke OSX IDE and compiled) it worked as expected and the first
letters of each word were both larger and colored... While on OS 9.2.2 and Win2K
compiled from the classic IDE on a machine booted into OS 9, the text was all
the same size and black...

Can anybody confirm this? If this is real it's a very significant bug IMO.

Thanks,

- karen

---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>

Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>