Search found 101 matches

by hamlynart
Sat Jan 09, 2010 4:28 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Dictating into Rev apps
Replies: 1
Views: 2899

Dictating into Rev apps

Hi Folks,

I often write simple apps to do repetitive tasks (eg: removing the annoying line breaks you get when you copy PDF text). Many of these are text based apps. I'm also a user of Macspeech Dictate which as an RSI sufferer is very useful. However, my Revolution apps don't respond to text input ...
by hamlynart
Wed Dec 23, 2009 9:17 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to keep selected text selected?
Replies: 9
Views: 9301

Re: How to keep selected text selected?

Utterly Perfect!

Merry Xmas to you Bernd

Jim H
by hamlynart
Wed Dec 23, 2009 2:32 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to keep selected text selected?
Replies: 9
Views: 9301

Re: How to keep selected text selected?

Hi again,

Ahh yes I see where I've been really unclear.

I want the HTML code displayed. and I'd like the word two to be selected (or the HTML and two would be fine too).

The reason I need this is because I'm making a simple HTML code tool which will add simple HTML formatting to text. I have a ...
by hamlynart
Tue Dec 22, 2009 8:31 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to keep selected text selected?
Replies: 9
Views: 9301

Re: How to keep selected text selected?

Bernd - Nice - that works well with your textcolor code but not with my HTML code. I should have explained - the HTML that was in my code is intended to work thus:

I select word 2 from the following:

One two three.

I click my button

I get:

One <font color ="red">two</font> three.

And word 2 ...
by hamlynart
Tue Dec 22, 2009 4:17 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to keep selected text selected?
Replies: 9
Views: 9301

Re: How to keep selected text selected?

Hi Bernd,

Thanks for that. Unfortunately it's not working too well.

When I click the button nothing happens - because the exitfield hasn't happened until I click outside the box (clicking a button doesn't register).

So, if I select a chunk and click my button and then click outside the field I ...
by hamlynart
Mon Dec 21, 2009 6:10 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Images not in standalone
Replies: 2
Views: 3685

Re: Images not in standalone

Hi,

Here's a thread which might help. It's a bit long but it'll certainly clarify things for you I think.

http://forums.runrev.com/phpBB2/viewtop ... f=8&t=3545

Best

Jim H
by hamlynart
Mon Dec 21, 2009 5:46 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to keep selected text selected?
Replies: 9
Views: 9301

How to keep selected text selected?

Hi Folks,

Here's my problem. When I click the button my selected text becomes deselected. How do I keep it selected?
on mouseUp
put the selectedText into tSelect
put "</font>" after tSelect
put "<font color ="& quote & "red" & quote &">"before tSelect
put tSelect into the selectedText
end ...
by hamlynart
Tue Dec 08, 2009 11:25 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Palette not visible on build
Replies: 1
Views: 3120

Re: Palette not visible on build

Ok,

I've worked out:

go stack "Formatter Palette" as palette

as a script in a button on the mainstack. Next I'm gonna try this in the stack script as an on preOpenCard....

YES!

apologies for wasting your time.
by hamlynart
Tue Dec 08, 2009 10:59 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Palette not visible on build
Replies: 1
Views: 3120

Palette not visible on build

Hi folks,

I have a mainstack and a substack. the idea is that the substack will be a palette (can't believe I've never done this before!). Unfortunately when I build the app the palette doesn't show. I also have to select it in the application browser to work with it. What am I doing wrong?

Thanks ...
by hamlynart
Tue Dec 08, 2009 10:31 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: scale field with window
Replies: 2
Views: 3502

Re: scale field with window

Hi Bernd,

Blimey - absolutely perfect!

Thanks a million.

Jim H
by hamlynart
Tue Dec 08, 2009 10:04 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: scale field with window
Replies: 2
Views: 3502

scale field with window

Hi folks,

I've not used Rev in a while now and I can't work out how to get a text field to dynamically scale (resize) with the window (stack). Any ideas?

Thanks a million

Jim H
by hamlynart
Thu Sep 03, 2009 12:12 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Detecting an empty line
Replies: 9
Views: 8447

We need to modify the content, so we use a copy of the content for that purpose
Brilliant Klaus - simply brilliant!

Jim H
by hamlynart
Thu Sep 03, 2009 11:34 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Detecting an empty line
Replies: 9
Views: 8447

Detecting an empty line

Hi Folks,

If only this would work:
on mouseUp
answer the number of empty lines in fld "Group1"
end mouseUp

Instead I'm doing this:

put the number of lines of me into tCount
put 0 into tMinus
repeat with x=1 to the number of lines in fld "Group 1"
if line x of fld "Group 1" is empty then ...
by hamlynart
Mon Aug 24, 2009 11:21 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: LineOffset change the desired word to new colour
Replies: 15
Views: 13575

Bernd,

That's fantastic - Thankyou so much.

It turns out that I had to fudge it a little because sometimes the word was 100mph, or 100mph. or 100mph; but it's working beautifully now.

Cheers to all.

Jim H
by hamlynart
Mon Aug 24, 2009 9:42 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: LineOffset change the desired word to new colour
Replies: 15
Views: 13575

Triumph!

That's just all I think I need to work out how to do it.

Thanks a million

Jim H