Re: Control or right click to show popup menu

2022-10-03 Thread Peter Bogdanoff via use-livecode
Thanks, Craig. That is exactly the solution if figured out over the weekend, 
use the click command to click at the mouseLoc.

Peter

> On Oct 3, 2022, at 6:47 AM, Craig Newman via use-livecode 
>  wrote:
> 
> Hi.
> 
> On a new card make a field and a pulldown menu button. Place a few lines of 
> text in the field and lock it. In the field script:
> on mouseUp
> 
> set the loc of btn 1 to the mouseloc
> 
> click at the mouseLoc
> 
> end mouseUp
> 
> The menu opens at the line clicked on. 
> 
> This has been discussed extensively in the forums, if you want to search 
> there. That discussion mainly dealt with loading the contents of the button 
> with the field contents, or the selection of a particular menuItem once the 
> menu itself was open. 
> 
> Craig
> 
>> On Oct 1, 2022, at 5:08 AM, Richmond via use-livecode 
>>  wrote:
>> 
>> Why does this make me have a funny feeling you are still using a one-button 
>> mouse on a Macintosh?
>> 
>> Certainly, I would stick with
>> 
>> on mouseDown  MN
>>  if MN is 3 then . . .
>> 
>> Best, Richmond.
>> 
>> On 1.10.22 11:17, Peter Bogdanoff via use-livecode wrote:
>>> Hi,
>>> 
>>> I want to control or right click on a line of text in a field to show a 
>>> popup menu. So I’ve set the popup menu button to the loc of the mouse and 
>>> it’s showing in place when the  controlKey is down.
>>> 
>>> However, the menu items won’t show  while the control key is also down.
>>> 
>>> Maybe I’m doing this wrong. In my application, how do make this work:  the 
>>> user holds down the control key or right click  to do editing via choices 
>>> provided by some kind of popup menu? Both Mac and Windows.
>>> 
>>> Thanks,
>>> ___
>>> 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: Quick and simple web demos?

2022-10-03 Thread Bob Sneidar via use-livecode
This is so rediculously typical of any search features on any number of web 
sites. Copier partner portals are right up there. You can search for anything 
and get a plethora of everything EXCEPT anything you are searching for. 

Bob S


> On Sep 30, 2022, at 18:03 , Mark Wieder via use-livecode 
>  wrote:
> 
> On 9/30/22 17:11, Alex Tweedly via use-livecode wrote:
> 
>> and the poor indexing/naming makes it tedious to try to find.
> 
> ...and speaking of poor indexing etc...
> I was looking for a way to point the svgicon widget to an external svg file 
> and finding that for some reason this isn't built into the widget. So I want 
> online to livecodeshare and typed "svg" into the search field. Upper case.
> Lower case.
> Didn't matter - I still got zero results, even though I know there are 
> several stacks to deal with svg files.
> 
> Thank you so much for your Sample Stacks plugin, which does the job SO much 
> better than that stupid web site. Still don't have an answer to my problem, 
> but at least I can search properly. Over time I've gradually been replacing 
> parts of my development environment with improvements: tinyDictionary, etc. 
> Waiting for someone to build a better Proj Browser.
> 
> BTW... I typed "Sample stacks" into the web search field and got 57 hits, 
> only one of which had anything to do with sample stacks.
> 
> -- 
> 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


___
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 to convert standard date to sql date

2022-10-03 Thread Bob Sneidar via use-livecode
Thanks I'll try that. Looks like just what I neeed.

Bob S


On Oct 1, 2022, at 04:30 , Kaveh 
mailto:ka...@rivervalleytechnologies.com>> 
wrote:

Search for
(\d\d)\/(\d\d)\/(\d\d\d\d)
replace with
\3\1\2

See here

On Fri, 30 Sept 2022 at 23:46, Bob Sneidar via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:
Well it's like this. I am working in a document management system, and when I 
capture a date, I want to convert it to an sql date. I am not working in 
Livecode for this.

Bob S


> On Sep 30, 2022, at 10:38 , Jacques Clavel via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
>
> Why not :
> set itemdel to "/"
> get tDate
> put item 3 of it & item 1 of it & item 2 of it into tSql
>
> JC
>
> Le ven. 30 sept. 2022 à 19:13, Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> a écrit :
>
>> I'm trying to convert a date format like mm/dd/ to an sql date format
>> mmdd. Any ideas? Nothing I found on the interwebs seems to work.
>>
>> Bob S
>>
>>
>> ___
>> 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
>>
>
>
> --
> Jacques Clavel
> ___
> 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 ● 
ORCID
Accelerating the Communication of Research

___
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: Control or right click to show popup menu

2022-10-03 Thread Craig Newman via use-livecode
Hi.

On a new card make a field and a pulldown menu button. Place a few lines of 
text in the field and lock it. In the field script:
on mouseUp

set the loc of btn 1 to the mouseloc

click at the mouseLoc

end mouseUp

The menu opens at the line clicked on. 

This has been discussed extensively in the forums, if you want to search there. 
That discussion mainly dealt with loading the contents of the button with the 
field contents, or the selection of a particular menuItem once the menu itself 
was open. 

Craig

> On Oct 1, 2022, at 5:08 AM, Richmond via use-livecode 
>  wrote:
> 
> Why does this make me have a funny feeling you are still using a one-button 
> mouse on a Macintosh?
> 
> Certainly, I would stick with
> 
> on mouseDown  MN
>   if MN is 3 then . . .
> 
> Best, Richmond.
> 
> On 1.10.22 11:17, Peter Bogdanoff via use-livecode wrote:
>> Hi,
>> 
>> I want to control or right click on a line of text in a field to show a 
>> popup menu. So I’ve set the popup menu button to the loc of the mouse and 
>> it’s showing in place when the  controlKey is down.
>> 
>> However, the menu items won’t show  while the control key is also down.
>> 
>> Maybe I’m doing this wrong. In my application, how do make this work:  the 
>> user holds down the control key or right click  to do editing via choices 
>> provided by some kind of popup menu? Both Mac and Windows.
>> 
>> Thanks,
>> ___
>> 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