Re: scripted Show tooltip not a thing?

2022-01-14 Thread David V Glasgow via use-livecode
Thanks all.

I scripted as if the delay was the duration the tooltip is displayed.  Duh!  Of 
course the delay is hover delay before the tooltip shows!  I knew that, and yet 
somehow didn’t know it at the same time.

Cheers

David G

> On 11 Jan 2022, at 2:48 pm, Craig Newman via use-livecode 
>  wrote:
> 
> You can do this. In a button script;
> 
> on mouseenter
> 
> set the tooltip of me to random(999)
> 
> end mouseenter
> 
> 
> Now every time you move the cursor into that button, you get a new integer 
> when you hover.
> 
> Craig
> 
>> On Jan 11, 2022, at 9:38 AM, Klaus major-k via use-livecode 
>> mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>> Hi David,
>> 
>>> Am 11.01.2022 um 15:29 schrieb David Glasgow via use-livecode 
>>> :
>>> 
>>> Hi folks
>>> 
>>> I have an app in which tooltips are generally off.  I also have a button 
>>> menu which allows the selection of equality/inequelity.  Users are non 
>>> technical, and on selection (i.e. not the usual hover) I wanted to pop up a 
>>> brief tooltip describing the selected item in ordinary language 
>>> (irrespective of whether tooltips are globally on or off):
>>> 
>>> on menuPick pChosenItem
>>> set the label of me to pChosenitem
>>> switch
>>>case pChosenItem = "="
>>>   set the tooltip of me to "Equals"
>>>   break
>>>case pChosenItem = "≤"
>>>   set the tooltip of me to  “Is at least"
>>>   break
>>>case pChosenItem = "≅"
>>>   set the tooltip of me to “Is approximately"
>>>   break
>>> end switch
>>> set the tooltipdelay to 500
>>> show the tooltip of me
>>> set the tooltip delay to 0
>>> end menuPick
>>> 
>>> It seems  show the tooltip of me isn’t a thing.  I appreciate that I could 
>>> show and hide an ordinary field, but I wondered if I have overlooked a 
>>> suitable message and/or syntax that will enable what I want. 
>>> 
>>> 
>>> Best Wishes,
>>> 
>>> David Glasgow
>> 
>> well, we cannot explicitely show a tooltip by script.
>> So "show the tooltup of me" will not work if it doesn't throw an error.
>> 
>> Problem in your script:
>> ...
>> set the tooltipdelay to 500
>> ## from this point the tooltip will appear in 500 millisecs
>> ## show the tooltip of me
>> 
>> ## but this will disable the tooltip again much EARLIER than the 500 
>> millisecs!
>> ## LC is too fast for this :-)
>> set the tooltip delay to 0
>> ...
>> 
>> 
>> Best
>> 
>> Klaus
>> 
>> 
>> 
>> --
>> Klaus Major
>> https://www.major-k.de 
>> https://www.major-k.de/bass  
>> >
>> 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 
>>  
>> > >
> ___
> 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: Thinking out loud

2022-01-14 Thread J. Landman Gay via use-livecode
Android apps run on Chromebooks and I have several installed, including 3 
of my own. There are a few glitches when rotating to tablet mode on 
Chromebooks that support that feature but in general they work pretty well.


For you, that would be the easiest way forward. The main problem is that 
apps outside the Play Store can't be installed on Chromebooks without 
booting into developer mode and that isn't an option for students. On the 
other hand, getting your app into the Google Play Store is far easier than 
Apple makes it.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On January 14, 2022 12:20:14 PM William Prothero via use-livecode 
 wrote:



Folks:
Just thinking out loud.

My hobby and gift to pay back all of the money I got from the National 
Science Foundation over my career, is to program and make educational 
applications about Earth Science. I’m finding, tho, that for younger kids, 
Chromebooks are mostly used. So, tapping into the vast experience of 
livecode users on this list, what advice would you give me? Livecode on the 
web? Google Classroom dev in Python?  Is the web deployment of the livecode 
server getting to a place where it is actually practical in comparison to 
other solutions?


My son is a 5’th grade teacher. He uses Google Classroom a lot. I would 
want apps I develop to work in that environment too. Or … function in a web 
browser. I see that LiveCode 10 versions are supporting webASM. It also 
looks like a direction I could go.


The reason I’m favoring apps that work in a browser is then I don’t have to 
worry about the app stores and my work would/should run on different machines.


So, I would appreciate any thoughts or suggestions you might have. I’ve 
programmed in numerous languages (but forgotten lots) and am not averse to 
learning new ones (Javascript?).


Best,
Bill


William Prothero
waproth...@gmail.com
https://earthlearningsolutions.org


___
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


Thinking out loud

2022-01-14 Thread William Prothero via use-livecode
Folks:
Just thinking out loud.

