Search found 9388 matches

by dunbarx
Sun Apr 21, 2024 1:36 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Saving as LiveCodeScript
Replies: 16
Views: 587

Re: Saving as LiveCodeScript

I am not sure that even a control-less stack can be "reduced" to being script-only. Such a stack has properties, for example its rect, that a script only stack does not, and aren't there conservation laws such as:
"rects can neither be created not destroyed"?
Craig
by dunbarx
Sun Apr 21, 2024 1:32 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Saving as LiveCodeScript
Replies: 16
Views: 587

Re: Saving as LiveCodeScript

Richmond.

How could a stack that contains even a single control ever be reduced to a script-only stack? What would we do with that control?

Craig
by dunbarx
Thu Apr 18, 2024 1:47 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Importing Image as a control
Replies: 8
Views: 393

Re: Importing Image as a control

Klaus,

Aha, thanks. I rarely use these fancy multi-media gadgets.

Craig
by dunbarx
Wed Apr 17, 2024 10:38 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Importing Image as a control
Replies: 8
Views: 393

Re: Importing Image as a control

A liveCode file is not an image. No suprise that the OS does not include it in the available options. Not sure what the second example means.

An image has extensions such as ".jpg" or ".png".

I am no expert on this sort of thing, but maybe others will chime in...

Craig
by dunbarx
Tue Apr 16, 2024 7:11 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Styling paragraphs/lines?
Replies: 44
Views: 2248

Re: Styling paragraphs/lines?

There is no question that the "text" way is the grownup way.

Craig
by dunbarx
Tue Apr 16, 2024 5:02 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Styling paragraphs/lines?
Replies: 44
Views: 2248

Re: Styling paragraphs/lines?

Zax.

The kludge way can easily support multiple overlays. Just give Bernd and I free rein. :wink:

Craig
by dunbarx
Tue Apr 16, 2024 2:02 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Styling paragraphs/lines?
Replies: 44
Views: 2248

Re: Styling paragraphs/lines?

Zax.

So which way are you leaning?

Craig
by dunbarx
Mon Apr 15, 2024 9:45 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Styling paragraphs/lines?
Replies: 44
Views: 2248

Re: Styling paragraphs/lines?

Waiting for Zax, cleaned up an issue with horizontal scrolling with one or more long lines of unwrapped text. Still not perfect as regards the vertical scrollbar.

When we get to v.42 we will be done.

Craig`
MakeOverlay_5.livecode.zip
(1.94 KiB) Downloaded 9 times
by dunbarx
Mon Apr 15, 2024 7:28 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Styling paragraphs/lines?
Replies: 44
Views: 2248

Re: Styling paragraphs/lines?

Bernd.

You and I can go back and forth forever tweaking this.

But what does Zax want to do? There is the "text" way, and the "kludge" way.

Which way?

Craig
by dunbarx
Mon Apr 15, 2024 6:13 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Styling paragraphs/lines?
Replies: 44
Views: 2248

Re: Styling paragraphs/lines?

Bernd. Test, test, test. Anyway, this sure beats working. Had to modify the button script since if the user selects only a single line, the "format" of the "selectedLines" changes: on mouseUp put the selectedlines into tSelectedLines put word 2 of tSelectedLines into tStartLine if tSelectedLines con...
by dunbarx
Mon Apr 15, 2024 3:29 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Styling paragraphs/lines?
Replies: 44
Views: 2248

Re: Styling paragraphs/lines?

Bernd. The scrolling is nice. I was never satisfied with the method of selecting the start and end lines. Your update does not have this feature at all. But I like the following, modifying "our" makeOverlay button script: on mouseUp put word 2 of the selectedlines into tStartLine put word 4 of the s...
by dunbarx
Mon Apr 15, 2024 2:19 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Styling paragraphs/lines?
Replies: 44
Views: 2248

Re: Styling paragraphs/lines?

However, if I want to be a perfectionist, placing a semi-transparent element on top of text decreases the contrast of the text and it is no longer black.
I only colorized the backGround because one or more of the previous posts showed that. You do not have to.

Craig
by dunbarx
Mon Apr 15, 2024 12:01 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: get name of flashdrive.
Replies: 19
Views: 929

Re: get name of flashdrive.

Jacque.

Always impressed by your LC knowledge.

The "filename of stack". Really. What will they think of next??

Craig
by dunbarx
Sun Apr 14, 2024 11:55 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Styling paragraphs/lines?
Replies: 44
Views: 2248

Re: Styling paragraphs/lines?

Zax. I threw this stack together. It places an overlay between any two lines that you click on. It is hardly polished, in that it does not use typical field properties to set spatial parameters (as it ought), rather, I just jury-rigged some stuff into place. It is a kludge, in that it sidesteps all ...
by dunbarx
Fri Apr 12, 2024 8:03 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Styling paragraphs/lines?
Replies: 44
Views: 2248

Re: Styling paragraphs/lines?

It seems that setting the paragraph of a portion of the text of a field "sticks" beyond what I thought was possible. With a field with several return delimited lines of text, put this in a button somewhere: on mouseup set the backColor of paragraph 2 of fld 1 to "red" wait 30 Set the backColor of li...

Go to advanced search