Re: Delete element from array

2017-01-29 Thread jameshale via use-livecode
Richmond Mathewson via use-livecode wrote
> Others can please chime in here… I'm not sure exactly why the new
> dictionary is "irritating" but it is. 
> 
> let's say I want to see all the properties for buttons. I think the old
> dictionary gave us that option.
> 
> Now if I click on "association "button"  and click type "properties" I get
> the button props, but the top window on the right only shows a only a few

Not sure what you mean. When I click on the Type "properties" and
Associations "Button" I get a list of 116 item in the top right hand window
of the dictionary. Of course only the first 22 are showing and to see the
rest I need to scroll the list. Perhaps if the font was smaller you would
see more items at one time but to say they are not all there. If you compare
the LC8 with the LC6 dictionary under these circumstances you will notice
the absence of some items. As far as I can tell they appear to be synonyms
for existing terms. For example the entry for "accelKey" is not in LC8+ as a
seperate entry but is listed as a synonym for "acceleratorKey".

Typing "accel" into the search box on LC6 will display 6 items. On LC8 only
3 as the extra 3 items under LC6 are synonyms of the three items shared with
LC8+.

So I guess on change to bring the LC8+ dictionary up to par with the old one
would be to duplicate all the entries that are synonyms. Not sure if that
would be wise, although having synonyms show up would be nice.




--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Delete-element-from-array-tp4711916p4712035.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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

Re: [ ANN ] Release 8.1.3 RC-1

2017-01-20 Thread jameshale via use-livecode
I can confirm the interaction with the Data Grid Helper plugin. 
When I removed my copy everything appeared as expected.
If I left it in I got nothing under the plugins menu.
Added some log excerpts to bugzilla report
http://quality.livecode.com/show_bug.cgi?id=19120



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ANN-Release-8-1-3-RC-1-tp4711784p4711821.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: Goofy question about Datagrids

2016-11-02 Thread jameshale
Interestingly I actually wasn't aware of LC's table field when I was working
on the interface of my current app. Given all my previous work with LC was
really about utilities that acted on something external and produced
something external to the stack. Indeed I rarely made standalones being
quite happy to use my tools while in the IDE.
When I did think of the table field I saw it as nothing more than a way to
display tab delimited text.

Where I have needed to use a table "like" field I have also wanted to have
something more than just text involved.
For example, a checkbox or a radio button. An image or some other control
associated with a line of the table.

The data grid makes this really quite easy, once you get your head around
it.

It is really useful to go through the examples in the Data Grid guide (the
one included with LC 8.1+, not the one on the LC web site) and just follow
along. The examples should all work as they had to be tested in order to
create the images to match LC8+'s IDE. It is really worthwhile and doing
them, rather than just reading through them takes a lot of the mystery out
of the Data Grid and makes you appreciate what a phenomenal job Trevor did
in creating it.



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Goofy-question-about-Datagrids-tp4709954p4709976.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: QCC down?

2016-08-12 Thread jameshale
Never mind.
I have been let in now.



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/QCC-down-tp4707434p4707435.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


QCC down?

2016-08-12 Thread jameshale
Just tried to look at a bug and got a forbidden entry. Specifically the
following three lines...

Forbidden
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an
ErrorDocument to handle the request.


Can others get in?

James




--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/QCC-down-tp4707434.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: Application Transport Security deadline for iOS apps

2016-07-11 Thread jameshale
According to an article on TechRepublic (
http://www.how-to-migrate-to-https-using-app-transport-security-when-developing-ios-apps

 
)

"If you're using WKWebView, an arbitrary connection will be allowed for
websites that are not HTTPS-enabled."

So arbitrary connections are ok in the Xcode/Swift world.
Does the browser widget use a WKWebView on iOS?

James





--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Application-Transport-Security-deadline-for-iOS-apps-tp4706561p4706587.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


PDF version of Docs quickly generated in LC8.1DP2

2016-06-30 Thread jameshale
Recently I noticed a comment regarding the PDF User Guide which implied that
now when you select it from the Help menu within LC it gets generated on the
fly from the guides present in the Dictionary.

So I thought I would give it a go.

I am using LC8.1DP2

In less time than it took to generate ONE of the guides in the Dictionary
window, Preview opened (I am on a Mac) and the "Release Notes..." appeared.
Looking at the top of the window I noticed there were some 684 pages in
these "release notes". I clicked up in "view menu" and selected "Table of
Contents" and there they were, all the guides and entries for each
subsection. In fact the subsection entries went deeper than you can see
within LC as it only show two levels of heading in the dictionary side
panel.

They appear MUCH faster than looking at them in LC's dictionary pane.
They have the complete table of contents.
They are of course now fully searchable (once you give time for your PDF
reader to index them.)

Some caveats at this time:
Not all internal nor external links seem to work.

Overall a brilliant addition to the IDE.
Well done!

James



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/PDF-version-of-Docs-quickly-generated-in-LC8-1DP2-tp4706231.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: Refresh Data Grid not working in 8.1?

2016-06-26 Thread jameshale
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.

___
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


Refresh Data Grid not working in 8.1?

2016-06-25 Thread jameshale
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

  
I am unable to get it to work.

It seems the "Refresh Data Grid" button doesn't.

The actual lesson instructions do work and setting the dgText as directed at
the end (adjusting for tab delimited column names) places the data in the
data grid with line numbers as required.

However I am unable to get anything to happen when I press the "Refresh Data
Grid" button as directed.

I am using a Mac and LC8.1DP1 and would really appreciate it is someone else
would try out this lesson and tell me if it works for them or does the
"Refresh Data Grid" button do nothing.

If the latter, time for a bug report.
If the former, well I don't want to think about that possibility just yet.

James



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Refresh-Data-Grid-not-working-in-8-1-tp4706089.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: Feature Exchange any one?

2016-06-07 Thread jameshale
Ok it is up.

http://quality.livecode.com/show_bug.cgi?id=17816

over to your Ali.

James



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Feature-Exchange-any-one-tp4705390p4705544.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: Feature Exchange any one?

2016-06-07 Thread jameshale
Ali Lloyd-2 wrote
> Q1 - yes, that's fine by me, as long as you've signed the CLA
> http://livecode.com/store/account/contributor-agreement-signup
> (I'm not going to make too much of a habit of committing things on other
> people's behalves, but the datagrid docs are important and I really
> appreciate the time you and Paul have taken / are taking to help with
> this)
> :-)
> 
> Q2 - we don't currently have good 'support' for combining sub-guides into
> one, so at the moment I'd prefer just one markdown file if that's ok.
> 
> Q3 - I think that's a sensible approach, yes!

Thanks Ali,
Pretty sure I signed the agreement so we are good to go.

Will hopefully be back in a day or two with a QQC link.

James



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Feature-Exchange-any-one-tp4705390p4705476.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: Feature Exchange any one?

2016-06-07 Thread jameshale
Paul Dupuis wrote
> Perhaps if I find some time later this summer, I'll take a stab at the
> Guide itself.

OK the bug bit and I thought, why not.

I have begun to convert the DG Manual to markdown.

It is actually fun (I know, I need to get out more.)

I have converted the first two chapters (66 out of 230 pages) and before I
move on have a few questions.

The first is for Ali: Can I submit a zip of the files in a bug request to
pass them over too? Modifying something on GitHub is one thing,adding all
this is another.

Actually the second one is for Ali too: The images will all be in a folder
called images (for insertion into the existing folder) but how many markdown
docs should there be. A single doc would be very big. I am thinking along
the lines of one doc per chapter. Thoughts?

Q 3. Currently the images used are all pre LC 8. I was thinking of using
these first up and once everything done and dusted (and up on Github) go
through and update them to LC 8.  Yes?





--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Feature-Exchange-any-one-tp4705390p4705473.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: [ANN] Release 8.0.0

2016-05-04 Thread jameshale
Great news!

Congrats to the team, well done.

But as Colombo would say, there's just one more thing.

Looking at the pricing page on the website you need to scroll to the bottom
to see the open source version.
Really there should be three columns, GPL (or Community), Indy, Business 
With the features and benefits (and omissions) also listed to include GPL
(or Community).

I supported the kickstarter because of open source.
I believe it should be there as an equally viable option at the same level
as the paid for licenses, not hidden at the bottom of the page.
I am proud LC went open source, I would like LC to show they are proud too.

James



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ANN-Release-8-0-0-tp4704202p4704216.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: ListStyle - How to control distance between the list marker and subsequent text

2016-04-23 Thread jameshale
try 

set the listindent of line 2 of fld "categoryPickerHelp" to 15

and play with the value.

James



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ListStyle-How-to-control-distance-between-the-list-marker-and-subsequent-text-tp4703809p4703811.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: How do I specify a non-filled SVG path

2016-04-23 Thread jameshale
My previous post used in effect two seperate paths.
One advantage to using this method it that by changing the "fill rule" you
effectively get two icons for the price of one, a filled one and an outline
one. This was indeed what I was after.

However I was curious as to other examples I had seen where the fill rule
had no effect.
It turns out these hollowed out icons compounded their paths.

While looking at one such icon in my graphics app I noticed it seemed to
have two paths, an outer rectangle and an inner one. However it was not two
rectangles grouped (as in my first attempts).
Although constructed that way there was the option of compounding their
paths once you had the image you wanted.

Here is the path of the same bookmark icon I presented before except this
was made a compound path before exporting.

M249.6,689.8 C249.6,689.8 249.4,569.8 249.4,569.8 C249.4,569.8 249.8,556.6
253.2,552.2 C256.598,547.803 261.4,545.8 261.4,545.8 C261.4,545.8 285.6,546
285.6,546 C285.6,546 281.876,548.756 278.2,553.4 C274.4,558.2 274,570.4
274,570.4 C274,570.4 273.4,690 273.4,690 C273.4,690 261.4,666 261.4,666
C261.4,666 249.8,689.8 249.6,689.8 z M250.725,685.075 C250.925,685.075
261.35,663.7 261.35,663.7 C261.35,663.7 272.475,685.95 272.475,685.95
C272.475,685.95 272.8,570.2 272.8,570.2 C272.8,570.2 273.225,563.95
274.975,557.325 C276.011,553.403 283.1,546.825 283.1,546.825 C283.1,546.825
261.85,546.45 261.85,546.45 C261.85,546.45 257.498,548.428 254.1,552.825
C250.7,557.225 250.475,570.075 250.475,570.075 C250.475,570.075
250.725,685.075 250.725,685.075 z

Compounding does not seem to lessen the path data required, just impacts on
the usefulness of the fill rule.

