Magnifying glass
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Magnifying glass
In my old, old version of LC (6.5), I remember that there was a magnifying glass to position objects precisely on the sheet. But I don't remember how I did it...
If anyone would like to refresh my memory, thank you in advance.
Kind regards, Jean-Paul.
If anyone would like to refresh my memory, thank you in advance.
Kind regards, Jean-Paul.
Re: Magnifying glass
Hi.
Jacque made a magnifying tool years ago, but I am not sure that is what you are talking about.
In a CAD program, there are many tools to aid one in snapping various features of one object onto, or aligned with, another. I do not recall any such tool in LC.
You are aware of the very nice "Align Controls" tool in the inspector, right? Or the somewhat useful "Geometry manager", also in the inspector?
Craig
Jacque made a magnifying tool years ago, but I am not sure that is what you are talking about.
In a CAD program, there are many tools to aid one in snapping various features of one object onto, or aligned with, another. I do not recall any such tool in LC.
You are aware of the very nice "Align Controls" tool in the inspector, right? Or the somewhat useful "Geometry manager", also in the inspector?
Craig
-
- VIP Livecode Opensource Backer
- Posts: 9957
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Magnifying glass
A snap-to grid can be toggled from the Objects menu, with the grid size settable in Prefs.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Magnifying glass
Hi to all,
@dunbarx
Ah, memories, memories!
This tool no longer works with the latest LC?
Regards, J-P.
@dunbarx
Yes, it is, I remember this lady who had developed a protection system against piracy too...Jacque made a magnifying tool years ago, but I am not sure that is what you are talking about
Ah, memories, memories!
This tool no longer works with the latest LC?
Regards, J-P.
Re: Magnifying glass
I am sure it does. Jacque?This tool no longer works with the latest LC?
But zooming in on an area of the card is, to me, not very valuable. Would you nudge one control under magnification as it approaches a point of interest? Doing this sort of thing under script control:
Code: Select all
set the topLeft of control 1 to the botRight of control 2
What are you trying to do?
Craig
Re: Magnifying glass
Ok, thanks, I'll look at this "Align Controls" pane...Craig wrote: And again the "Align Controls" pane has really nice basic tools to do that sort of thing
Regards, J-P.
Re: Magnifying glass
Jean-Paul.
I think you will find the "Align Controls" invaluable. It is limited in features, but indispensable to me.
You can always roll your own gadgetry to do other things. Per example, to place the topLeft of a field 1 to the middle of the right side of a field 2:
That sort of thing. Useful if you do a lot of that kind of rearranging. Once you have a library of similar stuff you can create a CAD program. For example, you could expand the rect of a control in much the same way, using existing points. The rect could be enlarged from, say, its current topLeft to that same rightMidPoint.
Craig
I think you will find the "Align Controls" invaluable. It is limited in features, but indispensable to me.
You can always roll your own gadgetry to do other things. Per example, to place the topLeft of a field 1 to the middle of the right side of a field 2:
Code: Select all
on mouseUp
put the right of fld 2 & "," & the top of fld 2 + (the height of fld 2 / 2) into rightMidPoint
set the topLeft of fld 1 to rightMidPoint
end mouseUp
Craig
Re: Magnifying glass
I am going on and on because I do not know what you really want. In the last example, it would be better to use the "mouseMove" handler to expand that control instead of specifying points.
So, what are you trying to do?
Craig
So, what are you trying to do?
Craig
Re: Magnifying glass
If Jean-Paul means dragging objects to align, perhaps using guides is more useful?
LC now has guides of its own and Bernd has released a guides plugin; I personally use the plugin released by FerrusLogic as it's just a bit nicer:
https://github.com/Ferruslogic/DevGuide ... tag/v1.0.6
FerrusLogic appear to have disappeared as an entity, but their products are still good - and as were released as opensource, the code is fully accessible.
LC now has guides of its own and Bernd has released a guides plugin; I personally use the plugin released by FerrusLogic as it's just a bit nicer:
https://github.com/Ferruslogic/DevGuide ... tag/v1.0.6
FerrusLogic appear to have disappeared as an entity, but their products are still good - and as were released as opensource, the code is fully accessible.
Re: Magnifying glass
Stam.
I do a bit of CAD work, and an active grid can be very helpful indeed. But it is not nearly as useful as the ability to have features of objects snap to the principal features of other objects, perimeter endpoints and midpoints, centers of the objects themselves, those sorts of things.
The issue is best seen if one is trying to align controls that are not the same size. Unless their rects, in both axes, are integral multiples of the grid setting, a grid is worse than useless. Better to use the properties inherent in the objects to align with those of other objects than to drag them around trying to get them to behave the way you want. The most basic type available in LC is to be able to set the locs of features of controls, as in the examples I gave above.
Craig
I do a bit of CAD work, and an active grid can be very helpful indeed. But it is not nearly as useful as the ability to have features of objects snap to the principal features of other objects, perimeter endpoints and midpoints, centers of the objects themselves, those sorts of things.
The issue is best seen if one is trying to align controls that are not the same size. Unless their rects, in both axes, are integral multiples of the grid setting, a grid is worse than useless. Better to use the properties inherent in the objects to align with those of other objects than to drag them around trying to get them to behave the way you want. The most basic type available in LC is to be able to set the locs of features of controls, as in the examples I gave above.
Craig
Re: Magnifying glass
@ Anyone,
Make two fields, "F1" and F2" on a card somewhere. Put this in the card script:
Now choose the pointer tool and drag field 1 around a bit and then make the botLeft of fld 1 approach the topRight of fld 2. When they get close, the two fields will snap together. The "mousemove" message is sent while in edit mode. That sort of gadget is what I was suggesting.
Craig
Make two fields, "F1" and F2" on a card somewhere. Put this in the card script:
Code: Select all
on mousemove
if abs(item 1 of the botLeft of fld "F1" - item 1 of the topRight of fld "F2") < 8 and\
abs(item 2 of the botLeft of fld "F1" - item 2 of the topRight of fld "F2") < 8 then set the botLeft of fld 1 to the topRight of fld 2
end mousemove
Craig
Last edited by dunbarx on Wed Jun 12, 2024 1:46 pm, edited 1 time in total.
Re: Magnifying glass
Thanks to all for your answers.
I don't have enough time at the moment to delve into this further, but I'll come back to it...
Kind regards, J-P.
I don't have enough time at the moment to delve into this further, but I'll come back to it...
Kind regards, J-P.
-
- VIP Livecode Opensource Backer
- Posts: 9957
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Magnifying glass
Most OSes have a keystroke to invoke zoom-in. Could it have been that?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Magnifying glass
That tool was for zooming into an image but didn't have any layout capabilities. It was a list challenge for viewing only a subsection of an image at various sizes. In this case I think the OP wants the grid lines option.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- VIP Livecode Opensource Backer
- Posts: 9957
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Magnifying glass
I think what he's looking for is the type of stuff we see in Quant-UX, Figma, and Appli, where UI elements snap along boundaries related to other controls and common layout margins.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn