Re: Do widgets support introspection?

2018-01-09 Thread Mark Wieder via use-livecode

On 01/09/2018 09:45 PM, Geoff Canyon via use-livecode wrote:

Do the built-in widgets come with manifests?


Yes. Even the built-in widgets. At least for now, until we get 
commercial locked widgets.


--
 Mark Wieder
 ahsoftw...@gmail.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: Do widgets support introspection?

2018-01-09 Thread Geoff Canyon via use-livecode
Do the built-in widgets come with manifests?

On Tue, Jan 9, 2018 at 11:36 PM, Mark Wieder via use-livecode <
use-livecode@lists.runrev.com> wrote:
>
> Might be easier to examine the manifest.xml file for the properties.
> At least via a script.
___
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: Problem pasting from Livecode to Mac Mail

2018-01-09 Thread Paul Hibbert via use-livecode
I use a small utility called PopClip, I wouldn’t be without it (although it 
does have some issues with LC on occasions), but it does allow you to choose to 
paste plain text if you wish along with lots of other useful copy/paste 
options. Saves me from some frustration.

It’s available on the App store. More info from pilotmoon.com if that helps.

Paul

> On Jan 9, 2018, at 11:55 AM, J. Landman Gay via use-livecode 
>  wrote:
> 
> On 1/9/18 12:09 PM, Richard Burkett via use-livecode wrote:
>> Does anyone have a solution to this problem: I set the clipboard in LiveCode 
>> to the text of a field or variable that has returns after each line. When I 
>> paste that into Mac Mail, the text appears double-spaced as if it has two 
>> returns, but clearly there is just one (or a combination of CR and LF?). 
>> I’ve tried all the keys for setting the clipboard and also writing a script 
>> to delete line feeds, or CR characters, but nothing works. It’s either no 
>> returns, or what appears to be double-spaced returns.
>> If I paste the text first into Text Edit, then copy it, and paste into Mac 
>> Mail it’s fine - single line spacing. What’s LiveCode adding to each line 
>> that causes Mac Mail to show the pasted text as double spaced? Is there a 
>> way to filter/remove that?
> 
> I don't have a good way to test this, but try:
> 
> set the clipboardData to textEncode(the clipboardData,"native")
> 
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.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


___
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: Do widgets support introspection?

2018-01-09 Thread Mark Wieder via use-livecode

On 01/09/2018 08:25 PM, hh via use-livecode wrote:

G.C. wrote:
Is there a way, given a widget, to find out programmatically what the
relevant properties of the widget are?


Only the documented ones.
Even the property inspector shows only the "user_visible" ones.
The only possibility I can see is to scan the lcb file (if it is available).

So, if somebody doesn't document the properties and the widget is not "open 
source" then you get nothing, whether programatically or not.


Might be easier to examine the manifest.xml file for the properties.
At least via a script.

--
 Mark Wieder
 ahsoftw...@gmail.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: Do widgets support introspection?

2018-01-09 Thread hh via use-livecode
> G.C. wrote:
> Is there a way, given a widget, to find out programmatically what the
> relevant properties of the widget are?

Only the documented ones.
Even the property inspector shows only the "user_visible" ones.
The only possibility I can see is to scan the lcb file (if it is available).

So, if somebody doesn't document the properties and the widget is not "open 
source" then you get nothing, whether programatically or not.



___
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: Custom properties of IDE palettes?

2018-01-09 Thread Geoff Canyon via use-livecode
(I should add that I am using 8.1.8, the community edition, on Mac)

On Tue, Jan 9, 2018 at 8:20 PM, Geoff Canyon  wrote:

> But they do. Specifically, stack "revPropertyInspector 1" is not a
> script-only stack. It has many objects, and it does have custom properties.
> For example, this locks the inspector to its current object:
>
> set the cLocked of stack "revPropertyInspector 1" to true
>
>
>
> On Tue, Jan 9, 2018 at 6:07 PM, Ali Lloyd via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> I don't think they have any custom properties... at least, if they do then
>> they don't do anything. They are script-only stacks & behaviors that
>> generate the UI; they don't use custom props for their functionality.
>>
>> On Tue, Jan 9, 2018 at 8:40 PM Geoff Canyon via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>
>> > I'm exploring the LC 8 IDE. If I type in the message box:
>> >
>> > put the customkeys of the mouseStack
>> >
>> > and put the pointer over the message box, I press return and see a list
>> of
>> > custom properties:
>> >
>> > cREVIntelligenceObject
>> > cREVLeft
>> > cREVTopLeft
>> > etc
>> >
>> > But if I put the pointer over the Tools palette or the Properties
>> palette,
>> > I get nothing. It's not a mouseStack issue; I can put the name of the
>> > mouseStack and get "revPropertyInspector 1". And this doesn't work
>> either:
>> >
>> > lock messages;put the customkeys of stack "revPropertyInspector 1"
>> >
>> > Any ideas?
>> > ___
>> > 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
>> >
>> ___
>> 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
>>
>
>
___
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


Do widgets support introspection?

2018-01-09 Thread Geoff Canyon via use-livecode
Is there a way, given a widget, to find out programmatically what the
relevant properties of the widget are?
___
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: Custom properties of IDE palettes?

2018-01-09 Thread Geoff Canyon via use-livecode
But they do. Specifically, stack "revPropertyInspector 1" is not a
script-only stack. It has many objects, and it does have custom properties.
For example, this locks the inspector to its current object:

set the cLocked of stack "revPropertyInspector 1" to true



On Tue, Jan 9, 2018 at 6:07 PM, Ali Lloyd via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I don't think they have any custom properties... at least, if they do then
> they don't do anything. They are script-only stacks & behaviors that
> generate the UI; they don't use custom props for their functionality.
>
> On Tue, Jan 9, 2018 at 8:40 PM Geoff Canyon via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > I'm exploring the LC 8 IDE. If I type in the message box:
> >
> > put the customkeys of the mouseStack
> >
> > and put the pointer over the message box, I press return and see a list
> of
> > custom properties:
> >
> > cREVIntelligenceObject
> > cREVLeft
> > cREVTopLeft
> > etc
> >
> > But if I put the pointer over the Tools palette or the Properties
> palette,
> > I get nothing. It's not a mouseStack issue; I can put the name of the
> > mouseStack and get "revPropertyInspector 1". And this doesn't work
> either:
> >
> > lock messages;put the customkeys of stack "revPropertyInspector 1"
> >
> > Any ideas?
> > ___
> > 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
> >
> ___
> 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
>
___
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: Custom properties of IDE palettes?

2018-01-09 Thread Ali Lloyd via use-livecode
I don't think they have any custom properties... at least, if they do then
they don't do anything. They are script-only stacks & behaviors that
generate the UI; they don't use custom props for their functionality.

On Tue, Jan 9, 2018 at 8:40 PM Geoff Canyon via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I'm exploring the LC 8 IDE. If I type in the message box:
>
> put the customkeys of the mouseStack
>
> and put the pointer over the message box, I press return and see a list of
> custom properties:
>
> cREVIntelligenceObject
> cREVLeft
> cREVTopLeft
> etc
>
> But if I put the pointer over the Tools palette or the Properties palette,
> I get nothing. It's not a mouseStack issue; I can put the name of the
> mouseStack and get "revPropertyInspector 1". And this doesn't work either:
>
> lock messages;put the customkeys of stack "revPropertyInspector 1"
>
> Any ideas?
> ___
> 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
>
___
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


Custom properties of IDE palettes?

2018-01-09 Thread Geoff Canyon via use-livecode
I'm exploring the LC 8 IDE. If I type in the message box:

put the customkeys of the mouseStack

and put the pointer over the message box, I press return and see a list of
custom properties:

cREVIntelligenceObject
cREVLeft
cREVTopLeft
etc

But if I put the pointer over the Tools palette or the Properties palette,
I get nothing. It's not a mouseStack issue; I can put the name of the
mouseStack and get "revPropertyInspector 1". And this doesn't work either:

lock messages;put the customkeys of stack "revPropertyInspector 1"

Any ideas?
___
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: Local Image Paths in HTML for Browser Widget Fails

2018-01-09 Thread J. Landman Gay via use-livecode

On 1/8/18 9:16 PM, Sannyasin Brahmanathaswami via use-livecode wrote:
Nope… no way. On mobile, there are major issues with certain mobile controls. 


You might be able to use the native "busy" indicator on mobile, which 
doesn't interact with the stack content:


mobileBusyIndicatorStart
mobileBusyIndicatorStop

(There's a handler in the mobileControls library in SivaSiva that 
handles this for both desktop and mobile, actually.)


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.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: Problem pasting from Livecode to Mac Mail

2018-01-09 Thread J. Landman Gay via use-livecode

On 1/9/18 12:09 PM, Richard Burkett via use-livecode wrote:

Does anyone have a solution to this problem: I set the clipboard in LiveCode to 
the text of a field or variable that has returns after each line. When I paste 
that into Mac Mail, the text appears double-spaced as if it has two returns, 
but clearly there is just one (or a combination of CR and LF?). I’ve tried all 
the keys for setting the clipboard and also writing a script to delete line 
feeds, or CR characters, but nothing works. It’s either no returns, or what 
appears to be double-spaced returns.

If I paste the text first into Text Edit, then copy it, and paste into Mac Mail 
it’s fine - single line spacing. What’s LiveCode adding to each line that 
causes Mac Mail to show the pasted text as double spaced? Is there a way to 
filter/remove that?


I don't have a good way to test this, but try:

set the clipboardData to textEncode(the clipboardData,"native")


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.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 while saving standalone 8 & 9

2018-01-09 Thread J. Landman Gay via use-livecode

On 1/9/18 10:46 AM, Paul Richards via use-livecode wrote:

There was an error while saving the standalone application
91,2026,23
77,2026,23
456,2026,23
572,2026,23
241,2026,1,__LoadStackOnStartup
353,0,0,stack "c:/program files (x86)/Runrev/Livecode Indy 9.0 
(dp11)/Toolset/libraries/revsblibrary.livecodescript"
573,2210,1,__LoadStackOnStartup
253,2110,1
490,2110,1
241,2104,1 revSbUpdateDeployParams
353,0,0,stack "c:/program files (x86)/Runrev/Livecode Indy 9.0 
(dp11)/Toolset/libraries/revsblibrary.livecodescript"
573,806,1,revSBUpdateDeployParams


The first line indicates a low-memory condition. The next few lines show 
at least one script error and a missing object. This is all in the 
standalone builder script, so a bug report is in order.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.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: LiveCode University bug

2018-01-09 Thread Matthias Rebbe via use-livecode
Devin,

i am not Andrew, but i would be very happy to test the “DP" status copy. ;)

Regards,
Matthias

Matthias Rebbe
Tel +49 5741 31
‌https://matthiasrebbe.eu ‌

> Am 09.01.2018 um 20:09 schrieb Devin Asay via use-livecode 
> >:
> 
> Andrew,
> 
> It’s best just to send them to me; avoids the middleman. :)
> 
> I’m in the final stages of creating an updated version that uses much more 
> up-to-date content. Perhaps I can send you a “DP” status copy and have you 
> take a look at it. I think it’s in pretty good shape except for a final, 
> nagging content update bug that I expect to swat this week.
> 
> Regards,
> 
> Devin
> 
> 
> On Jan 9, 2018, at 11:49 AM, Andrew Bell via use-livecode 
>   >> wrote:
> 
> I'm getting ready to start a new semester teaching LiveCode using LiveCode 
> University. Each time I run this class, I notice some discrepancies between 
> LCU and whatever the current version of LC is. Devin Asay is listed as the 
> author, but this was purchased through RunRev. I started to file a bug report 
> at quality.livecode.com 
>  > and realized that probably isn't the right 
> channel.
> 
> Who should bugs be reported to for LiveCode University?
> 
> --Andrew Bell
> 
> 
> ___
> 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 
> 
> 
> Devin Asay
> Director
> Office of Digital Humanities
> Brigham Young University
> 
> ___
> 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 
> 


Matthias Rebbe
Tel +49 5741 31
‌https://matthiasrebbe.eu ‌

___
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: LiveCode University bug

2018-01-09 Thread Devin Asay via use-livecode
Andrew,

It’s best just to send them to me; avoids the middleman. :)

I’m in the final stages of creating an updated version that uses much more 
up-to-date content. Perhaps I can send you a “DP” status copy and have you take 
a look at it. I think it’s in pretty good shape except for a final, nagging 
content update bug that I expect to swat this week.