Personally I prefer using the seperate paths approach (at least in my
current app) as it affords the flexibility of filled in or outline simply by
change in a widget property. Outline icons provide a subtle way to show a
non active look.
Coupled with the ability to turn the hilite on or off gives you 4 possible
states for the icon without the need to change the path data.
Very impressed.



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/How-do-I-specify-a-non-filled-SVG-path-tp4703783p4703810.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: How do I specify a non-filled SVG path

2016-04-23 Thread jameshale
OK I worked it out.

One needs to draw two paths, an outer and an inner.
Then open the SVG file in a text editor and remove everything except the
actual path instructions.
This includes removing "fill" and "stroke" attributes too.
The paste the remaining path into the "icon path" of the widget.

If using a script:

put "M144,203.6 C144,203.6 143.8,83.6 143... 144,203.6 z" into svgpath
--this could be very long so copy and pasting in the IDE is better.
--then
 "set the iconpath of widget "widgetName" to  svgpath

The "fill Rule" will determine if the inner path is a cut out of the outer
or not.
In my testing "even odd" gave me an outline image, whereas "non-zero" filled
it all in.

For instance I wanted a bookmark bigger than the one supplied by fontawsome
so I drew one.

if you want to see the effect of the fill rule here is the path data so you
can try it out yourself.
You should be able to clearly see the two paths in the data. Hint, each one
ends in a "z" (close path instruction)

M144,203.6 C144,203.6 143.8,83.6 143.8,83.6 C143.8,83.6 144.2,70.4 147.6,66
C150.998,61.603 155.8,59.6 155.8,59.6 C155.8,59.6 180,59.8 180,59.8
C180,59.8 176.276,62.556 172.6,67.2 C168.8,72 168.4,84.2 168.4,84.2
C168.4,84.2 167.8,203.8 167.8,203.8 C167.8,203.8 155.8,179.8 155.8,179.8
C155.8,179.8 144.2,203.6 144,203.6 z
M145.125,198.875 C145.125,198.875 144.875,83.875 144.875,83.875
C144.875,83.875 145.1,71.025 148.5,66.625 C151.898,62.228 156.25,60.25
156.25,60.25 C156.25,60.25 177.5,60.625 177.5,60.625 C177.5,60.625
170.411,67.203 169.375,71.125 C167.625,77.75 167.2,84 167.2,84 C167.2,84
166.875,199.75 166.875,199.75 C166.875,199.75 155.75,177.5 155.75,177.5
C155.75,177.5 145.325,198.875 145.125,198.875 z


James





--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/How-do-I-specify-a-non-filled-SVG-path-tp4703783p4703789.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


How do I specify a non-filled SVG path

