Re: Italic text within fields on Mac OS

2017-04-16 Thread dunbarx via use-livecode
This may call for a discussion, a dedicated lesson maybe, especially for
newbies, about the difference between setting the textStyle of actual text
within a field as opposed to the field itself. It touches on inheritance.

But I bet that many have struggled with what they see as impossible or at
least inconsistent results when they set text properties either "globally"
or with actual selected text within a field/\.

Craig



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Italic-text-within-fields-on-Mac-OS-tp4714017p4714026.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Italic text within fields on Mac OS

2017-04-16 Thread Richmond Mathewson via use-livecode

Aha: I was trying to set it through the properties palette . . .

Richmond.

On 4/16/17 4:59 pm, Rick Harrison via use-livecode wrote:

Hi Richmond,

It works just fine here.
I’m using LiveCode 8.1.3
in MacOS Sierra.

I was able to do it both manually and programatically.
Here’s the code.

on mouseUp
set the textStyle of field "TextField1" of this card to italic

put "Hi there" into field "TextField1" of this card

end mouseUp

Good luck!

Rick


On Apr 15, 2017, at 4:08 PM, Richmond Mathewson via use-livecode 
 wrote:

Doesn't work.

Richmond.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Italic text within fields on Mac OS

2017-04-16 Thread Rick Harrison via use-livecode
Hi Richmond,

It works just fine here.
I’m using LiveCode 8.1.3
in MacOS Sierra.

I was able to do it both manually and programatically.
Here’s the code.

on mouseUp
set the textStyle of field "TextField1" of this card to italic

put "Hi there" into field "TextField1" of this card

end mouseUp

Good luck!

Rick

> On Apr 15, 2017, at 4:08 PM, Richmond Mathewson via use-livecode 
>  wrote:
> 
> Doesn't work.
> 
> Richmond.
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode