Re: htmlText oddity

2012-11-05 Thread Mark Wieder
Mark- Behaviors are actually stored as "rugged" ids. They're almost the same as long ids, with the path to the disk file replaced with the name of the stack. Thus you can set the behavior of an object with either button id 1007 of stack "/Users/Gumby/Documents/ArtClokey.rev" button id 1007 of sta

Re: htmlText oddity

2012-11-05 Thread Peter Haworth
Thanks for the clarification Mark. Pete Pete lcSQL Software On Mon, Nov 5, 2012 at 1:39 PM, Mark Schonewille < m.schonewi...@economy-x-talk.com> wrote: > Hi Peter, > > Sorry for the confusion. There are a few forms that you can't use, but > apparently there are also seve

Re: htmlText oddity

2012-11-05 Thread Mark Schonewille
Hi Peter, Sorry for the confusion. There are a few forms that you can't use, but apparently there are also several ways that you can't use. I was wrong saying that you can _only_ use long id's. The forms that I can't get to work are: button "Text" button 2 of cd 1 button "Some Button" of cd id

Re: htmlText oddity

2012-11-05 Thread Peter Haworth
Hi Mark, Is this really true (the part about long IDs not the part of buttons only)? I have been using behaviors in the general form - button ID 1234 of stack "xyz" - for quite a long time now and they seem to work fine. Am I setting myself up for trouble down the line? Pete lcSQL Software

Re: htmlText oddity

2012-11-04 Thread J. Landman Gay
On 11/4/12 6:32 PM, dunb...@aol.com wrote: But why only ""? And further, if you substitute "" for ","", the answer command replies faithfully, in spite of the "contains p or a start/end tag pair" comment above, which it seems should include all such constructs, like "". Isn't that a "start/end t

Re: htmlText oddity

2012-11-04 Thread Phil Davis
Hi Craig, On 11/4/12 4:32 PM, dunb...@aol.com wrote: But why only ""? And further, if you substitute "" for ","", the answer command replies faithfully, in spite of the "contains p or a start/end tag pair" comment above, which it seems should include all such constructs, like "". Isn't that a

Re: htmlText oddity

2012-11-04 Thread Mark Schonewille
Hi Craig, I can very well imagine that this, and quite a few other esoteric peculiarities, drive you and other people nuts. Not everything is intuitive in LiveCode. (Another example of this is that the behavior of a control can only be set to the long id of a button, not to any other valid refe

Re: htmlText oddity

2012-11-04 Thread dunbarx
t errors in code. Craig -Original Message- From: Mark Schonewille To: How to use LiveCode Sent: Sun, Nov 4, 2012 6:31 pm Subject: Re: htmlText oddity Hi Craig, The answer dialog window checks if the text contains html tags (must start with and ) and if it does, it interprets

Re: htmlText oddity

2012-11-04 Thread Mark Schonewille
Hi Craig, The answer dialog window checks if the text contains html tags (must start with and ) and if it does, it interprets it as htmlText, which makes the tags fo away :-) Try this: answer "This is bold and this is italics." -- Best regards, Mark Schonewille Economy-x-Talk Consulting and

htmlText oddity

2012-11-04 Thread dunbarx
Make one field and one button. In the field, type a few words, and set the textstyle to one of them to "bold". In the button: on mouseUp get the htmlText of fld 1 put it answer it end mouseUp Where did the tags go? They appear in msg, and if you step through, "it" seems fine. But wh