Re: lock messages and navigation bar widget

2021-05-21 Thread Mike Kerner via use-livecode
"hilitedChanged" is currently the only message sent to the navbar search the how list for "navbar pre hilitechanged" from a couple of weeks ago, when I dealt with a similar issue. On Fri, May 21, 2021 at 3:11 PM Brian Milby via use-livecode < use-livecode@lists.runrev.com> wrote: > Yes, I was

Re: Implementing UNDO

2021-05-21 Thread Mike Kerner via use-livecode
fyi, for posterity, here is the link to the wiki for levure's undo manager helper https://github.com/trevordevore/levure/wiki/helper-undo_manager On Fri, May 21, 2021 at 2:34 PM David Epstein via use-livecode < use-livecode@lists.runrev.com> wrote: > LC’s built in undo does not appear to undo

Re: lock messages and navigation bar widget

2021-05-21 Thread Brian Milby via use-livecode
Yes, I was impacted the same way a while back. The lockMessages dictionary entry lists the messages that get locked and it is smaller than I expected. Thanks, Brian Sent from my iPhone > On May 21, 2021, at 2:39 PM, Klaus major-k via use-livecode > wrote: > > Hi Brian, > >> Am 21.05.2021

Re: lock messages and navigation bar widget

2021-05-21 Thread Klaus major-k via use-livecode
Hi Brian, > Am 21.05.2021 um 20:34 schrieb Brian Milby via use-livecode > : > > Works as expected/coded. hm, I had the naive thinking that "lock messages" would erm. lock the messages. und just change the icon. :-D But this does obviously not apply to the navigation bar widget. > Not sure

Re: lock messages and navigation bar widget

2021-05-21 Thread Brian Milby via use-livecode
Works as expected/coded. Not sure how it would be changed (don’t know how to get to that state inside the widget). Anyway, to work with this you need to have your handler check to see if it needs to run. Pretty easy if using it to navigate between cards. If already on the destination card,

Re: Implementing UNDO

2021-05-21 Thread David Epstein via use-livecode
LC’s built in undo does not appear to undo anything done by something I have scripted. My approach is to use a global array variable “u” to store information needed to undo the most recent action. On each action, an “undoInit” puts empty into u, after (if necessary) cleaning up anything u’s

lock messages and navigation bar widget

2021-05-21 Thread Klaus major-k via use-livecode
Hi friends, am I missing something? This does not work with my navigation bar widget at least not as exspected: on mouseUp lock messages set the hiliteditemname of widget 1 to "contacts" unlock messages end mouseUp - Icon does change, but the widgets

Re: Implementing UNDO

2021-05-21 Thread Klaus major-k via use-livecode
Hi Jaqueline, > Am 21.05.2021 um 17:32 schrieb J. Landman Gay via use-livecode > : > > If you only need a simple, single-level undo you can use the built-in LC > "undo" command. The limitation is that you can't undo/redo repeatedly through > more than the last action. oh, yes, thanks for

Re: Implementing UNDO

2021-05-21 Thread J. Landman Gay via use-livecode
If you only need a simple, single-level undo you can use the built-in LC "undo" command. The limitation is that you can't undo/redo repeatedly through more than the last action. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On May 21,

Re: Implementing UNDO

2021-05-21 Thread Klaus major-k via use-livecode
Hi Paul and all, > Am 21.05.2021 um 17:05 schrieb Paul Dupuis via use-livecode > : > > As other have said, the basic mechanism is to have a UNDO LIFO (last in first > out) queue or stack (no LC stack for a data structure stack). For each action > you want 'undoable" you need a handler

Re: [ANN] Release 9.6.2

2021-05-21 Thread J. Landman Gay via use-livecode
Just a data point: yesterday I downloaded 9.6.2 stable directly from the download page and got about 500 kb/second. It took a very long time to get the file. I figured something was going on with the server. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software |

Re: Implementing UNDO

2021-05-21 Thread Paul Dupuis via use-livecode
As other have said, the basic mechanism is to have a UNDO LIFO (last in first out) queue or stack (no LC stack for a data structure stack). For each action you want 'undoable" you need a handler (do[action] ) to perform that action that also adds a record (a line) to the queue (a property,

Re: Spurious characters from html files - text encoding issues?

2021-05-21 Thread Paul Dupuis via use-livecode
BBEdit has a built in "guess encoding" function to try to determine the encoding of a text file. I have had this bug in to LC now for 6 years: https://quality.livecode.com/show_bug.cgi?id=14474 Even Frasier, who did much of the Unicode work for LC7 agreed there should be a guessEncoding

Re: Implementing UNDO

2021-05-21 Thread Klaus major-k via use-livecode
Hi Mark, > Am 21.05.2021 um 16:42 schrieb Mark Wieder via use-livecode > : > On 5/21/21 6:19 AM, Klaus major-k via use-livecode wrote: >> OK, something like this, but for graphics, images etc., too. 8-) >> Some general hints will be OK. >> Except for TEXT I don't have a clue yet. >> Maybe store