My hobby and gift to pay back all of the money I got from the National Science 
Foundation over my career, is to program and make educational applications 
about Earth Science. I’m finding, tho, that for younger kids, Chromebooks are 
mostly used. So, tapping into the vast experience of livecode users on this 
list, what advice would you give me? Livecode on the web? Google Classroom dev 
in Python?  Is the web deployment of the livecode server getting to a place 
where it is actually practical in comparison to other solutions?

My son is a 5’th grade teacher. He uses Google Classroom a lot. I would want 
apps I develop to work in that environment too. Or … function in a web browser. 
I see that LiveCode 10 versions are supporting webASM. It also looks like a 
direction I could go.

The reason I’m favoring apps that work in a browser is then I don’t have to 
worry about the app stores and my work would/should run on different machines.

So, I would appreciate any thoughts or suggestions you might have. I’ve 
programmed in numerous languages (but forgotten lots) and am not averse to 
learning new ones (Javascript?).

Best,
Bill


William Prothero
waproth...@gmail.com
https://earthlearningsolutions.org


___
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: scripted Show tooltip not a thing?

2022-01-14 Thread Richard Gaskin via use-livecode
Tooltips can be a solution, but the mechanism has some limitations in 
this context.


First, tooltips are a sort of hidden feature, where the user discovers 
them only after moving the mouse over the object.  Prior to that moment 
they're invisible, offering no guidance at all.


And in this case, the good explanatory text you're offering can't be 
seen until after the user commits to a choice, but that explanation 
would seem helpful to guide them to making that choice.


If space permits, you could consider adding the explanatory text in 
parentheses after the symbol directly in the control:


  -
  | = (Equals)|
  | ≤ (Is at least)   |
  | ≅ (Is approximately)  |
  -

This would allow users to fully grasp the implications of a choice 
before making it.


--
 Richard Gaskin
 Fourth World Systems


avid Glasgow wrote:


I have an app in which tooltips are generally off.  I also have a button menu 
which allows the selection of equality/inequelity.  Users are non technical, 
and on selection (i.e. not the usual hover) I wanted to pop up a brief tooltip 
describing the selected item in ordinary language (irrespective of whether 
tooltips are globally on or off):

on menuPick pChosenItem
   set the label of me to pChosenitem
   switch
  case pChosenItem = "="
 set the tooltip of me to "Equals"
 break
  case pChosenItem = "≤"
 set the tooltip of me to  “Is at least"
 break
  case pChosenItem = "≅"
 set the tooltip of me to “Is approximately"
 break
   end switch
   set the tooltipdelay to 500
   show the tooltip of me
   set the tooltip delay to 0
end menuPick

It seems  show the tooltip of me isn’t a thing.  I appreciate that I could show and hide an ordinary field, but I wondered if I have overlooked a suitable message and/or syntax that will enable what I want. 



Best Wishes,

David Glasgow




___
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: scripted Show tooltip not a thing?

2022-01-14 Thread Richmond via use-livecode

https://forums.livecode.com/viewtopic.php?f=7=36647=211966#p211966

On 14.01.22 13:10, David V Glasgow via use-livecode wrote:

Thanks all.

I scripted as if the delay was the duration the tooltip is displayed.  Duh!  Of 
course the delay is hover delay before the tooltip shows!  I knew that, and yet 
somehow didn’t know it at the same time.

Cheers

David G


On 11 Jan 2022, at 2:48 pm, Craig Newman via use-livecode 
 wrote:

You can do this. In a button script;

on mouseenter

set the tooltip of me to random(999)

end mouseenter


Now every time you move the cursor into that button, you get a new integer when 
you hover.

Craig


On Jan 11, 2022, at 9:38 AM, Klaus major-k via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hi David,


Am 11.01.2022 um 15:29 schrieb David Glasgow via use-livecode 
:

Hi folks

I have an app in which tooltips are generally off.  I also have a button menu 
which allows the selection of equality/inequelity.  Users are non technical, 
and on selection (i.e. not the usual hover) I wanted to pop up a brief tooltip 
describing the selected item in ordinary language (irrespective of whether 
tooltips are globally on or off):

on menuPick pChosenItem
set the label of me to pChosenitem
switch
case pChosenItem = "="
   set the tooltip of me to "Equals"
   break
case pChosenItem = "≤"
   set the tooltip of me to  “Is at least"
   break
case pChosenItem = "≅"
   set the tooltip of me to “Is approximately"
   break
end switch
set the tooltipdelay to 500
show the tooltip of me
set the tooltip delay to 0
end menuPick

It seems  show the tooltip of me isn’t a thing.  I appreciate that I could show 
and hide an ordinary field, but I wondered if I have overlooked a suitable 
message and/or syntax that will enable what I want.


Best Wishes,

