Re: HTMLtext in Label?

2014-05-11 Thread Richmond

On 11/05/14 07:18, Peter W A Wood wrote:

Hi Scott

This works for me in LiveCode 7 dp3:

set the Label of Button Button to numToCodepoint(0x1D122)  ;; bass 
clef

Also pasting the correct character into the label field in the property 
inspector works under OS X (and may work on other systems too.)

I suspect the problem that you are encountering stems from U+0349 being a 
combining mark rather than a character in it's own right. From OS X character 
viewer:

͉
COMBINING LEFT ANGLE BELOW
Unicode: U+0349, UTF-8: CD 89

This will display the left angle in the label of a button:

set  the Label of Button Button tonumToCodepoint(0x0349)

Hope this helps.

Peter


That's very queer: as far as I can see Hex 3A9 is an Omega.

Richmond.



On 11 May 2014, at 03:26, Scott Rossi wrote:


Actually, I see there's a unicodeLabel property, which could work.

So if the Unicode number of the character in a font is U+03A9, how does
one get this to render properly in a label?  I've tried various string
combinations and uni-prefixed properties, but I continue to get Asian
characters as the result.

Thanks  Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 5/10/14 11:17 AM, I wrote:


On 5/10/14 10:49 AM, Richmond richmondmathew...@gmail.com wrote:


I can only assume that 'htmlText' is not a property of a label.


It's not.  It's a field property.

But I'm hoping someone may have found a way to pull this off.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design



___
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: HTMLtext in Label?

2014-05-11 Thread Peter W A Wood
Richmond

I mistakenly typed 03A9 as 0349.  A trip to the optician is in order.

Regards

Peter

On Sunday, 11 May 2014, Peter W A Wood peterwaw...@gmail.com wrote:



 On Sunday, 11 May 2014, Richmond richmondmathew...@gmail.com wrote:

 On 11/05/14 07:18, Peter W A Wood wrote:

 Hi Scott

 This works for me in LiveCode 7 dp3:

 set the Label of Button Button to numToCodepoint(0x1D122)  ;;
 bass clef

 Also pasting the correct character into the label field in the property
 inspector works under OS X (and may work on other systems too.)

 I suspect the problem that you are encountering stems from U+0349 being
 a combining mark rather than a character in it's own right. From OS X
 character viewer:

 ͉
 COMBINING LEFT ANGLE BELOW
 Unicode: U+0349, UTF-8: CD 89

 This will display the left angle in the label of a button:

 set  the Label of Button Button tonumToCodepoint(0x0349)

 Hope this helps.

 Peter


 That's very queer: as far as I can see Hex 3A9 is an Omega.

 Richmond


 It seems that the bods at Unicode seem to think it Is in the range for
 combinig marks - http://www.unicode.org/charts/PDF/U0300.pdf - so it's
 not just apple.

 More investigating required.

 Regards

 Peter

___
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: HTMLtext in Label?

2014-05-11 Thread Mark Wieder
Peter-

Saturday, May 10, 2014, 9:18:18 PM, you wrote:

 set the Label of Button Button to
 numToCodepoint(0x1D122)  ;; bass clef

I CAN HAZ BASS CLEF!

-- 
-Mark Wieder
 ahsoftw...@gmail.com

This communication may be unlawfully collected and stored by the National 
Security Agency (NSA) in secret. The parties to this email do not 
consent to the retrieving or storing of this communication and any 
related metadata, as well as printing, copying, re-transmitting, 
disseminating, or otherwise using it. If you believe you have received 
this communication in error, please delete it immediately.


___
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: HTMLtext in Label?

2014-05-11 Thread Richmond

On 11/05/14 19:19, Mark Wieder wrote:

Peter-

Saturday, May 10, 2014, 9:18:18 PM, you wrote:


 set the Label of Button Button to
numToCodepoint(0x1D122)  ;; bass clef

I CAN HAZ BASS CLEF!



I think that should come with a rider that that is, presumably, for 
Livecode 7,

and not for earlier reasons.

Put me right if I'm wrong, Mark :)

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


Re: HTMLtext in Label?

2014-05-10 Thread Richmond

On 10/05/14 20:38, Scott Rossi wrote:

Is there some way to the the label of a button to HTMLtext?

Thanks  Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




Well I just tried this:

set the htmlText of the label of btn targe to biClick here!/i/b

and that didn't work.

I also tried this:

set the htmlText of the label of btn targe to fld fff

[where fld fff contains 'biClick here!/i/b']

and that didn't work.

I also tried this:

set the htmlText of the label of btn targe to the htmlText of fld fff

and that didn't work.

I can only assume that 'htmlText' is not a property of a label.

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


Re: HTMLtext in Label?

2014-05-10 Thread Scott Rossi

On 5/10/14 10:49 AM, Richmond richmondmathew...@gmail.com wrote:

I can only assume that 'htmlText' is not a property of a label.


It's not.  It's a field property.

But I'm hoping someone may have found a way to pull this off.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design



___
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: HTMLtext in Label?

2014-05-10 Thread Richmond

On 10/05/14 21:17, Scott Rossi wrote:

On 5/10/14 10:49 AM, Richmond richmondmathew...@gmail.com wrote:


I can only assume that 'htmlText' is not a property of a label.


It's not.  It's a field property.

But I'm hoping someone may have found a way to pull this off.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




I am a bit confused:

Do you want to:

1. Take some htmlText, strip out its HTML characteristics and set the 
label of your button to the raw text?


2. Use the htmlText as is?

Of course it would be 'lovely' if one could just do what I tried

( set the htmlText of btn targe to the htmlText of fld fff )

but, right now, the only thing I can think of is making a group with a 
transparent field

overlaying a button with a   label so it is blank.

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


Re: HTMLtext in Label?

2014-05-10 Thread Richmond

On 10/05/14 21:17, Scott Rossi wrote:

On 5/10/14 10:49 AM, Richmond richmondmathew...@gmail.com wrote:


I can only assume that 'htmlText' is not a property of a label.


It's not.  It's a field property.

But I'm hoping someone may have found a way to pull this off.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




Well; as there has been a lot of stuff vented ever since Livecode went 
Open Source about
users contributing by hacking various aspects of the IDE one of the most 
USEFUL bits of
information RunRev could give us (throw me a fricking bone here.) 
would be how to

ADD properties to existing objects.

Making new objects out of compounded existing objects is, to my mind at 
least, less urgent than

how to add props to existing ones.

Of course, whether this can be done in Livecode itself, or one has to go 
back to the GIT hub
and mess around in C++ I don't know. Although something tells me that if 
Livecode is a really
flexible language that can stand on its own two feet it shouldn't be 
necessary to use another

language to modify it.

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


Re: HTMLtext in Label?

2014-05-10 Thread Scott Rossi
Actually, I see there's a unicodeLabel property, which could work.

So if the Unicode number of the character in a font is U+03A9, how does
one get this to render properly in a label?  I've tried various string
combinations and uni-prefixed properties, but I continue to get Asian
characters as the result.

Thanks  Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 5/10/14 11:17 AM, I wrote:


On 5/10/14 10:49 AM, Richmond richmondmathew...@gmail.com wrote:

I can only assume that 'htmlText' is not a property of a label.


It's not.  It's a field property.

But I'm hoping someone may have found a way to pull this off.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design



___
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: HTMLtext in Label?

2014-05-10 Thread J. Landman Gay

On 5/10/14, 1:42 PM, Richmond wrote:

Making new objects out of compounded existing objects is, to my mind at
least, less urgent than
how to add props to existing ones.


I believe this is the goal of the Open Language initiative, which is 
scheduled to happen after the engine rewrite is done.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.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: HTMLtext in Label?

2014-05-10 Thread J. Landman Gay

On 5/10/14, 2:31 PM, J. Landman Gay wrote:

On 5/10/14, 1:42 PM, Richmond wrote:

Making new objects out of compounded existing objects is, to my mind at
least, less urgent than
how to add props to existing ones.


I believe this is the goal of the Open Language initiative, which is
scheduled to happen after the engine rewrite is done.



Although on second thought, actually changing the behavior of the engine 
itself probably does require tinkering with the C++ code.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.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: HTMLtext in Label?

2014-05-10 Thread Scott Rossi
OK, went through some deleted mail and found the answer.
I was missing: set the useUnicode to true

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 5/10/14 12:26 PM, Scott Rossi sc...@tactilemedia.com wrote:

Actually, I see there's a unicodeLabel property, which could work.

So if the Unicode number of the character in a font is U+03A9, how does
one get this to render properly in a label?  I've tried various string
combinations and uni-prefixed properties, but I continue to get Asian
characters as the result.

Thanks  Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 5/10/14 11:17 AM, I wrote:


On 5/10/14 10:49 AM, Richmond richmondmathew...@gmail.com wrote:

I can only assume that 'htmlText' is not a property of a label.


It's not.  It's a field property.

But I'm hoping someone may have found a way to pull this off.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design



___
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: HTMLtext in Label?

2014-05-10 Thread Richmond

On 10/05/14 22:26, Scott Rossi wrote:

Actually, I see there's a unicodeLabel property, which could work.

So if the Unicode number of the character in a font is U+03A9, how does
one get this to render properly in a label?  I've tried various string
combinations and uni-prefixed properties, but I continue to get Asian
characters as the result.

Thanks  Regards,

Scott Rossi



This works:

on mouseUp
   set the useUnicode to true
   set the unicodeLabel of btn targe to numToChar(937)
end mouseUp

[ 937 is the decimal version of Hex 3A9 ]

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


Re: HTMLtext in Label?

2014-05-10 Thread Peter W A Wood
Hi Scott

This works for me in LiveCode 7 dp3:

set the Label of Button Button to numToCodepoint(0x1D122)  ;; bass 
clef

Also pasting the correct character into the label field in the property 
inspector works under OS X (and may work on other systems too.)

I suspect the problem that you are encountering stems from U+0349 being a 
combining mark rather than a character in it's own right. From OS X character 
viewer:

͉
COMBINING LEFT ANGLE BELOW
Unicode: U+0349, UTF-8: CD 89

This will display the left angle in the label of a button:

set  the Label of Button Button tonumToCodepoint(0x0349)

Hope this helps.

Peter


On 11 May 2014, at 03:26, Scott Rossi wrote:

 Actually, I see there's a unicodeLabel property, which could work.
 
 So if the Unicode number of the character in a font is U+03A9, how does
 one get this to render properly in a label?  I've tried various string
 combinations and uni-prefixed properties, but I continue to get Asian
 characters as the result.
 
 Thanks  Regards,
 
 Scott Rossi
 Creative Director
 Tactile Media, UX/UI Design
 
 
 
 
 On 5/10/14 11:17 AM, I wrote:
 
 
 On 5/10/14 10:49 AM, Richmond richmondmathew...@gmail.com wrote:
 
 I can only assume that 'htmlText' is not a property of a label.
 
 
 It's not.  It's a field property.
 
 But I'm hoping someone may have found a way to pull this off.
 
 Regards,
 
 Scott Rossi
 Creative Director
 Tactile Media, UX/UI Design
 
 
 
 ___
 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