Re: iOS screen size

2021-05-21 Thread Dan Friedman via use-livecode
Panos, Yup. That's exactly what it was. Thanks! -Dan On 5/21/21, 1:23 AM, "use-livecode on behalf of panagiotis merakos via use-livecode" wrote: Hello Dan, Rough guess, are you including a custom plist? If so, then this plist was probably created by an older LC version,

Re: Implementing UNDO

2021-05-21 Thread Mark Wieder via use-livecode
On 5/21/21 6:19 AM, Klaus major-k via use-livecode wrote: OK, something like this, but for graphics, images etc., too. 8-) Some general hints will be OK. Except for TEXT I don't have a clue yet. Maybe store "the properties of xyz" and re-apply them when the user hits CMD-Z? I've got an undo

Re: Implementing UNDO

2021-05-21 Thread Klaus major-k via use-livecode
Hi Brian, > Am 21.05.2021 um 16:25 schrieb Brian Milby via use-livecode > : > > For text, the method will depend on the size of the text. In general, > implement an undo stack and a redo stack. For single line fields it could > simply be a list for each. After each change, add entry to

Re: Implementing UNDO

2021-05-21 Thread Brian Milby via use-livecode
For text, the method will depend on the size of the text. In general, implement an undo stack and a redo stack. For single line fields it could simply be a list for each. After each change, add entry to undo list and clear redo list. When doing undo, move entries to redo list allowing

Re: Implementing UNDO

2021-05-21 Thread Klaus major-k via use-livecode
Hi Mike, > Am 21.05.2021 um 15:23 schrieb Mike Kerner via use-livecode > : > > I _think_ that there might also be an undo manager built into levure, if > you are interested. oh, OK, sounds great, will take a look! Thank you! Best Klaus -- Klaus Major https://www.major-k.de

Re: Implementing UNDO

2021-05-21 Thread Mike Kerner via use-livecode
I _think_ that there might also be an undo manager built into levure, if you are interested. On Fri, May 21, 2021 at 9:20 AM Klaus major-k via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi Craig, > > > Am 21.05.2021 um 15:12 schrieb Craig Newman via use-livecode < >

Re: Implementing UNDO

2021-05-21 Thread Klaus major-k via use-livecode
Hi Craig, > Am 21.05.2021 um 15:12 schrieb Craig Newman via use-livecode > : > > Klaus. > > What are you doing here on the dark side?? Oh, come on! > Do you mean something like this, with a field and a button? in the card > script: > > on textChanged > set the currentText of this cd to

Re: Implementing UNDO

2021-05-21 Thread Craig Newman via use-livecode
Klaus. What are you doing here on the dark side?? Do you mean something like this, with a field and a button? in the card script: on textChanged set the currentText of this cd to fld 1 end textChanged on undoText get the currentText of this cd delete the last word of it set the text of

Re: Spurious characters from html files - text encoding issues?

2021-05-21 Thread Keith Clarke via use-livecode
Hi Ben, Thanks for the further details and tips - my problem is now solved! The BBedit tip re file 'open-as UTF-8' was a great help. I’d not noticed these options before (as I tend to open files from PathFinder folder lists not via apps). However, this did indeed reveal format errors on these

Implementing UNDO

2021-05-21 Thread Klaus major-k via use-livecode
Hi friends, any hints on how to implement some UNDO mechanism into a LC standalone? The stack(s) in question will not only handle TEXT. Thanks for any insight! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass kl...@major-k.de

Re: [ANN] Release 9.6.2

2021-05-21 Thread Heather Laine via use-livecode
Were you downloading direct from your account or via the updater? I thought we'd fixed the updater in this respect. What version of LiveCode were you updating from if you did use the updater? Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On

Re: [ANN] Release 9.6.2

2021-05-21 Thread Curry Kenworthy via use-livecode
JeeJeeStudio: > And wow got me a massive 30KB/sec download > while my download speedtest is 74.87Mbps... > That's the speed back in 1996... That happens to me a lot. Like the T3 cyborg using dial-up in the past. But I'm happy to report an LC 9.6.2 download at 5 MB/sec! From East Coast

Re: iOS screen size

2021-05-21 Thread panagiotis merakos via use-livecode
Hello Dan, Rough guess, are you including a custom plist? If so, then this plist was probably created by an older LC version, before storyboard support was added. If this is the case, the (old) plist expects some splash images, which are not in the app bundle, thus you see the black bars. Kind

Re: iOS screen size

2021-05-21 Thread Mark Smith via use-livecode
Hi Dan, did you try fullscreen set to “ShowAll”? Also,I set the background color of my splash to a color that matched the background of my splash screen image so now it “appears” to cover the full screen of all device sizes. Mark > On May 20, 2021, at 9:22 PM, Dan Friedman via use-livecode