Re: [off]Hactoberfest

2018-10-15 Thread AndyP via use-livecode
Hi Trevor, Excellent clear tutorial, thanks for this.



-
Andy Piddock 


My software never has bugs. It just develops random features. 

TinyIDE  a Free alternative minimalist IDE Plugin for LiveCode 


Script editor Themer for LC http://2108.co.uk  

PointandSee is a FREE simple but full featured under cursor colour picker / 
finder.
http://www.pointandsee.co.uk  - made with LiveCode
--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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: Unicode Store in JSON

2018-10-15 Thread Monte Goulding via use-livecode


> On 16 Oct 2018, at 12:09 am, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> A "Related" entry under textDecode and textEncode might help.
> 
> The problem is when you get to a dictionary entry for those, there is no
> mention "mergJSON".
> 
> So not matter how well "mergeJSON" is documented, as  a "newbie" or
> someone who hasn't spend a lot of time in text encoding procedures, one
> is "blindsided" to the "mergeJSON" feature.

How so. Or do you mean that perhaps they both need to link to a general 
discussion on text encoding? There are a number of things that deal with text 
encoding/decoding in the docs so perhaps a general discussion they can all link 
to would be helpful. I presume until now it has been seen as beyond the scope 
of our docs but text encoding is definitely something that confuses many users. 
Something along the lines of the content of this article would probably be 
good: 

https://www.joelonsoftware.com/2003/10/08/the-absolute-minimum-every-software-developer-absolutely-positively-must-know-about-unicode-and-character-sets-no-excuses/
> 
> I am getting better at GIT now. I could contribute to the dictionary if
> I knew how.

Well you can get a free t-shirt this month if you do! Check out Trevor’s recent 
post.

Cheers

Monte
___
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 Dylibs in LiveCode?

2018-10-15 Thread Monte Goulding via use-livecode



> On 16 Oct 2018, at 1:29 am, Ben Rubinstein via use-livecode 
>  wrote:
> 
> I've got a requirement for which there's a useful library, which is made 
> available for MacOS as a 'dylib'.
> 
> What are my options for accessing this from LC? (I don't have a to ship an 
> application using this library, I just want to be access it on my own 
> machines, ideally within the IDE.)

LCB is your friend here.

Cheers

Monte
___
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: [off]Hactoberfest

2018-10-15 Thread Trevor DeVore via use-livecode
On Fri, Oct 12, 2018 at 8:11 PM Mike Kerner via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hactoberfest is back live at GitHub - submit 5 pull requests in October and
> maybe win a t-shirt.
> There are a bunch of LC projects on github, so now's the time to make an
> improvement to one of them and enter!
>

If anybody would like to contribute to the docs in order to get a t-shirt
take a look at "Contributing to LiveCode Documentation":

https://github.com/livecode/livecode/blob/develop-9.0/docs/contributing_to_docs.md

I also created a screencast showing the process:

https://www.youtube.com/watch?v=ULN9aavFrrA

I will point out that I have already signed the necessary agreement to
submit changes to the LiveCode project and I had already forked the
LiveCode repo on GitHub.

-- 
Trevor DeVore
ScreenSteps
www.screensteps.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: Errant mouseRelease message?

2018-10-15 Thread Geoff Canyon via use-livecode
To be clear: it's been at least five versions of LC since I last tried the
built-in drag and drop messages. The only thing stopping me from giving
them another try now is how much effort I spent trying to fit them to
Navigator's unusual circumstances back in the day. It's possible they'd
work for Navigator now.

On Mon, Oct 15, 2018 at 1:52 PM Geoff Canyon  wrote:

> I gave up using dragMove many years ago after finding that I couldn't make
> it work with setting the selection of Navigator's list. There were too many
> special cases that were either difficult or impossible, and it was so long
> ago I don't remember what they all were. I happened on someone's (Scott
> Rossi?) drag and drop code that just used mouseMove and never looked back.
> At this point I'm ready to revert to a simple repeat until the mouse is up
> loop.
>
> gc
>
> On Mon, Oct 15, 2018 at 12:25 PM hh via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> > Geoff C. wrote:
>> > I fixed that, and I don't know how.
>>
>> Did you already try to solve that by using dragMove
>> instead of mouseMove?
>>
>> ___
>> 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


Showing four options in a menu?

2018-10-15 Thread Geoff Canyon via use-livecode
For displaying a simple binary choice in a menu, a !c checkmark works well.
But in Navigator's property menu, there are four possibilities:

1. the property is not boolean -- display nothing with the menu.
2. the property is boolean and is true for all the selected controls --
display a !c check.
3. the property is boolean and is false for all the selected controls --
display ???
4. the property is boolean and is false for some of the selected controls
and true for others -- display ???

Is there any way to handle this without a sub-menu? It would be nice to be
able to set booleans from the menu just by selecting them instead of having
to mouse onto  a sub-menu.
___
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: Errant mouseRelease message?

2018-10-15 Thread Geoff Canyon via use-livecode
I gave up using dragMove many years ago after finding that I couldn't make
it work with setting the selection of Navigator's list. There were too many
special cases that were either difficult or impossible, and it was so long
ago I don't remember what they all were. I happened on someone's (Scott
Rossi?) drag and drop code that just used mouseMove and never looked back.
At this point I'm ready to revert to a simple repeat until the mouse is up
loop.

gc

On Mon, Oct 15, 2018 at 12:25 PM hh via use-livecode <
use-livecode@lists.runrev.com> wrote:

> > Geoff C. wrote:
> > I fixed that, and I don't know how.
>
> Did you already try to solve that by using dragMove
> instead of mouseMove?
>
> ___
> 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: Errant mouseRelease message?

2018-10-15 Thread hh via use-livecode
> Geoff C. wrote:
> I fixed that, and I don't know how.

Did you already try to solve that by using dragMove
instead of mouseMove?

___
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: DatePicker Widget

2018-10-15 Thread hh via use-livecode
Alex,

the date picker needs for self-sizing at least "selectedDate"
in its property array. So this is minimal and works:

on mouseUp
   put "" into tP["selectedDate"] -- yields "today"
   popup widget "community.livecode.hermann.datepicker" \
  at 100,100 with properties tP
   if it is not empty then
  put it & CR after msg
   end if
end mouseUp

See the script of btn "POPUP" of the datePicker sample stack
for all options.

This is because sizing the widget requires script access which
is not allowed in OnCreate.
[You can also adjust width and height, use
  put "220" into tP["height"]
  put "220" into tP["width"]
but better use for that property pickerScale.]

___
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


DatePicker Widget

2018-10-15 Thread Alex Tweedly via use-livecode

Q for Hermann (or anyone else who knows :-)


I'm trying to use the popup version of the widget, simply by doing


*on*mouseup*
  popup*widget"community.livecode.hermann.datepicker"at100,100*
  put*it &CRaftermsg*
end*mouseup


but the datepicker window is far too small - only about 1/4 the size it 
would need to be to show the whole datepicker, the rest of it is simply 
cut off.


Is there something I need to do to set the window size I want ?

v108 of datepicker, MacOS, LC 9.0.0

Thanks,

Alex,

___
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: Widget baseClock_v100

2018-10-15 Thread hh via use-livecode
> Tom G. wrote:
> Its interestingWhat is the problem this invention solves? is there a
> use case for using such a time format?  What did you use it for?

This is a "must-do" for a mathematician. To use such solutions for an
open problem is in general the job of engineers.

I use as desktop the base 15 clock that shows the number of full quarters
in the first digit and the numbers filling the next quarter in the second
digit. Quarters of an hour are my "fuzzy" measure of time.

But -- a lot of 'Geeks' use other number base-coded decimals (not only
for dateAndTime display). And the Mayas and Aztecs used number base 20.

Now try to read, say for simplicity a hex-clock using "A,B,C,D,E,F" 
for 10,11,12,13,14,15". For example the MAC address clock here:
http://hyperhh.de/html5/MACaddressTime-8.0.2X.html
(click to start).

And compare to my format.
Most kids of age 10 and older can read, with a few minutes of exercise,
hex numbers with my format every second.


___
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


Errant mouseRelease message?

2018-10-15 Thread Geoff Canyon via use-livecode
The drag and drop code in Navigator relies on mouseMove messages to do its
work, and since drags can exit the field where they started, mouseRelease
messages to stop.