David Glasgow

well, we cannot explicitely show a tooltip by script.
So "show the tooltup of me" will not work if it doesn't throw an error.

Problem in your script:
...
set the tooltipdelay to 500
## from this point the tooltip will appear in 500 millisecs
## show the tooltip of me

## but this will disable the tooltip again much EARLIER than the 500 millisecs!
## LC is too fast for this :-)
set the tooltip delay to 0
...


Best

Klaus



--
Klaus Major
https://www.major-k.de 
https://www.major-k.de/bass  >
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 
 
>

___
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: regex backreferences

2022-01-14 Thread Kaveh via use-livecode
Hi all

I emailed Thierry on 23 Dec and I have had no response. It looks like his last
post
 on
the Forum was in July 2021.

His software for backreferences  works
beautifully. It is closed source and commercial. I purchased it and used it
successfully. He also provided good support.

Precisely because I could not have my stacks dependent on proprietary
software, I stopped using his sunnYrex program and started implementing
backreferences myself. it is not an easy task and I even wonder if an
efficient method is possible using LiveCode scripting.

But I have made a start and if anyone is interested I am happy to
collaborate.

The ideal would be if LiveCode could implement this. The feature request
ticket is here .

Regards
Kaveh

On Wed, 15 Dec 2021 at 16:40, Kaveh 
wrote:

> It's two years since I have been in contact, but this is the email I had:
>
> th.do...@sunny-tdz.com
>
> Regards
> Kaveh
>
> On Wed, 15 Dec 2021 at 16:37, Douglas A. Ruisaard via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> None of the links to acquire nor contact Thierry on his site (<
>> https://sunny-tdz.com/livecode/sunnyrex>) work.  They just hang
>> indefinitely... but the web site, itself, appears to be functrional.
>>
>> Can anyone provide an alternative means to contact this developer?
>>
>> Douglas Ruisaard
>>
>> Trilogy Software
>>   (250) 573-3935
>>
>> -Original Message-
>> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On
>> Behalf Of Devin Asay via use-livecode
>> Sent: Wednesday, December 15, 2021 7:54 AM
>> To: How to use LiveCode
>> Cc: Devin Asay
>> Subject: Re: regex backreferences
>>
>> Thanks for confirming, Jacque and Kaveh. I figured that was the case. I
>> can stop beating my head against it now!
>>
>> Now for a trip to workaround land!
>>
>> - Devin
>>
>> On Dec 15, 2021, at 2:46 AM, Kaveh via use-livecode <
>> use-livecode@lists.runrev.com>
>> wrote:
>>
>> This is a major shortcoming and I have wanted this for years. Thierry has
>> filled the gap with his excellent SunnyRex library
>> . I have used it successfully, I
>> recommend it, and it works well. He has also supported me well after I
>> purchased SunnyRex. But it is a proprietary dependency and that is
>> something at the back of my mind.
>>
>> It would be great if LiveCode could add this feature. Or perhaps come to
>> an
>> agreement with Thierry so that we reduce dependencies.
>>
>> Regards
>> Kaveh
>>
>> On Wed, 15 Dec 2021 at 03:42, J. Landman Gay via use-livecode <
>> use-livecode@lists.runrev.com>
>> wrote:
>>
>> I wish it did, but replaceText doesn't support back references. The
>> parameters at the end are treated as literals, whether as actual quoted
>> literals or variables containing a value.
>>
>> If there isn't a feature request for it, there should be.
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com> jac...@hyperactivesw.com>
>> HyperActive Software | http://www.hyperactivesw.com
>> On December 14, 2021 6:03:12 PM Devin Asay via use-livecode
>> mailto:use-livecode@lists.runrev.com>>
>> wrote:
>>
>> Hi all,
>>
>> Does the replaceText() function allow the use of backreferences to
>> retain
>> groupings of text between matches. For example, if I have some text like
>> this:
>>
>> Good stuff here.
>>
>> I want to end up something like this:
>>
>> Good stuff here.”
>>
>> In BBedit I can search for (.*) and
>> replace it with \1 and it preserves the run of text designated
>> by
>> parentheses.
>> (I know, I can get more fancy on matching the runs of html tags, but I’m
>> mainly interested in retaining the text, not in regex madness.)
>>
>> In LC this does not work:
>>
>>  put replaceText(myText,">  style=“cruft”>(.*)”,”\1”) into myText
>>
>> I just end up with \1, when I want Good stuff here.
>>
>> Can replaceText even do this?
>>
>> - Devin
>>
>>
>> Devin Asay
>> 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
>>
>>
>>
>>
>> ___
>> 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
>>
>>
>>
>> --
>> Kaveh Bazargan PhD
>> Director
>> River Valley Technologies  ● Twitter
>>  ● LinkedIn
>>