Regards,

Devin


On Jan 9, 2018, at 11:49 AM, Andrew Bell via use-livecode 
> wrote:

I'm getting ready to start a new semester teaching LiveCode using LiveCode 
University. Each time I run this class, I notice some discrepancies between LCU 
and whatever the current version of LC is. Devin Asay is listed as the author, 
but this was purchased through RunRev. I started to file a bug report at 
quality.livecode.com and realized that probably 
isn't the right channel.

Who should bugs be reported to for LiveCode University?

--Andrew Bell


___
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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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

LiveCode University bug

2018-01-09 Thread Andrew Bell via use-livecode
I'm getting ready to start a new semester teaching LiveCode using  
LiveCode University. Each time I run this class, I notice some  
discrepancies between LCU and whatever the current version of LC is.  
Devin Asay is listed as the author, but this was purchased through  
RunRev. I started to file a bug report at quality.livecode.com and  
realized that probably isn't the right channel.


Who should bugs be reported to for LiveCode University?

--Andrew Bell


___
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 text of a mobile app (newbie)

2018-01-09 Thread Andrew Bell via use-livecode

A goal this year is to get an app (for foreign language learning) on the
Android and iOS stores. To this end, I have begun to re-study LC8's app
building course; LC itself I've been using for decades.

Let's say my original app gets approved. In that app is a datagrid object
list consisting of 10 vocabulary categories, the contents of  which are
read in from a text file in specialFolderPath("documents"). A few months
later, however, I discover more vocabulary categories are needed.

What do I do? Can I somehow "download" a new text file into
specialFolderPath("documents")? Do I have to completely update my app? Or
something else?

In the past what I've done for my desktop Windows standalones is to
download data from my webserver over the internet. But, I imagine mobile
apps must work differently.

Hand holding very much welcome!

--
Nicolas Cueto



This is VERY doable. I have a mobile app that "phones home" on every  
launch to see if there is new data. The app goes and fetches a text  
file from my server that has an integer value of the last time the  
data was updated (the seconds) and if that value is greater than the  
value saved in a local preferences file on the device the app knows it  
needs to run a soft update. A quick revQueryDatabase returns an array  
of data that then gets used as the dgData.


I'm by no means an expert, but have a couple mobile apps created in  
LiveCode doing something like this and would be happy to talk you  
through the hoops and share some best practices I've discovered along  
the way. Feel free to message me off list.


--Andrew Bell


___
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


Problem pasting from Livecode to Mac Mail

2018-01-09 Thread Richard Burkett via use-livecode
Does anyone have a solution to this problem: I set the clipboard in LiveCode to 
the text of a field or variable that has returns after each line. When I paste 
that into Mac Mail, the text appears double-spaced as if it has two returns, 
but clearly there is just one (or a combination of CR and LF?). I’ve tried all 
the keys for setting the clipboard and also writing a script to delete line 
feeds, or CR characters, but nothing works. It’s either no returns, or what 
appears to be double-spaced returns. 

If I paste the text first into Text Edit, then copy it, and paste into Mac Mail 
it’s fine - single line spacing. What’s LiveCode adding to each line that 
causes Mac Mail to show the pasted text as double spaced? Is there a way to 
filter/remove that?

Richard Burkett
richard.burk...@sbcglobal.net



___
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 while saving standalone 8 & 9

2018-01-09 Thread Paul Richards via use-livecode
Trying to save as standalone using LC 9.0 DP11, using a stack that had been 
perfectly fine throughout the 8 series.  Attempting to deploy to Android only 
(although similar errors appear trying to deploy to Windows only)

There was an error while saving the standalone application
91,2026,23
77,2026,23
456,2026,23
572,2026,23
241,2026,1,__LoadStackOnStartup
353,0,0,stack "c:/program files (x86)/Runrev/Livecode Indy 9.0 
(dp11)/Toolset/libraries/revsblibrary.livecodescript"
573,2210,1,__LoadStackOnStartup
253,2110,1
490,2110,1
241,2104,1 revSbUpdateDeployParams
353,0,0,stack "c:/program files (x86)/Runrev/Livecode Indy 9.0 
(dp11)/Toolset/libraries/revsblibrary.livecodescript"
573,806,1,revSBUpdateDeployParams