When I first coded this, I sometimes got errant mouseRelease messages --
the mouse was still down, a check of "the mouse" in the mouseRelease would
report that the mouse was down, and yet the mouseRelease was still called,
and no more mouseMove messages were delivered.

I fixed that, and I don't know how.

Now the problem has cropped up again, and a quick scan through the diffs
(thanks, Git and GitKraken!) shows nothing that looks promising to have
caused this issue.

Any ideas? I'm on a mac, latest OS, LC 8.x
___
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: Widget baseClock_v100

2018-10-15 Thread Tom Glod via use-livecode
Hi, thanks for this 

Its a cool example of a widget... thanks for sharing your code.

Its interestingWhat is the problem this invention solves? is there a
use case for using such a time format?  What did you use it for?

On Sun, Oct 14, 2018 at 4:43 PM hh via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
> BaseClock is a new widget that displays by special "digits" the
> time encoded to a number base in range 2-60.
> Encoded is each of the time items (hours, minutes, seconds).
> For base 2 this is known as "Binary encoded decimals".
>
> The display is unique (I invented that) as it doesn't use
> characters for digits  > 9 but decimal "columns". This is very
> easy to read and (manually) to write.
>
> Download the widget from "Sample Stacks" or from
> http://livecodeshare.runrev.com/stack/911
>
> The sample stack contains an installer and displays 17 clocks
> to different number bases. One display cycle for a seconds display
> is done by each widget in < 3 millisecs (compute and paint).
>
> This stack shows an essential improvement of LCB 9 over LCB 8:
> The clocks are much more "in sync" than in LC 8.
> And it has a substack that is prepared for displaying a baseClock
> "window shaped".
>
> There are 16 options for the display, see the dictionary or open
> the property inspector.
>
> Note.
> Some properties of the widget are triggered by the timer, which is
> (as all timers) stopped in the property inspector. So you may see
> the changes not before going back to browse mode.
>
> The widget is free for non-commercial use and has the source code
> included. For commercial use please give a (small) fee to the LC
> developer help fund.
>
>
> ___
> 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


Using Dylibs in LiveCode?

2018-10-15 Thread Ben Rubinstein via use-livecode
I've got a requirement for which there's a useful library, which is made 
available for MacOS as a 'dylib'.


What are my options for accessing this from LC? (I don't have a to ship an 
application using this library, I just want to be access it on my own 
machines, ideally within the IDE.)


TIA,

Ben

___
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: Unicode Store in JSON

2018-10-15 Thread Sannyasin Brahmanathaswami via use-livecode
On 10/14/18 5:41 PM, Monte Goulding via use-livecode wrote:
> Well mergJSON is documented to return UTF-8 encoded JSON, however, I agree 
> that JSONImport and JSONExport docs are a little ambiguous and should clarify 
> that the JSON needs to be textDecoded before calling JSONImport and 
> textEncoded after calling JSONExport.
A "Related" entry under textDecode and textEncode might help.

The problem is when you get to a dictionary entry for those, there is no
mention "mergJSON".

So not matter how well "mergeJSON" is documented, as  a "newbie" or
someone who hasn't spend a lot of time in text encoding procedures, one
is "blindsided" to the "mergeJSON" feature.

There is a lacuna in the dictionary, not only in this space, but
throughout. I won't all it a "fault", because in some way "all livecode
is related" , so where to begin writing about "related, associations"?

It is probably best done on a use case basis, like this one.

I am getting better at GIT now. I could contribute to the dictionary if
I knew how.

BR

___
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] This Week in LiveCode 150

2018-10-15 Thread panagiotis merakos via use-livecode
Hi all,

Read about new developments in LiveCode open source and the open source
community in today's edition of the "This Week in LiveCode" newsletter!

Read issue #150 here: https://goo.gl/eBMXZn

This is a weekly newsletter about LiveCode, focussing on what's been
going on in and around the open source project. New issues will be
released weekly on Mondays. We have a dedicated mailing list that will
deliver each issue directly to you e-mail, so you don't miss any!

If you have anything you'd like mentioned (a project, a discussion
somewhere, an upcoming event) then please get in touch.


-- 
Panagiotis Merakos 
LiveCode Software Developer

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