2016-04-22 Thread jameshale
I have been playing with the SVG widget in LC8RC1 and want to have a filled
and unfilled version of a path.
I know this can be down as LC comes with examples. ("bookmark" and "bookmark
empty")

What I want to do is create some of my own however whatever hollow path I
draw the widget always shows the path filled in even though other graphics
apps show the empty shape.

I have tried making the shape from two paths that are not joined but the
widget insists on closing the path and filling it in.

The fill-rule setting doesn't seem to have an effect.

Suggestions?

Is there some special way they need to be drawn?



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/How-do-I-specify-a-non-filled-SVG-path-tp4703783.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: Help with Nested Arrays - Json

2016-04-18 Thread jameshale
As Phil pointed out, you seem to be mixing containers with values.

Try...


   put "SivaSiva" into tStack --tStack is a key to the first dimension
   put "0" into tGroupCounter 

   repeat for each line x in tData 
  put item 1 of x into tCard -- tCard is the key to the second dimension
  put item 2 of x into tGroupType 
  if tGroupType = "link" then 
 add 1 to tGroupCounter 
 put (tGroupType & tGroupCounter) into tGroupType --this is the
third dimension key
  end if 

 -- now we have keys for the three dimensions we can place values for
each bit of data
 -- and these are associated with the 4th dimension keys  "label",
"imgpath", 
 -- "message", "target" and "orientation"

  put item 3 of x into aPortalLinks[tStack][tCard][tGroupType]["label"] 
  put item 4 of x into
aPortalLinks[tStack][tCard][tGroupType]["imgPath"] 
  put item 5 of x into
aPortalLinks[tStack][tCard][tGroupType]["message"] 
  put item 6 of x into aPortalLinks[tStack][tCard][tGroupType]["target"] 
  put item 7 of x into
aPortalLinks[tStack][tCard][tGroupType]["orientation"] 
   end repeat 
   put JsonExport(aPortalLinks) 
end mouseUp 



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Help-with-Nested-Arrays-Json-tp4703628p4703633.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: Standalone (and stack in IDE) getting larger on each launch

2016-04-18 Thread jameshale
solved.
I recently added a card to act as a sort of home card.
It was from this card I called a routine to adjust the stack height.
I discovered that all my cards EXCEPT for this one had a group menu
assigned.
I had forgotten to add this to the home card and only realised it might be
missing when I noticed that switching between this card and any other
changed the stack height by 22 pixels.
In my effort to compensate for this, at the time, unknown cause I had been
storing the stack height as a custom prop, which by itself was OK.
However depending on where I left my stack (whether on the home card or
another) this prop would get reset.
What I was seeing was it getting reset to the desired height plus 22
(because the home card did not have the menu bar installed) and this then
being saved as the desired height. Next time I open, the new desired height
is read but if I went to the home card it was again increased by 22 and
saved. Resulting in an ever increasing stack height.
Placing the same menubar group on the home card stopped this behaviour as LC
did not need to  the 22 pixels normally scrolled out of view to hide
the menubar.

Moral of the story - if you have a menubar installed make sure it is on all
cards in your stack that the use will see else you too will get changing
card sizes.



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Standalone-and-stack-in-IDE-getting-larger-on-each-launch-tp4703211p4703607.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: Standalone (and stack in IDE) getting larger on each launch

2016-04-12 Thread jameshale
hmm, worth a try.
i applied the suggestion to the preopencard handler of the card I know will
be first on view.
setting a delay of up to 30 ticks made no difference.
I will leave this for now.
I think something else it happening (possibly due to some script that gets
called) which is getting in the way.
I can live with the little jump for now.




--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Standalone-and-stack-in-IDE-getting-larger-on-each-launch-tp4703211p4703344.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: Standalone (and stack in IDE) getting larger on each launch

2016-04-09 Thread jameshale
setting the destroystack true or false had no effect.
I tried to create a test stack to replicate the issue but couldn't which
implies I guess that it is something in my stack doing it.
For now I have moved the sizing handler further up the start chain and at
least I have kept the increase constant. This could mean that somewhere
between the new sequence and the old the increase in stack size is taking
place.
In any case I will leave this for now and come back to it later.
Thanks for the suggestions.
If I do find out what it is I will post again.

James



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Standalone-and-stack-in-IDE-getting-larger-on-each-launch-tp4703211p4703282.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: IMG resize advice wanted

2016-03-30 Thread jameshale
So everything worked out and I was able to resize all images as needed to fit
within the bounds of the field they were displayed in.

The script I used was:


a couple of things of interest.
importing paint does not fail helpfully. Sometimes you get an error,
sometimes nothing, but if it does fail the handler exits
I am on a Mac hence my filtering out of the .DStore.
You may note I did have a "Delete image thefile" line.
I thought this would delete the image I had just manipulated.
Yes and no.
In my test stack it did, in my production stack it didn't.
In fact with a folder of 60 jpegs it left 16 still on the card.
Hence the repeat loop, which looking at it now could simply be "repeat for
each" rather than use a count.
This is also why I go to another card that is otherwise empty.
Anyway, 60 images in around 3 secs, cool.




--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/IMG-resize-advice-wanted-tp4702682p4702787.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: IMG resize advice wanted

2016-03-28 Thread jameshale
Thanks Scott, I will ex-lore the snapshot option.



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/IMG-resize-advice-wanted-tp4702682p4702702.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


IMG resize advice wanted

2016-03-27 Thread jameshale
I current;y have an app for indexing ans searching ePub files. The focus of
the app being the ability to apply complex searches against the text of the
ePub.
That being said some ePubs have embedded images which my app can display in
situ.
At this time the on;y change I make is to ensure the image sits by itself
(i.e. There is Aline breaker both before and after the image.)
However images can be large.
Their height is of no real concern but their width is.
If their width is greater than the width of the field displaying the text
they are embedded within I need to allow horizontal scrolling. The image
could also end up being displayed in multiple text panes, something I really
want to avoid.
There has been some recent discussion about resizing images and so I thought
it was time to tackle this in my app.
When I read in an ePub I extract all resources and put the text into a
SQLite dub and the images into a separate folder.
My question is this.
What would make more sense, resize the actual image files to fit into the
desired text field without requiring scrolling or read in the existing files
and resize on the fly within LC.
The advantage of the first is that it only needs to be done once (unless the
user is constantly resizing the app).
The disadvantage is that the original image is lost. 
The advantage of the second is that nothing happens to the original image.
The disadvantage is that all the   links within the text would require
rewriting and each image would require processing each time it was needed.
After writing the above the first option looks better.

Anyway, can anyone give me a hint as to how to use LC to read in an image,
resize it and then write it out again?



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/IMG-resize-advice-wanted-tp4702682.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Error in DG row behaviour crashing LC?

2016-03-20 Thread jameshale
(Sorry if this is a second post - not sure first went to the right place)

While modifying the Fillndata handler in the row behaviour I managed to
crash LiveCode (LC7.1.3rc1). 

After a few crashes where I selectively commented out my recently added
lines of script I traced it to my setting a property of an apparently
nonexistent object in my row template. 

Well the object did exist but I had miss-typed its name. 

Once I corrected the miss-type all was well again. 

Has anyone else come across this? 

I can understand the datagrid choking on my error, but I did not expect it
would crash LC. 

Didn't see anything in bugzilla that matched this.



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Error-in-DG-row-behaviour-crashing-LC-tp4702265.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: using the SHELL function to GREP a body of text

2016-03-19 Thread jameshale
Peter TB Brett wrote
> Unfortunately XHTML and HTML are not regular languages, which means that 
> they cannot be processed correctly with regular expressions.
> 
> Indeed, "Implement an HTML parser using regular expressions" is a 
> well-known prank project to suggest for inexperienced developers to 
> waste their time on...
> 
> So, your approach is sadly not workable.
> 
> If you're processing XHTML, I recommend using revXML.
> 
> If you need to process arbitrary HTML, then unfortunately the only 
> sensible option is to use a browser...

Bummer.
Not only are XHTML and HTML not regular languages but their use in ePub's is
even more irregular (if that is possible.)
I have some texts which include both  forms: 
Others where every tag 'h', 'p' etc has an id attribute.

A browser is not an option as I will need to use LCs chunking and text
selection features.

I am using the htmltext of a field and given the htmltext function ignores
most of what I was trying to remove it probably doesn't matter in the end. 
Just a bit untidy.

Thanks Peter.



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/using-the-SHELL-function-to-GREP-a-body-of-text-tp4702346p4702348.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: Error in DG row behaviour crashing LC?

2016-03-19 Thread jameshale
Richard Gaskin wrote
> It would be helpful to check this under the current versions of v7 and 
> v7 (7.1.3rc1 and 8.0dp15 respectively), and if the crash recurs in 
> either please submit a bug report.

Interestingly I attempted to do just that. But rather than threaten the app
I am working on (one crash did strange things to all the fonts on relaunch)
I decided to make a test stack to submit.

This was both good news and bad news.

Bad news: Couldn't reproduce the crash - obviously not simply what I
initially thought.
Good news: In trying to reproduce the crash I ended up getting the DG to
work as I originally wanted.

Moral of the story: Making a simplified stack to demonstrate a "bug" can
bring all sorts of gifts.



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Error-in-DG-row-behaviour-crashing-LC-tp4702265p4702340.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


using the SHELL function to GREP a body of text

2016-03-18 Thread jameshale
I have large bodies of xhtml/html text stored in an array which I would like
to clean up using GREP.
I have been using the 'replacetext' function to great effect but I have hit
an impasse.

There are some situations where I think I really need to use back references
but LC's GREP does not allow them.

for example:


In the example I only want to keep the 'id' attributes but retain the tags
they are in. I have no way of knowing what other attributes are present.

I initially thought I could do this using a non-greedy search pattern which
works in the above case.
eg 


But if the text was...

My non-greedy search pattern would grab  and I would end up with...

losing the id attribute of the header tag.


So I am wondering if it is possible to pass a text variable through the
shell function which would then use a shell script to handle my GREP. 

My app will be deployed on OS X and possible iOS.

At this stage I have not considered the nature of the script I should
construct nor the GREP required to do what I am attempting. (Any hints
gratefully accepted.)

Right now I just want to know if this is a workable approach?

James



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/using-the-SHELL-function-to-GREP-a-body-of-text-tp4702346.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: using the SHELL function to GREP a body of text

2016-03-18 Thread jameshale
J. Landman Gay wrote
> I cannot pass up a chance to post the best reply ever written:
> 
> ;

Very good. 





--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/using-the-SHELL-function-to-GREP-a-body-of-text-tp4702346p4702375.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: Launcher Stack and Saving

2016-03-08 Thread jameshale
Randy Hengst wrote
> Second, when I “quit” the launcher the changes made to the “main” stack
> are not saved. However, when I close by clicking the “red” dot of the
> “main” stack, the changes are saved. 

I have not gone through the lesson but the launcher/mainstack structure
usually implies that once the "launcher" has done its bit, the "main" stack
is the one left open. Thus to quit, you are quitting the main stack, not the
launcher. If this is the case then the "closestack" message sitting in your
main stack is only sent when the user or a handler "closes" its window. Is
this what you are doing to "quit". 
If not, perhaps you want to act on the "shutdownrequest" message
(remembering to pass it)?


> Finally, is it possible to place the “main” stack in the OSX package
> rather than having the stack in the same folder as the launcher
> standalone?

When you build the standalone the launcher and the engine are combined into
the executable within MacOS folder within the app's package. The main stack
and other resources will also be in that folder, either as is or in any
folder structure you have constructed. Isn't that where you want them? 
They should all be in the 'package' else they won't be part of your app.

James



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Launcher-Stack-and-Saving-tp4702096p4702110.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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

Re: updating progress to user during long handler

2016-02-27 Thread jameshale
Thanks for the inelegant solution Phil.
Although given I didn't find any to unlock (despite the unlock screen
getting things to work) I trust I do not need it.
Thanks Kay for the interpretation of the dictionary entry.
Makes perfect sense.
Opportunity for an edit to the entry I guess.

