table/grid widgets in the Summer Bundle allow going beyond
this limit? Could someone with a Summer Bundle please test the
table/grid widgets. I have included the script I populate the column
names and a first row of data in a Datagrid with below. I'd just like to
know whether any of the new
emain
visible when the data is scrolled
2) Can display this with the left column fixed to they remain visible
when the data is scrolled
3) Provides built in abilities to sort the numbers in all the data of
the grid/table, by any column, ascending or descending as the user desires.
I have already
(the
fineprint)! :-)
But this is not a special IDE feature, one could also use it in a runtime.
So I thought we could use this if not in the IDE, too.
> Bob S
>
> On Jan 20, 2021, at 1:02 PM, Tore Nilsen via use-livecode
> mailto:use-livecode@lists.runrev.com>> wrote:
>
> One
If that were allowed one could conceive of writing a standalone that was it’s
own IDE and selling it as a third party app.
Bob S
On Jan 20, 2021, at 1:02 PM, Tore Nilsen via use-livecode
mailto:use-livecode@lists.runrev.com>> wrote:
One could think that the grid snap feature would w
Hi Richard,
> Am 20.01.2021 um 21:52 schrieb Richard Gaskin via use-livecode
> :
> ...
> >>> is it correct that "snap to grid" does only work in the IDE in
> >>> "Pointer" mode?
> >
> >> Given its role in snapping the drag
> 20. jan. 2021 kl. 21:52 skrev Richard Gaskin via use-livecode
> :
>
> I was asking what you wanted the grid snap feature to do beyond working only
> in Pointer mode.
One could think that the grid snap feature would work in Run mode in the IDE if
scripts would allow t
Klaus wrote:
> Am 20.01.2021 um 21:02 schrieb Richard Gaskin:
>
>> Klaus wrote:
>>
>>> is it correct that "snap to grid" does only work in the IDE in
>>> "Pointer" mode?
>>
>> Given its role in snapping the dragging of selected
Hi Richard,
> Am 20.01.2021 um 21:02 schrieb Richard Gaskin via use-livecode
> :
>
> Klaus wrote:
>
> > is it correct that "snap to grid" does only work in the IDE in
> > "Pointer" mode?
>
> Given its role in snapping the dragging of se
Klaus wrote:
> is it correct that "snap to grid" does only work in the IDE in
> "Pointer" mode?
Given its role in snapping the dragging of selected objects, what else
might it do?
--
Richard Gaskin
Fourth World Systems
Software Design and Development for the De
Hi friends,
is it correct that "snap to grid" does only work in the IDE in "Pointer" mode?
Thanks for any insight.
Best
Klaus
--
Klaus Major
https://www.major-k.de
kl...@major-k.de
___
use-livecode mailing list
use-livecode@lis
Bingo, that works perfectly
JJS via use-livecode wrote
> On Sun, May 5, 2019 at 2:45 PM pink via use-livecode <
> use-livecode@.runrev
>> wrote:
>
>> Below is the script for a data grid and the stack script.
>>
>> The data grid times certain jobs, so if you
On Sun, May 5, 2019 at 2:45 PM pink via use-livecode <
use-livecode@lists.runrev.com> wrote:
> Below is the script for a data grid and the stack script.
>
> The data grid times certain jobs, so if you press one, it switched to
> timing
> that job.
>
> The problem is, wh
Below is the script for a data grid and the stack script.
The data grid times certain jobs, so if you press one, it switched to timing
that job.
The problem is, when I set the dgData for the grid, the rows are blank up to
the row that I press, and none of the changed data appears. However, if I
I believe this works this way because the fillInData message gets sent to the
row group that is currently getting updated. Because of this, "me" refers to
the current row group, nd btn "sendmail" of me refers to the specific instance
of button "sendmail" in that group. Otherwise btn "sendmail" w
> Le 20 févr. 2019 à 17:58, zryip theSlug via use-livecode
> a écrit :
>
> Ludovic,
>
> Try:
>
> on FillInData pData
>
>if pData["email"] <> "" then show btn "sendmail" of me
>
>else hide btn "sendmail" of me
>
> end FillInData
>
As i use Table datagrid, pData is just
>else hide btn "sendmail" of me
>
> end FillInData
>
> On Wed, Feb 20, 2019 at 5:54 PM Ludovic THEBAULT via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> Hello,
>>
>> I have an address table (data grid) including a
unrev.com> wrote:
> Hello,
>
> I have an address table (data grid) including an "email" column. An other
> column contains a button to send an email. I want to hide this button if
> the line does not contain an email.
> I put this script in the behavior of the butto
Hello,
I have an address table (data grid) including an "email" column. An other
column contains a button to send an email. I want to hide this button if the
line does not contain an email.
I put this script in the behavior of the button column :
on FillInData pData
if pD
Thanks, i did something very similar.work fine a bit funky but it does the job
for now.
Thank you.
HerhelF
> On Feb 6, 2019, at 12:11 PM, Bob Sneidar via use-livecode
> wrote:
>
> Not sure what you mean here. In the data grid tab of the properties window
> there is an
hing .
Thanks in advanced. HershelF
>
> Not sure what you mean here. In the data grid tab of the properties window
> there is an option to Allow Editing. Double clicking the cell with this
> option set will allow you to edit the value.
No clicking possible.
>
> This seems klunky
Not sure what you mean here. In the data grid tab of the properties window
there is an option to Allow Editing. Double clicking the cell with this option
set will allow you to edit the value.
This seems klunky to me. What I do is I create a field for each editable value
in the datagrid, then
Hi everyone, i searched high and low for this without success.
Question, i have a data grid (trying to to set up an invoice form),
columns, costumer_id, product_id, company_name, product_name, price. etc.
option menus in product name and company name,
Now when i use the options to select a
I was experimenting with a Data Grid form to see if I could edit the text in
the fields of the form.
I used the sample stack from the LiveCode Lesson "Example: Creating a List
of People"
http://lessons.livecode.com/m/datagrid/l/7305-example-creating-a-list-of-people
I found I cou
Most excellent!
> On 30 Jun 2018, at 1:26 am, hh via use-livecode
> wrote:
>
> A simple hexagonal grid creating stack:
> http://forums.livecode.com/viewtopic.php?p=168657#p168657
>
> You choose the number of rows and columns and, for "scaling",
> the horizo
Marvellous.
Thank you very much indeed!
Richmond.
On 30/6/2018 3:26 am, hh via use-livecode wrote:
A simple hexagonal grid creating stack:
http://forums.livecode.com/viewtopic.php?p=168657#p168657
You choose the number of rows and columns and, for "scaling",
the horizontal
A simple hexagonal grid creating stack:
http://forums.livecode.com/viewtopic.php?p=168657#p168657
You choose the number of rows and columns and, for "scaling",
the horizontal radius and vertical radius of the circumellipses.
___
use-liveco
Come to think of things, I ran off a load of tessellating hexagons in
Turtle Graphics about
2 weeks ago using fekking code blocks.
Richmond.
On 29/6/2018 8:53 pm, Richmond Mathewson wrote:
I cannot for the life of me work out why it is relatively easy to
tessellate hexagons in BBC BASIC
on my
I cannot for the life of me work out why it is relatively easy to
tessellate hexagons in BBC BASIC
on my BBC MODEL B while it is such a P.I.A. in LiveCode.
https://computer-literacy-project.pilots.bbcconnectedstudio.co.uk/jsbeeb/index.html?disc1=CLP0001.ssd&loadBasic=%2Fbeeb%2Floader%2F7c8bf2e3-
Hi David,
Even with complex shapes, it’s pretty easy (once you have a template version)
just to clone it, and then place it appropriately (and obviously that can be
based on its centre, or, as you say, the edges of its rectangle). The maths
shouldn’t be that hard (& I speak as someone who hates
Not sure whether you really want to know or not ;-)
Richmond puts his finger on it really. Most of the properties of a graphic
polygon don’t relate to geometric features of the polygon itself - except when
it is a rect. So, as Richard says, tiling them or otherwise changing
properties of targ
I would agree if I understood one word of it, or even what the problem was this
approach was trying to solve.
Bob S
> On Jun 27, 2018, at 08:42 , Rick Harrison via use-livecode
> wrote:
>
> Great resource and read.
>
> Thanks!
>
> Rick
>
>> On Jun 27, 2018, at 5:30 AM, hh via use-livecod
David V Glasgow wrote:
> I had already worked through the ‘redblobgames’ resources, and it was
> the prospect of trying to implement a hex system in Livecode which was
> the gotcha.
>
> The frustrating thing is that the polygon object displays a nice
> scaleable hex - and yet it seems this is not
Great resource and read.
Thanks!
Rick
> On Jun 27, 2018, at 5:30 AM, hh via use-livecode
> wrote:
>
> Here a rather complete guide to the "theory" with a link
> to implementation guides for several programming languages,
> especially, close to LC, JavaScript.
>
> https://www.redblobgames.com
and how hexagons tesselate.
>
> And, even more to the point, how the human brain (and, face facts, most of
> the time we are likely to be dealing
> with either a square or hexagonal grid on a computer is because we want to
> "fool" humans into believing that
> what the
facts, most
of the time we are likely to be dealing
with either a square or hexagonal grid on a computer is because we want
to "fool" humans into believing that
what the screen presents them with is a square or hexagonal grid with
all the functionality and meaning of
square or hexagona
Thanks for all the responses regarding hexes.
I had already worked through the ‘redblobgames’ resources, and it was the
prospect of trying to implement a hex system in Livecode which was the gotcha.
The frustrating thing is that the polygon object displays a nice scaleable hex
- and yet it
Here a rather complete guide to the "theory" with a link
to implementation guides for several programming languages,
especially, close to LC, JavaScript.
https://www.redblobgames.com/grids/hexagons/
___
use-livecode mailing list
use-livecode@lists.run
&scale=45.2578125
<https://travellermap.com/?options=25591&scale=45.2578125>
Cheers,
Rick
> On Jun 25, 2018, at 5:46 AM, David V Glasgow via use-livecode
> wrote:
>
> Quite a few old school (and a few newer) games use a tessellated hexagonal
> grid. Remember Railwa
uot; a bit like this:
*if intersect(img "firstHEX",img "secondHEX",5) then*
Richmond.
On 25.06.2018 12:46, David V Glasgow via use-livecode wrote:
Quite a few old school (and a few newer) games use a tessellated hexagonal
grid. Remember Railway Rivals, anyone?
I just starte
Quite a few old school (and a few newer) games use a tessellated hexagonal
grid. Remember Railway Rivals, anyone?
I just started to play around with the idea of a grid using Livecode polygons.
Specifically, a map that can grow organically by sprouting hexes at the edges.
I was surprised
> Tom Glod wrote: " can you post your resize script?"
Dear Tom, here is the script where the data grid fails and I do not know
why.
Thank you for taking notice.
on resizeStack w,h
## Datagrid is the "master", a list of project names.
## There is a detail form
t; as upper and lower borders.
>
> All works fine without the data grid group. But when the group it is
> included in the script of the handler, the resizeStack handler will neither
> correctly render other controls such as buttons and fields, nor the data
> grid itself.
>
>
In LC 8 and 9 (latest versions) and on Windows 10 I tried to have a DG
adjust to the width and height of the resized window using other controls
as upper and lower borders.
All works fine without the data grid group. But when the group it is
included in the script of the handler, the resizeStack
To: use-livecode
Sent: Thu, Jul 7, 2016 8:39 am
Subject: How do you stop editing a data grid cell
So a cell is open for editing in a data grid. Click outside of the
cell, it closes up (keeping the new data) and a 'closeFieldEditor'
message is sent to the data grid group. Good.
The
So a cell is open for editing in a data grid. Click outside of the
cell, it closes up (keeping the new data) and a 'closeFieldEditor'
message is sent to the data grid group. Good.
The problem is user don't always click outside the cell to manually
close it up. They may, for
OK it is a bug.
Logged...
http://quality.livecode.com/show_bug.cgi?id=17908
--
View this message in context:
http://runtime-revolution.278305.n4.nabble.com/Refresh-Data-Grid-not-working-in-8-1-tp4706089p4706115.html
Sent from the Revolution - User mailing list archive at Nabble.com
Hi,
I am currently updating the Data Grid docs to match the interface of LC 8 as
well as be available in the dictionary.
In doing the equivalent of the lesson How do I display line numbers in a
table
<http://lessons.livecode.com/m/datagrid/l/7329-how-do-i-display-line-numbers-in-a-table>
Hello,
I would like to provide a tooltip for each column (or column header) to show
the full column name.
Is there such a build in feature, which I didn't find yet or do I have to
create it myself?
Thank you
Tiemo
___
use-livecode mailing li
ch prevented me to switch over to LC8, was that
> > the grid spacing set in the preferences was not working.
>
> Confirmed - report submitted:
> <http://quality.livecode.com/show_bug.cgi?id=17623>
>
> --
> Richard Gaskin
> Fourth World Systems
> Software Desig
Ton Kuypers wrote:
> One of the things which prevented me to switch over to LC8, was that
> the grid spacing set in the preferences was not working.
Confirmed - report submitted:
<http://quality.livecode.com/show_bug.cgi?id=17623>
--
Richard Gaskin
Fourth World Systems
Softwar
Has anybody seen this:
An error has occurred in behavior for the column template:
add: can't add array to scalar
I'm not sure what this means. Other than the error popping up it
doesn't seem to be doing any harm. I've tried putting the handler which
causes the error in a try-catc
Hi,
One of the things which prevented me to switch over to LC8, was that the grid
spacing set in the preferences was not working. Nothing dramatically, but very
annoying…
But I just found the time download the final version and to my surprise it
still doesn’t work.
I set it to 10, changed it
On 2016-03-23 18:50, Phil Davis wrote:
The answer is yes, it "just works" with no special adjustments needed,
at least in DG forms. So I assume the same will be true in DG tables.
I had meant to reply to say that hopefully that would be the case the
other day as the DG is based on fields... Th
need to display
Arabic (or other right-to-left) text in a data grid before long. I
haven't tried it yet. Any predictions? Will it work?
I expect I'll ultimately need Arabic display in both tables and forms
if that makes any difference.
Like the subject says
I'm updating a desktop app in LC 7.x and will probably need to display
Arabic (or other right-to-left) text in a data grid before long. I
haven't tried it yet. Any predictions? Will it work?
I expect I'll ultimately need Arabic display in both tabl
column witdths all to be saved between sessions… and more.
I had no desire to code a GUI for each table so I dug into the heart of the
Data Grid. My starting point was how the .net TableAdapter and DataGridView
works. I had never (and have not yet) coded C# .net but the solution I was to
upgrade
I'm building a data grid (table style) but instead of having alternate
row colors, I'd just like a line at the bottom of each row that has
data. My users will be able to customize various parts of the data grid
and then, in most cases, it will be printed on a B&W laser printer
This problem has come up before, but I don't remember understanding or
solving it.
In a data grid with the vScrollBar set to true, scrolling suddenly stops
working. Any attempt to scroll through about 100 rows of data simply
jumps to the end and shows only the last row at the very top o
Thanks Pete. I’ll give it a try, but it looks like this is for dragging a data
grid row out of the data grid into some other place. I want to drag a file from
the Finder or Explorer into the data grid. If worse comes to worse I’ll create
a landing pad field.
Bob S
> On Apr 21, 2015, at
sql.com/sqliteadmin.html>
On Tue, Apr 21, 2015 at 3:10 PM, Bob Sneidar
wrote:
> No takers eh?
>
> Bob S
>
>
> > On Apr 20, 2015, at 16:24 , Bob Sneidar
> wrote:
> >
> > Any idea if I can use dragDrop with a data grid object? Currently I get
> the gray cr
No takers eh?
Bob S
> On Apr 20, 2015, at 16:24 , Bob Sneidar wrote:
>
> Any idea if I can use dragDrop with a data grid object? Currently I get the
> gray cross circle when trying to drag a file to a data grid. I wanted to
> create an import handler activated by simply dr
Any idea if I can use dragDrop with a data grid object? Currently I get the
gray cross circle when trying to drag a file to a data grid. I wanted to create
an import handler activated by simply drag dropping the file onto the data
grid. I can do it with a field, but not with a data grid.
Bob
It’s my understanding that if you want to do anything fancy with a data grid,
forms are the way to go. A simple checkbox is one thing. Displaying different
results depending on content is another.
Bob S
On Mar 8, 2015, at 23:06 , JB
mailto:sund...@pacifier.com>> wrote:
Maybe I need to
ed DGH, but after looking at some
> of the examples, it looks to be very helpful.
>
> Here is a link to lessons re: the datagrid that use the DGH.
> http://lessons.runrev.com/s/lessons/tags?tag=Data+Grid+Helper
> ___
> use-livecod
s?tag=Data+Grid+Helper
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
John Balgenorth
>>
>>
>> On Mar 8, 2015, at 8:39 PM, JB wrote:
>>
>>> Thanks for the link, Mike!
>>>
>>> John Balgenorth
>>>
>>>
>>> On Mar 8, 2015, at 8:27 AM, Mike Bonner wrote:
>>>
>>>> Lo
; John Balgenorth
> >
> >
> > On Mar 8, 2015, at 8:27 AM, Mike Bonner wrote:
> >
> >> Look here:
> >>
> http://lessons.runrev.com/m/datagrid/l/7311-how-do-i-customize-a-table-s-columns
> >>
> >>
> >> On Sat, Mar 7, 2015 at 10:54 PM,
I just downloaded the PDF and read it. The PDF
is excellent! The info at the end answered many
questions and showed me ways to handle things
I wanted to do in differently using the dgProps &
setting them using a script. I now see how to use
hidden columns, when to set persistent data as
false, h
Thank you for the info and link, Terry!
I did not have the PDF. Tha will solve
a lot of problems and make it easier.
John Balgenorth
On Mar 9, 2015, at 2:16 AM, Terence Heaford wrote:
> And specifically.
>
> dgColumnSortDirection [COLUMN]
>
> - Get/set the direction of the sort for the col
And specifically.
dgColumnSortDirection [COLUMN]
- Get/set the direction of the sort for the column. Valid values are
'ascending' or 'descending’.
All the best
Terry
> On 9 Mar 2015, at 08:32, JB wrote:
>
> Is there a way to select descending using a script?
__
> On 9 Mar 2015, at 08:32, JB wrote:
>
> The lessons show the following script to sort a column,
>
> set the dgProps["sort by column"] of group "DataGrid" to “Name"
>
> This will select the Header column Name and place the sort arrow
> in the ascending position.
>
> Is there a way to select d
The lessons show the following script to sort a column,
set the dgProps["sort by column"] of group "DataGrid" to “Name"
This will select the Header column Name and place the sort arrow
in the ascending position.
Is there a way to select descending using a script?
John Balgenorth
___
Mike Bonner wrote:
>
>> Look here:
>> http://lessons.runrev.com/m/datagrid/l/7311-how-do-i-customize-a-table-s-columns
>>
>>
>> On Sat, Mar 7, 2015 at 10:54 PM, JB wrote:
>>
>>> Is there a way to set a graphic or button in
>>> a data grid tabl
raphic or button in
>> a data grid table column using a script?
>>
>> So if I want line 12 of column name to be
>> a graphic can I change the behavior like
>> I can with Haken’s script that modifies the
>> number format and instead of displaying a
>> di
Look here:
http://lessons.runrev.com/m/datagrid/l/7311-how-do-i-customize-a-table-s-columns
On Sat, Mar 7, 2015 at 10:54 PM, JB wrote:
> Is there a way to set a graphic or button in
> a data grid table column using a script?
>
> So if I want line 12 of column name to be
>
Is there a way to set a graphic or button in
a data grid table column using a script?
So if I want line 12 of column name to be
a graphic can I change the behavior like
I can with Haken’s script that modifies the
number format and instead of displaying a
different value for the number display
ns.runrev.com/m/datagrid/l/7339-what-do-i-need-to-do-to-deploy-a-standalone-with-a-data-grid
>>
>> Specifically the part of bulding with a datagrid using a splashstack. The
>> easiest way to get functional datagrids that are parts of seperate stack
>> files is to
:
> Tore, read this.
> http://lessons.runrev.com/m/datagrid/l/7339-what-do-i-need-to-do-to-deploy-a-standalone-with-a-data-grid
>
> Specifically the part of bulding with a datagrid using a splashstack. The
> easiest way to get functional datagrids that are parts of seperate stack
> f
if you would have to "start using.." the
revdatagridlibrary stackfile or not.
On Fri, Feb 6, 2015 at 2:41 PM, Tore Nilsen wrote:
> Thanks for pointing me in this direction. I have read this lesson, and I
> have also made the data grid templates dud, although there should be no
>
Thanks for pointing me in this direction. I have read this lesson, and I have
also made the data grid templates dud, although there should be no need for it,
as the compiler does include the correct data grid template as a substack. The
problem arises when I choose to move substacks into
Tore, read this.
http://lessons.runrev.com/m/datagrid/l/7339-what-do-i-need-to-do-to-deploy-a-standalone-with-a-data-grid
Specifically the part of bulding with a datagrid using a splashstack. The
easiest way to get functional datagrids that are parts of seperate stack
files is to incuded a
The problem with letting the compiler handle this is that I cannot access the
Data Grid Template stack from the main stack if it is not a part of the engine
file. The standalone setup dialog is somewhat confusing in the sense that it
seems as if it is possible to choose which substack files to
can be modified
if put in the right place, which the compiler does for you.
Bob S
On Feb 6, 2015, at 12:47 , Tore Nilsen
mailto:tore.nil...@me.com>> wrote:
I am using several Data Grid objects, as tables, in a standalone. When I try to
manually enter data into fields in the data grid
I am using several Data Grid objects, as tables, in a standalone. When I try to
manually enter data into fields in the data grid object it works alright as
long as the main stack and the substacks are built as a single file, but not
when I try to build the standalone with the substacks as
;>
>> By the way, do you confirm that if I need several data grids on the same
>> card I must get a data grid template stack?
>>
>> Up to now, when I need one data grid on a card, I usually get it by copy
>> (copy group "DataGrid" of group "Templ
On Fri, Nov 21, 2014 at 3:40 AM, André Bisseret
wrote:
>
> By the way, do you confirm that if I need several data grids on the same
> card I must get a data grid template stack?
>
> Up to now, when I need one data grid on a card, I usually get it by copy
> (copy group &
Le 21 nov. 2014 à 01:20, Trevor DeVore a écrit :
> On Thu, Nov 20, 2014 at 11:46 AM, André Bisseret
> wrote:
>
>>
>> My new problem is:
>> How to duplicate a model stack that has a data grid template substack ?
>> I need to be able to open the stacks of two
On Thu, Nov 20, 2014 at 11:46 AM, André Bisseret
wrote:
>
> My new problem is:
> How to duplicate a model stack that has a data grid template substack ?
> I need to be able to open the stacks of two different years.
> But they will have a same substack (same data grid template).
&
Thank you Sean for your reply.
I am benefitting from the wonderful Data Grid Helper since its beginning.
Unfortunately it can't help for my current problems
best
André
Le 20 nov. 2014 à 17:54, Sean Cole (Pi) a écrit :
> Hi André,
>
> You could probably benefit from
Hi André,
You could probably benefit from this:
https://livecode.com/store/marketplace/data-grid-helper-1-2-0/
For the hassle you need to overcome it may well be worth the price.
Sean Cole
*Pi Digital Productions Ltd*
www.pidigital.co.uk
+44(1634)402193
+44(7702)116447
π
'Don't tr
Bonjour,
Yesterday I needed help for the following problem:
several data grids copied on the same card do interact: when selecting a line
in one data grid, the selection of a line is triggered in the others!
Following the advice of Bob Sneidar, I grabbed 3 data grids from the tool
palette on
I note you can set the column alignments in a data grid in one line of code for
all columns.
set the dgProp["column alignments"] of me to tColAlignments
Is there a similar method for setting the Header Alignments in one line as say
set the dgProp[“header alignments&
Normally that would be true, but Datagrids work differently. If you set the
dgData of a data grid, given no sort, you will see that the dgDataOfLine and
the dgDataOfIndex are identical. Element 1 is line 1 and Index 1.
Now click one of the columns to resort. Element 1 is still line 1 but the
the index).
Regards,
Sri.
--
View this message in context:
http://runtime-revolution.278305.n4.nabble.com/Data-grid-Line-or-Index-tp4685113p4685115.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-livecode mailing list
us
Here is a good one! When getting the dgData of a data grid, are the numbered
keys the lines (so the current sort affects it), or are they the indexes (the
order the records were in when the dgData was set)?
Bob S
___
use-livecode mailing list
use
On Sun, Oct 19, 2014 at 11:26 AM, JOHN PATTEN wrote:
> I figured I was making it more difficult than it needed to be :)
>
>
But of course :)
Anyway, you want to sum the *squares* of the X & Y differences, not the
abs(), to get the shortest distance. (the distance is actually the square
root of
round(xLeft /kHDist) * kHDist into xLeft
end locToSnap
--
View this message in context:
http://runtime-revolution.278305.n4.nabble.com/Snapping-To-A-Grid-of-TopLefts-tp4684742p4684746.html
Sent from the Revolution - User mailing list archive at Nabble.com
Thanks Martin and Ali,
I figured I was making it more difficult than it needed to be :)
I’ll give those a try.
Thanks again!
John Patten
SUSD
On Oct 19, 2014, at 11:21 AM, Martin Koob wrote:
> This will snap to a 100 X 75 grid anywhere on the card. It does not restrict
> the boun
This will snap to a 100 X 75 grid anywhere on the card. It does not restrict
the bounds i.e. left from 50 to 275, but that could be added.
on mouseUp
put the top of me into tTop
put the left of me into tLeft
put round(tTop / 75) * 75 into tNewTop
put round(tLeft /100) * 100 into
Hi John,
I use this handler to snap to a grid, there may well be clearer / more
efficient implementations though.
constant kHDist = 100 // horizontal distance between points
constant kVDist = 75 // vertical distance between points
on locToSnap @xLeft, @xTop
local tTopOver, tLeftOver
put
1 - 100 of 366 matches
Mail list logo