I have removed All Widgets that were installed in 8, so the only Widgets 
showing are the stock installed Livecode ones.  Out of desperation, I deleted 
ALL existing cards form the stack so that there was just 1 new blank card (in 
case a card was holding onto a widget) but I still get the same error.  (new 
stacks are all OK )

If I take the original stack and open in LC 8.x  and try to save as Standalone, 
I get an error saying "could not open module file" ?!

I have also tried to add the new Map Widget and save as Android, but I get yet 
another error; "Could not build R.Java"

I appear to be well and truly stuck now, so any help in troubleshooting this 
would be very much appreciated.


___
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: Custom Combo Box

2018-01-09 Thread Charles Szasz via use-livecode
Thanks Richmond!

Sent from my iPad

___
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: Custom Combo Box

2018-01-09 Thread Richmond Mathewson via use-livecode

https://web.archive.org/web/20100307235836/http://revmentor.com/tag/combobox

Richmond.

On 9/1/2018 4:06 pm, Charles Szasz via use-livecode wrote:

Does anyone have the Custom Combo Box sample stack that was created by Jerry 
Daniels?  It was cited in an old revUp article (Issue 87, March 4, 2010).  I 
thought I had downloaded it from Jerry when he wrote the article but I could 
not find it.

Thanks for your time!

Sent from my iPad
___
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


___
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


Custom Combo Box

2018-01-09 Thread Charles Szasz via use-livecode
Does anyone have the Custom Combo Box sample stack that was created by Jerry 
Daniels?  It was cited in an old revUp article (Issue 87, March 4, 2010).  I 
thought I had downloaded it from Jerry when he wrote the article but I could 
not find it. 

Thanks for your time!

Sent from my iPad
___
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: Free SVG icons

2018-01-09 Thread Mark Waddingham via use-livecode

On 2018-01-03 16:16, Mark Waddingham via use-livecode wrote:
Please post whenever you find or write such a general 
"flatten-to-path".


Assuming that 'flatten-to-path' means:

"Produce a compound path which, when filled, produces the same result
as filling and/or stroking a sequence of paths and/or shapes."

Then, in full generality, this is really quite complex - particularly
if you want to preserve curves (which is important if you want your
resulting path to scale arbitrarily).

There are two pieces:

  1) A 'thicken' operation which takes a path and stroke properties as
input and produces a path which can be filled to produce the stroke.
(i.e. the 'inside' of the path is the same as the 'inside' of the
stroke of the original path).

  2) A 'union' operation which takes two arbitrary paths and produces
a single path which, when filled, produces the same result as filling
the first path, and then filling and compositing the second path on
top of it. (i.e. the 'inside' of the path is the same as the union of
the 'insides' of the two input paths).


For what its worth, I found that Skia (in principal) has boolean path 
operation support (i.e. the critical union operation!) - 
https://skia.org/dev/present/pathops.


As we also need something along these lines to support the general 
'clipPath' element in SVG, I had a go at implementing a simple shape 
abstraction.


A shape is basically an expressing where the factors are 
paths/ellipses/rectangles/polygons etc. and the operations are:

  - transform
  - fill (turn the shape into non-intersecting regions relative to a 
fill rule)

  - dash
  - thicken (apply stroke attributes to create the thickened lines which 
are filled to form a stroke)

  - union / intersect / difference / xor

So you can do things like:

  union(fill(thicken(... circle ...), fill(thicken(... square ...))

It seemed to work fine on simple unions/intersections of thickened 
squares circles - as long as there was no collinearity / difficult 
intersections. However, when I tried some of the simple feature icons - 
it did not work so well :(


Basically, the version of the path-ops we have in the version of Skia we 
use seem to suffer from some rather unfortunate collinearity / numerical 
issues - of course, updating Skia *might* fix the problem, however it 
seems that quite a bit has changed since we last updated Skia so that is 
not a 'drop-in replacement' type of thing *sigh*.


Warmest Regards,

Mark.

P.S. One thing I do need to try is 'fuzzing' the shapes before applying 
the boolean ops - i.e. adding a tiny random delta, small enough that you 
won't notice when rendered, but large enough that it turns any difficult 
intersections into easier ones.


--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
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