Search found 9703 matches

by dunbarx
Sun Oct 13, 2024 4:02 am
Forum: Talking LiveCode
Topic: Clipping/cropping a group
Replies: 19
Views: 3743

Re: Clipping/cropping a group

Klaus. The layerClipRect only affects the visibly rendered part of a control. It does not change the actual rect of that control. In your first post, you mentioned that what you were looking for could easily be done by dragging handles with the mouse, but not under script control. But dragging handl...
by dunbarx
Sun Oct 13, 2024 3:49 am
Forum: Talking LiveCode
Topic: Clipping/cropping a group
Replies: 19
Views: 3743

Re: Clipping/cropping a group

Ouch.

How many other little known words exist in the LC lexicon that would solve problems with a single line?

Klaus, how did you find it? By asking ChatGPT to find a native LC word that would solve your problem?

Craig
by dunbarx
Sat Oct 12, 2024 3:34 pm
Forum: Talking LiveCode
Topic: Clipping/cropping a group
Replies: 19
Views: 3743

Re: Clipping/cropping a group

Now I am confused. 1- What do the locs of the child controls have to do with cropping the group as a whole? 2- Isn't the margins property the best way to crop, since all four sides can be independently adjusted? My first foray into this was based on Klaus' initial post, where only the top and bottom...
by dunbarx
Fri Oct 11, 2024 7:00 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Recent scripts
Replies: 10
Views: 1964

Re: Recent scripts

CAsba;
It does show scripts I worked on, but not the latest ones.
Not the latest ones??? really??

Craig
by dunbarx
Fri Oct 11, 2024 6:57 pm
Forum: Talking LiveCode
Topic: Clipping/cropping a group
Replies: 19
Views: 3743

Re: Clipping/cropping a group

How would one do the same sort of thing horizontally?
There you really need to set the margins to a string of positive and negative values.

Playing with it, actually, I like the margin method best...

Craig
by dunbarx
Fri Oct 11, 2024 6:51 pm
Forum: Talking LiveCode
Topic: Clipping/cropping a group
Replies: 19
Views: 3743

Re: Clipping/cropping a group

All good stuff.

To center a group the scroll way, simply determine the amount of total "crop" you want in pixels. Subtract half that value from the height of the group . Then set the scroll to that same value.

Craig
by dunbarx
Fri Oct 11, 2024 3:00 pm
Forum: Talking LiveCode
Topic: Clipping/cropping a group
Replies: 19
Views: 3743

Re: Clipping/cropping a group

Klaus.

I only "played" with setting the scroll to see if that property worked as I thought it might. I am sure you can figure out the numerical values of the scroll to make your group look the way you want.

Craig
by dunbarx
Fri Oct 11, 2024 2:53 pm
Forum: Talking LiveCode
Topic: Clipping/cropping a group
Replies: 19
Views: 3743

Re: Clipping/cropping a group

Klaus.

If I make a group and set its height property to a value smaller than the original, the top of the group stays put, and the bottom is truncated, so that is half the battle. If I then play with the scroll of the group, I can control the visible portion.

Craig
by dunbarx
Fri Oct 11, 2024 2:46 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Recent scripts
Replies: 10
Views: 1964

Re: Recent scripts

Hi. i have never used that little gadget. But mine works fine, even in a new session. I do not know how it determines what constitutes a "recent" script, since in that new session, I only see a few of the scripts I opened in the most recent session(s). On a Mac, there is a "Recent Items" option in t...
by dunbarx
Mon Oct 07, 2024 2:43 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Repeat loops using Hexadecimal?
Replies: 13
Views: 2706

Re: Repeat loops using Hexadecimal?

Richmond, I am sure I did manage this in Zilog in about 1984. Really, you set up as: repeat with y = 1 to F and the machine knew to iterate 16 times? There was a "hex" setting of some kind? That would mean that the code knew how to handle: repeat with y = 1 to F if y = "C" then answer "You made it t...
by dunbarx
Wed Sep 25, 2024 7:25 pm
Forum: Talking LiveCode
Topic: Drawing smooth curved vectors - is it even possible?
Replies: 23
Views: 5062

Re: Drawing smooth curved vectors - is it even possible?

Jacque. ...we have usePixelScaling I have never used those either; I never need to render for "artistic" purposes. But reading the several related properties, it does not seem that one can increase what LC seems to insist to use (is capable of using?) as opposed to what the screen may offer. I had h...
by dunbarx
Tue Sep 24, 2024 11:03 pm
Forum: Talking LiveCode
Topic: Drawing smooth curved vectors - is it even possible?
Replies: 23
Views: 5062

Re: Drawing smooth curved vectors - is it even possible?

Jacque. For consistency, LC translates screen pixels to standard measurements based on (I think) 72 dpi or maybe 96 dpi on Windows. I get that, and it makes sense. But it seems that a simple property that scales the current screen resolution should be available if desired. You imply that such a thin...
by dunbarx
Tue Sep 24, 2024 2:33 pm
Forum: Talking LiveCode
Topic: How to Create Dynamic Content with LiveCode?
Replies: 3
Views: 1081

Re: How to Create Dynamic Content with LiveCode?

I'm with Richmond on this. Sounds like a homework project.

@Sorgonzola. We have no particular issue with this, but please reveal more of who you are and what you need.

Craig
by dunbarx
Mon Sep 23, 2024 4:38 pm
Forum: Talking LiveCode
Topic: Drawing smooth curved vectors - is it even possible?
Replies: 23
Views: 5062

Re: Drawing smooth curved vectors - is it even possible?

Stam. You also make the assumption that the only way to connect dots is a straight line. I did not. I spoke exclusively about pixels and their unique locations on screen. You mentioned there are more pixels on a high-res screen than there are coordinates to describe them. In other words, there are r...
by dunbarx
Mon Sep 23, 2024 3:15 am
Forum: Talking LiveCode
Topic: Drawing smooth curved vectors - is it even possible?
Replies: 23
Views: 5062

Re: Drawing smooth curved vectors - is it even possible?

Stam. Good luck. On another note, I also do not seem to understand points. I made an oval grc and set the arcAngle to 90°. I made a polygon grc. I then tried to: set the points of grc 2 to the effective points of grc 1 And got the same jagged rendering you did. How can one set the points of a polygo...

Go to advanced search