We can probably put this thread to bed now.
Thank you all for your help



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/updating-progress-to-user-during-long-handler-tp4701326p4701584.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: updating progress to user during long handler

2016-02-26 Thread jameshale
Well I thought I should have a look given these comments.
I went through every GLX script I could find looking for lockscreens - none.
I then went through all my scripts in my main stack, the card scripts of the
opening card as well as all library stacks I am calling.
Every lockscreen was paired (lock/unlock) within the handler it was located.
None of these handlers, BTW, were being called during the opening sequence.

Just to be sure I also added an if lockscreen = true then breakpoint at a
couple of my progress points.

Launching the app it proceeded as wanted, updating the splash screen with
progress reports until the screen displayed. 
None of the lockscreen checks fired, indicating to me that there were
actually no lockscreens were in effect during the startup.

So, I do not think there will be a problem as has been suggested.
I also can't explain why setting the lockscreen to false in the Splash stack
makes things work.

As an aside when reading the dictionary on lockscreen it states that its
setting has no effect in the IDE with script debug enabled. 
I have script debug mode enabled.
I am also doing all this testing in the IDE.
If lockscreen has no effect in the IDE under these circumstances then why
does setting the lockscreen to false allow things to work?

Curious, no?



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/updating-progress-to-user-during-long-handler-tp4701326p4701572.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: updating progress to user during long handler

