LiveCode Advanced Application Architecture eBook price reduced

2020-12-29 Thread Andre Garzia via use-livecode
Hey Friends,

I've reduced the price of my LiveCode eBook to £9.99. This book will teach
you advanced techniques, and contains a ton tips and tricks from a seasoned
LC developer.

Get it from:
https://andregarzia.com/books/livecode-advanced-application-architecture.html

Kind regards
Andre

-- 
https://www.andregarzia.com 
Want to support me? Buy me a coffee at https://ko-fi.com/andregarzia
___
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 to set up a library?

2020-12-29 Thread Alex Tweedly via use-livecode

I'd make it a script-only stack, and then

start using stack "..."

(probably in an openstack handler - but could be anywhere you like for 
your own use).


By far the easiest to share (and for others to accept when shared).

Alex.

P.S. And, should this library be useful in LCServer context, it means 
you can upload the stack to the server without getting annoying error 
messages about mixed line endings which Coda-2 and some others give on 
binary stacks).



On 29/12/2020 19:34, Ben Rubinstein via use-livecode wrote:


What is the best way to structure a library these days?

Currently I've got buttons with a script, and a 'mouseup' handler to 
'insert the script of me into back' in my object library. But I don't 
think that's very modern.


What's the right way to do it? Especially if I want to share it?

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


___
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: Encoding puzzle

2020-12-29 Thread J. Landman Gay via use-livecode

On 12/29/20 5:24 PM, Paul Dupuis via use-livecode wrote:

On 12/29/2020 6:07 PM, J. Landman Gay via use-livecode wrote:

Original text: Révéler l'archéologie
LC urlEncoded string: R%8Ev%8Eler+l%27arch%8Eologie 


URLEncode(textEncode(,"UTF8")) -> gets you a properly URL encoded string where 
the server is expecting UTF8


Thank you, that works (though I need to replace the + with %20.) I had my 
encoding backwards.


--
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: How to set up a library?

2020-12-29 Thread Bob Sneidar via use-livecode
This is actually the only way. Besides Start Using a stack, which inserts the 
script of the target stack into back, if the script of a button is to be used 
as a library (or back/front script would be a better way to say it), insert 
into back or front is the way to do it. Otherwise setting the behavior of 
something will be persistent, but accomplishes the same thing really. It 
inserts the script of the object containing the behavior into the message path.

Behaviors are a little different however when referring to me or this me. These 
return empty when in a front of back script and return the target and behavior 
of the target respectively when used in a behavior script.

Bob S


On Dec 29, 2020, at 11:34 AM, Ben Rubinstein via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

What is the best way to structure a library these days?

Currently I've got buttons with a script, and a 'mouseup' handler to 'insert 
the script of me into back' in my object library. But I don't think that's very 
modern.

What's the right way to do it? Especially if I want to share it?

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: Encoding puzzle

2020-12-29 Thread Paul Dupuis via use-livecode

On 12/29/2020 6:07 PM, J. Landman Gay via use-livecode wrote:

Original text: Révéler l'archéologie
LC urlEncoded string: R%8Ev%8Eler+l%27arch%8Eologie 


URLEncode(textEncode(,"UTF8")) -> gets you a properly URL 
encoded string where the server is expecting UTF8


___
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


Encoding puzzle

2020-12-29 Thread J. Landman Gay via use-livecode
I need to send a string in French to a server. The server expects one kind of encoding and LC's 
URL encoding is producing something different. Not only that, but after sending the LC encoded 
text, the server receives something unrelated. I can't identify why. Details:


Original text: Révéler l'archéologie
LC urlEncoded string: R%8Ev%8Eler+l%27arch%8Eologie
LC string arrives at server as: R%EF%BF%BDv%EF%BF%BDler+l%27arch%EF%BF%BDologie
Server expects: R%C3%A9v%C3%A9ler%20l%27arch%C3%A9ologie

So why does the LC encoding arrive at the server in a different form, and why does neither the 
LC variable or the text the server receives match each other? And what encoding is it exactly 
that the server expects?


I played around with textDecode and a few other things but didn't get anywhere. I know the 
server wants UTF8.


--
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


How to set up a library?

2020-12-29 Thread Ben Rubinstein via use-livecode



What is the best way to structure a library these days?

Currently I've got buttons with a script, and a 'mouseup' handler to 'insert 
the script of me into back' in my object library. But I don't think that's 
very modern.


What's the right way to do it? Especially if I want to share it?

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: new datagrid ONLY reorder

2020-12-29 Thread Klaus major-k via use-livecode



> Am 29.12.2020 um 19:44 schrieb Klaus major-k via use-livecode 
> :
> Hi all,
> ...
> OK, so this is possible, but this:
> ---
> on mouseUp
> set the dgProp["edit mode action control"] of group "Alphabet" to EMPTY
> send "refreshlist" to grp "Alphabet"
> end mouseUp
> ---
> does not remove the icon from the left side!?
> What am I still missing?

this DOES in fact work, if I delete that CP entry manually in the inspector!?


--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
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: new datagrid ONLY reorder

2020-12-29 Thread Klaus major-k via use-livecode
Hi all,

> Am 29.12.2020 um 18:32 schrieb Klaus major-k via use-livecode 
> :
> ...
> 
> Setting either of these properties to empty will result in the control not 
> being displayed!
> 

looks like I completely misunderstood the last line. 8-)

OK, so this is possible, but this:
---
on mouseUp
 set the dgProp["edit mode action control"] of group "Alphabet" to EMPTY
 send "refreshlist" to grp "Alphabet"
end mouseUp
---
does not remove the icon from the left side!?
What am I still missing?


Best

Klaus
--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
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


new datagrid ONLY reorder

2020-12-29 Thread Klaus major-k via use-livecode
Hi friends,

I just took a look at the new DG features as shown in the lesson:


After setting -> set the dgEditMode of group "xxx" to true
we have an nice SVG on the left side to delete the row and a nice one on the 
right side to reorder
the lines in the datagrid.

Is ist possible to only have the REORDER SVG to be shown?
I only want my users to reorder the lines but not delete them!

The lessons says "No":
...
These properties can be set to the long of of an object or empty. 

Setting the "edit mode action select control" will change the control that 
appears on the left, 
setting the "edit mode reorder control" will change the control on the right. 


Setting either of these properties to empty will result in the control not 
being displayed!

...
Possible? If yes, how?

I tried with some nifty solutions with a listfield and a nice script, but all 
is working fine on the Mac
and NOT on Windows. One time "the mosueline" is not recognized resulting in 
empty variable etc...
very annoying, so I want to try this with a datagrid.


Best

Klaus
--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
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