2016-02-26 Thread jameshale
SOLVED:

Changed the updateme handler (in the splash stack) to include unlocking the
screen

  on updateme para
  set lockscreen to FALSE
  put para into fld "theprogress"
  end updateme

All the progress updates now come through.

Thanks to everyone who helped get me here.


For those that came in late the issue was updating a field in a splash stack
while the main stack got ready for the show. 
I had placed 'progress' notes at different places in the main stack opening
handlers and sent them to the splash stack for display in a text field.
(Multiple handlers of varying and unpredictable lengths so progress bars not
really an option.)

The snippet I used at these message points was like this:
put "Extracting epub" into mupdate 
send "updateme mupdate" to stack "splash" 
wait 0 milliseconds with messages 

Where the updateme handler was simply:
  on updateme para
  put para into fld "theprogress"
  end updateme

The problem was nothing SEEMED to be getting through.
The initial text in fld "theprogress" stayed until the splash screen went
away.
There were no lockscreens found in my handlers.
Changing the wait time did not help.
Placing a "put" to bring up and update the message box, did not help (it
didn't update either).
Placing a BEEP or two and some breakpoints demonstrated that the messages
WERE being sent during the startup. 
Breakpoints DID allow the splash screen to update.

I am using the GLX framework and did not really want to see if there was any
blocks within it.

Then I remembered the messages do get through to the "updateme" handler in
the Splash stack!

Rather than try to find where things were locking up, why not just ensure it
is unlocked when I need it.






--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/updating-progress-to-user-during-long-handler-tp4701326p4701566.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: updating progress to user during long handler

2016-02-26 Thread jameshale
Hi Kay,
Well way ahead there.
I had tried a one second delay before my first post.
It had no effect (except for taking longer😊)

Kay C Lan wrote
> On Fri, Feb 26, 2016 at 9:56 AM, jameshale <

> james@.id

> > wrote:
> 
>>
>> Now test some 'descending' wait after the text has been placed in the
>> field:
> 
> wait 1 sec
> wait 1 tick
> wait 1 millisec
> 
> See if you can come to a compromise that allows the screen to refresh
> without slowing the code.
> ___





--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/updating-progress-to-user-during-long-handler-tp4701326p4701498.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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

Re: updating progress to user during long handler

2016-02-25 Thread jameshale
Hi Kay,
Actually never thought of that (doh!)
Beeps in the updateme handler fire. - so the handler is getting the message
Breakpoints in updateme as well as following "send" in main routine show the
text appearing in the SPLASH stack.

So, the messages are being sent.
The updateme handler is being run (BEEP was sounded)
The field will update, WHEN a breakpoint is hit.
The field does not update (except for a flash just at the very end of the
main handler) when no breakpoints are present.

placing the update message in the message box (put "blah blah blah") opens
the message box but does NOT update it.

So from all this I can see that the messages are being passed, the screen is
simply not updating.



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/updating-progress-to-user-during-long-handler-tp4701326p4701491.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: updating progress to user during long handler

2016-02-24 Thread jameshale
Thanks for the thought Phil
 
Phil Davis-5 wrote
> I find it sometimes helps to lock & unlock the screen right after 
> ..

Tried it but no change.




--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/updating-progress-to-user-during-long-handler-tp4701326p4701358.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: updating progress to user during long handler

2016-02-23 Thread jameshale
Hi Mark,

Hmm, it is possible I have a lock screen buried in there somewhere.
I will check it out.
Good to know the code should work.



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/updating-progress-to-user-during-long-handler-tp4701326p4701339.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: updating progress to user during long handler

2016-02-23 Thread jameshale
Hi Craig,
This is what I initially did but, as you surmised, I actually had no way of
knowing or predicting the actual progress. I then made some calculations and
'step' loops placing a sequence of progress bar updates.
Didn't work. Some bars didn't show and those that did didn't progress.
Hence I thought of the simpler solution of just informing the user of what
is going on.



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/updating-progress-to-user-during-long-handler-tp4701326p4701338.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: Accessing handler in LC resource stack

2016-02-07 Thread jameshale
Thanks Ali,


> Ah ok, it just needs the ...of stack "revStandaloneSettings" removed then, 

Worked!


> or should be changed to revSaveAsStandalone theStack, theOutputFolder 

Didn't work (tried it first :-))



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Accessing-handler-in-LC-resource-stack-tp4700856p4700884.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: Accessing handler in LC resource stack

2016-02-07 Thread jameshale
Ali Lloyd-2 wrote
> revsaveasstandalone.livecodescript is just a stack named
> "revSaveAsStandalone", so can be referred to that way, eg dispatch
> "handler" to stack "revSaveAsStandalone".
> 
> However, it *should* be in the backscripts already, so I think that may
> not
> be the problem (unless the GLX framework explicitly call a handler in
> stack
> "revSaveAsStandalone" of stack "revStandaloneSettings").

The handler is in the "glxApplicationProperties" plug-in that comes with
glx.

Specifically:
 send "revSaveAsStandalone theStack, theOutputFolder" to stack
"revSaveAsStandalone" of stack "revStandaloneSettings"

Looks explicit.

BTW This is in a TRY construct and this is where the error arises.
   91,72,1
   532,72,1





--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Accessing-handler-in-LC-resource-stack-tp4700856p4700881.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: DP13 breaks GLX framework

2016-01-14 Thread jameshale
Hi Trevor,
The only script I can see over 7000 lines is sqlYoga.
All my calls to this library take place after my preopenwindow handler and
as mentioned, when run from the message box it goes without issue. The app
seems to function fine from this point with functions that use sqlYoga
working as expected.
I feel Ali might be able n the right track as while tracing through the GLX
routines I noticed they relied heavily on the 'target'.



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/DP13-breaks-GLX-framework-tp4700166p4700202.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: DP13 breaks GLX framework

2016-01-14 Thread jameshale
Aha.
Thanks Ali.
Does a bug report need to be generated?
(Well, actually will you be entering one given you know what it is?)



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/DP13-breaks-GLX-framework-tp4700166p4700176.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: DP13 breaks GLX framework

2016-01-14 Thread jameshale
ok, the error I am getting is"
button "glxappManagedEngineMessages": execution error at line 7342 (Chunk:
can't find background), char 9

I can of course not find a line 7342 in a script that has only 279 lines.
The button referred to is in the 'scripts' card in a group 'frontscripts' of
the 'glxapplicationframework.dat' stack.

The calling chain is...
glxApplicationFramework ->glxapp_loadApplication
application->glxapp_openApplication
glxappManagedEngineMessages->preopenstack

I have tried tracing the path but it seems to be all ok. I can't find any
error, but see below.

If I launch and kill the handler when the script debugger comes up and then
call my "PreOpenWindow" handler (which resides in my main stack "program")
then my app completes its correct loading sequence and all is fine.
Note: before I do this my main stack has opened, it is just not initialised.
Running the preopenwindow handler completes the initialisation.

While tracing the launch progress there are many 'try..catch..end try'
blocks.
They are all quite simple and of the form..
   try
  some handler or function call
   catch e
  ThrowError e
   end TRY

In almost quite a few cases I would go to the "ThrowError e" line and into
the 'ThrowError' handler.
However nothing is in the 'e' parameter, at least nothing until the end.



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/DP13-breaks-GLX-framework-tp4700166p4700169.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


DP13 breaks GLX framework

2016-01-13 Thread jameshale
Hopefully there are people out there who have a more intimate knowledge of
the GLX framework than I. 
Opening a GLX based app with DP13 hits a snag in the last handler just
before the launcher is dismissed.
Consequently no preopenwindow handler makes it to the main app stack and
necessary set up routines do not happen.
All versions of LC8 up until this point have proceeded without incident.
Something has changed in DP13.



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/DP13-breaks-GLX-framework-tp4700166.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: Two SQLITE RevBD questions

2015-12-26 Thread jameshale
Thanks Peter, I was hoping that was the case.

James



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Two-SQLITE-RevBD-questions-tp4699831p4699834.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: DP6 more strict?

2015-10-05 Thread jameshale
Except the alternate syntax can no longer be handled.
Whatever side of the fence one eventually chooses the docs need to match,
and if this stricter mode is kept some flag about it in both the docs and
the release notes is warranted.



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/DP6-more-strict-tp4696868p4696888.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: DP6 more strict?

2015-10-04 Thread jameshale
I agree with MarkS on this, it is a good thing.

I think I would have liked a warning though.

One sort of looks past what has been ok before in trying to see where an
error is.
A bit like the difficulty in proofreading something you have written. You
tend to "see" what you expect rather than what's there.

James



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/DP6-more-strict-tp4696868p4696882.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


[ANN] UltraEdit Wordfiles for LCS and LCB

2015-09-14 Thread jameshale
Looking around for text editors with code folding and I found UltraEdit. 
It is not free ($79) although you can try it out for 30 days. 
It is cross platform and you can get it from here

It too has language definition files which it calls "wordfiles" 

I have made wordfiles for both livecodescript and livecode builder although
they are probably of more use to livecode builder files given they require
an external editor.
[These files have just been updated since my first post]

livecodescript.uew
  
livecodebuilder.uew
  

They need to be installed in the appropriate support folder 
[~/Library/Application Support/Ultraedit/Wordfiles] on the Mac (check the
website for other platforms) 

It has function id so you can see all your defined handlers etc in the
function list. 
It will fold on these as well as "if", "Switch" and "Repeat" structures.
(although it doesn't like single line "if" that have no "end if")

Full colour and style controls of the keywords (by type) is available via
the prefs window. 

Enjoy, 

James



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ANN-UltraEdit-Wordfiles-for-LCS-and-LCB-tp4696306.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: BBEdit/Textwrangler LCM for livescript

2015-09-10 Thread jameshale
Updated livecodeBuilder CLM to adjust function regex so that function names
appear in BBEdit's function popup

https://dl.dropboxusercontent.com/u/8212901/LiveCodeBuilder.plist
 

James



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/BBEdit-Textwrangler-LCM-for-livescript-tp4696091p4696217.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: BBEdit/Textwrangler LCM for livescript

2015-09-07 Thread jameshale
Thanks Peter and Kan,

Multi word keywords:
There does seem to be a way around this as mentioned in the update to
language modules doc (for BBEDIT 11+) but I am not clear as to the syntax.
As a work around (aren't they all!) I have split all multi word keywords
into their components removing those BBEdit chokes on (mainly the operators
like * < > >= & && etc)

Colorizing within quoted strings:
Put the modified string recognition pattern back.
Initially I was jumping back between xCode and BBedit to check the sysntax
and make changes. Unfortunately this introduces a few problems of its own. I
am now using the "plutil" to check that the XML is ok for a plist and the
console to ensure BBedit can read it.

More colours:
The updated docs mention the ability to group keywords into sets and then
apply a different color to each named set. I haven't been able to get this
to work. Even though I am using the latest BBEdit the console is telling me
that it cannot find any keywords if I use the new feature. I might be forced
to write to there support.

I have updated the livescript.plist file.

James



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/BBEdit-Textwrangler-LCM-for-livescript-tp4696091p4696101.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: LCB API's

2015-09-01 Thread jameshale
OK, now I understand my confusion.

I have been comparing the NEW dictionary to the OLD (V7 and before) where
the listing of terms was BETTER presented (at least in my opinion).

In the OLD dictionary the listing of items was a table with three columns
the first of which was termed "Keyword"

This is what I wanted to see both in the NEW dictionary's current list as
well as presented as the NAME of the description (shown in bold).

The nearest I could come up with was to use the quoted strings in the syntax
description although without any leading "the", "set" or "get".

The OLD dictionary listing also included the syntax but this was in the
third column with the type of keyword displayed in the second column.

So I guess I am arguing for a return to this style of presentation as I have
found it much easier to look through the list when I can see clearly the
"keyword" without anything else confounding it.

So, is it possible to have more than one column in your list?
Is it possible to filter the syntax description to only show the quoted
strings and remove the prepositions (the, set, get, put) when there is more
than one quoted string and thus display what was the "keyword" in previous
dictionaries?
If more than one column is provided then displaying the "type" and the
"library" (in LCB case) would also be great.
Can you use the "keyword" as defined above as the name displayed in Bold as
the heading for the description?

My use of square brackets for the library name was not the suggestion, just
the library name's inclusion. 

The question of "left vs leftlist" is redundant if the listing is lead by
the keyword as I have described. 
The keyword here is "is" :-)

Your explanation regarding needle makes sense once the metaphor is
explained.
It just never occurred to me, so I am assuming it might not occur to
another. 
Changing entries where it is used to also use haystack makes it clear and
light.
I see this is done in some entries but not others and where it is done it is
not defined.



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/LCB-API-s-tp4695794p4695940.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: LCB API's

2015-09-01 Thread jameshale
In the .mlc file an example syntax definition is of the form:

 "delete" "element"  "of" 

where the verbs, for want of a better term, are quoted.

Why can't these be the name that is shown in bold at the top of the entry?

So in the above example the entry would have at the top
*delete element...of*

The listing entry in the top pane could remain as is or duplicate this with
the addition of the .mlc file from which it comes. 
say (as well as next entry) 

   delete element...of [lists]
   delete element...to...of   [lists]

The "is" operator would be shown as
   is[com.livecode.string]
   is[com.livecode.list]
   is[com.livecode.arithmetic]
   is[com.livecode.logic]
   is[com.livecode.binary]

instead of...
/Left/ is /Right/
/Left/ is /Right/
/Left/ is /Right/
/Left/ is /Right/
/Left/ is /Right/


The current name could then be called something closer to what it is like
"engine pseudonym" (just kidding) or something.

"Needle" seems to be a pseudonym for "expression" which is OK just seems
unneeded. 

Thoughts?






--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/LCB-API-s-tp4695794p4695897.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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


Re: Formatted text in a field.

2014-04-02 Thread jameshale
Yes Peter is right.
If all you are looking to do is display the two pages then this might be the
go.

If you place a field "f1" on a page and set it up the way you want (size,
text characteristics etc) and then make two copies, field fa" and field
"fb".
Then make "f1" invisible.

make a button to load the pages like:

--intialize script--

global pn
global pr
on mouseUp
   set the htmltext of field "f1" to YOUR_STYLED_TEXT_VARIABLE
   put 1 into pn
   put the pageranges of field "f1" into pr
   put line pn of pr into pr1
   put line pn+1 of pr into pr2
   set the htmltext of  field "fa" to the htmltext of char (item 1 of pr1)
to (item 2 of pr1) of  field "f1"
   set the htmltext of  field "fb" to the htmltext of char (item 1 of pr2)
to (item 2 of pr2) of  field "f1"
   add 2 to pn
end mouseUp

---end initialise---

Then a next page button script is simply...

---next page---
global pn
global pr
on mouseUp
   put the pageranges of field "f1" into pr
   put line pn of pr into pr1
   put line pn+1 of pr into pr2
   set the htmltext of  field "fa" to the htmltext of char (item 1 of pr1)
to (item 2 of pr1) of  field "f1"
   set the htmltext of  field "fb" to the htmltext of char (item 1 of pr2)
to (item 2 of pr2) of  field "f1"
   add 2 to pn
end mouseUp
---end next page---

Works a charm.

It just depends on what your intention is.
If this is only for display or printing (the inspiration for the property)
then this is the neatest way to go.
But if you want greater user interaction, then maybe not.

In my application of this idea I am using the first method I mentioned
(group scroll). I want my users to be able to select text over more than one
page and to view what may be just overleaf (say at the end of page 2 and the
beginning of page 3) without having to jump back and forth. 

James



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Formatted-text-in-a-field-tp4677903p4677917.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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