Re: Equivalent of a field's "on linkclicked" message in a browser widget?

2022-12-06 Thread Klaus major-k via use-livecode
Hi Jacque,

> Am 06.12.2022 um 21:59 schrieb J. Landman Gay via use-livecode 
> :
> On 12/6/22 1:13 PM, Klaus major-k via use-livecode wrote:
>>> what is the browser widget's equivalent to a field's "on linkclicked tLink" 
>>> message?
>>> Thanks for any hint!
>> I want to check if the user clicked e.g. a PDF file and download the file in 
>> that case.
>> What message do I have to catch in the browser widget?
> You could try "browserDocumentLoadBegin" or "browserNavigateBegin" which 
> would give you the URL that was clicked. But most browsers now download or 
> display the PDF automatically when a PDF link is clicked. Firefox opens the 
> PDF in a new window, and I think Safari downloads it. Not sure about Windows.

Windows, too, if the Acrobat Plug-in is installed on the target machine.
Only Android cannot display in a browser so far, too bad.

> If this is for mobile, the URL might be enough information. BTW, I tried to 
> use these messages a very long time ago and they were not sent, but hopefully 
> that's been fixed by now.

Fingers crossed, will try and tell. :-)
Thank you!

> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com

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


Re: Equivalent of a field's "on linkclicked" message in a browser widget?

2022-12-06 Thread J. Landman Gay via use-livecode

On 12/6/22 1:13 PM, Klaus major-k via use-livecode wrote:

what is the browser widget's equivalent to a field's "on linkclicked tLink" 
message?
Thanks for any hint!


I want to check if the user clicked e.g. a PDF file and download the file in 
that case.
What message do I have to catch in the browser widget?


You could try "browserDocumentLoadBegin" or "browserNavigateBegin" which would give you the URL 
that was clicked. But most browsers now download or display the PDF automatically when a PDF 
link is clicked. Firefox opens the PDF in a new window, and I think Safari downloads it. Not 
sure about Windows.


If this is for mobile, the URL might be enough information. BTW, I tried to use these messages 
a very long time ago and they were not sent, but hopefully that's been fixed by now.


--
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: Build in Answer Dialog

2022-12-06 Thread Bob Sneidar via use-livecode
I am sure you can, after you open it once on a Mac. I was replacing the 
datagrid behavior for every download this way. I would brick the bundle though 
if I replaced anything before opening it first.

Bob S


On Dec 6, 2022, at 09:34 , Klaus major-k via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hi Panos,

Am 06.12.2022 um 18:24 schrieb panagiotis m via use-livecode 
mailto:use-livecode@lists.runrev.com>>:
Hello Paul,
You can tweak this file with a text editor:
/Applications/LiveCode 9.6.9 (rc
2).app/Contents/Tools/Toolset/palettes/answer-dialog/revanswerdialog.livecodescript:
/* Creates the prompt field if there is not one already created */
if the number of fields of me is 0 then
 create field in this card of me
 set sharedText of it to true
 set dontWrap of it to false
 set lockText of it to true
 set opaque of it to false
 set traversalOn of it to false
 set showBorder of it to false
 set vScrollbar of it to true
 set width of it to 293
 set height of it to 342
 set the fixedLineHeight of it to "false"   /// < ADD THIS LINE
end if
Note you have to quit LC first, then make this change, then save it.

Kind regards,
Panos

are you sure that we are allowed save a file inside of an application bundle
inside of the APPLICATION folder on macOS?


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


[OT} Sunsetting Atom Editor 12/15/2022

2022-12-06 Thread Ralph DiMola via use-livecode
I was wondering what editor the LC community is migrating to? I like Atom
with the LCS and LCB packages.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


___
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: Equivalent of a field's "on linkclicked" message in a browser widget?

2022-12-06 Thread Klaus major-k via use-livecode
Hi all,

> Am 06.12.2022 um 17:14 schrieb Klaus major-k via use-livecode 
> :
> 
> Hi all,
> 
> what is the browser widget's equivalent to a field's "on linkclicked tLink" 
> message?
> Thanks for any hint!

I want to check if the user clicked e.g. a PDF file and download the file in 
that case.
What message do I have to catch in the browser widget?


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


Re: Build in Answer Dialog

2022-12-06 Thread Geoff Canyon via use-livecode
On Tue, Dec 6, 2022 at 9:35 AM Klaus major-k via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
> are you sure that we are allowed save a file inside of an application
> bundle
> inside of the APPLICATION folder on macOS?
>

Since it already gives fairly easy access to the IDE/code, toward the goal
of making Navigator as dangerous as possible I should find a way to expose
this as well. :-)
___
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: Build in Answer Dialog

2022-12-06 Thread Klaus major-k via use-livecode
Hi Panos,

> Am 06.12.2022 um 18:45 schrieb panagiotis m via use-livecode 
> :
> 
> Hello Klaus,
> 
> I think you can, unless the application bundle is read-only. If this is the
> case, then you can still make it writable using chmod in the terminal, or
> using a text editor (BBEdit, TextWrangler) that will tell you that the file
> is read-only and ask you if you want to make it writable, without messing
> with the terminal.
> 
> That said, the LiveCode app bundle on macOS used to be read-only. But I
> think at some point (probaby when we started to notarize it?) this changed
> - not sure if this was intentional or not :)

Aha! Thank you for this helpful info!

> Kind regards,
> Panos
> --
> 
> On Tue, 6 Dec 2022 at 19:35, Klaus major-k via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Hi Panos,
>>> Am 06.12.2022 um 18:24 schrieb panagiotis m via use-livecode <
>> use-livecode@lists.runrev.com>:
>>> Hello Paul,
>>> You can tweak this file with a text editor:
>>> /Applications/LiveCode 9.6.9 (rc
>>> 
>> 2).app/Contents/Tools/Toolset/palettes/answer-dialog/revanswerdialog.livecodescript:
>>> /* Creates the prompt field if there is not one already created */
>>> if the number of fields of me is 0 then
>>>  ...
>>> Note you have to quit LC first, then make this change, then save it.
>>> 
>>> Kind regards,
>>> Panos
>> 
>> are you sure that we are allowed save a file inside of an application
>> bundle
>> inside of the APPLICATION folder on macOS?

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


Re: Build in Answer Dialog

2022-12-06 Thread panagiotis m via use-livecode
Hello Klaus,

I think you can, unless the application bundle is read-only. If this is the
case, then you can still make it writable using chmod in the terminal, or
using a text editor (BBEdit, TextWrangler) that will tell you that the file
is read-only and ask you if you want to make it writable, without messing
with the terminal.

That said, the LiveCode app bundle on macOS used to be read-only. But I
think at some point (probaby when we started to notarize it?) this changed
- not sure if this was intentional or not :)

Kind regards,
Panos
--



On Tue, 6 Dec 2022 at 19:35, Klaus major-k via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Panos,
>
> > Am 06.12.2022 um 18:24 schrieb panagiotis m via use-livecode <
> use-livecode@lists.runrev.com>:
> > Hello Paul,
> > You can tweak this file with a text editor:
> > /Applications/LiveCode 9.6.9 (rc
> >
> 2).app/Contents/Tools/Toolset/palettes/answer-dialog/revanswerdialog.livecodescript:
> > /* Creates the prompt field if there is not one already created */
> > if the number of fields of me is 0 then
> >   create field in this card of me
> >   set sharedText of it to true
> >   set dontWrap of it to false
> >   set lockText of it to true
> >   set opaque of it to false
> >   set traversalOn of it to false
> >   set showBorder of it to false
> >   set vScrollbar of it to true
> >   set width of it to 293
> >   set height of it to 342
> >   set the fixedLineHeight of it to "false"   /// < ADD THIS LINE
> > end if
> > Note you have to quit LC first, then make this change, then save it.
> >
> > Kind regards,
> > Panos
>
> are you sure that we are allowed save a file inside of an application
> bundle
> inside of the APPLICATION folder on macOS?
>
>
> 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


Re: Build in Answer Dialog

2022-12-06 Thread Klaus major-k via use-livecode
Hi Panos,

> Am 06.12.2022 um 18:24 schrieb panagiotis m via use-livecode 
> :
> Hello Paul,
> You can tweak this file with a text editor:
> /Applications/LiveCode 9.6.9 (rc
> 2).app/Contents/Tools/Toolset/palettes/answer-dialog/revanswerdialog.livecodescript:
> /* Creates the prompt field if there is not one already created */
> if the number of fields of me is 0 then
>   create field in this card of me
>   set sharedText of it to true
>   set dontWrap of it to false
>   set lockText of it to true
>   set opaque of it to false
>   set traversalOn of it to false
>   set showBorder of it to false
>   set vScrollbar of it to true
>   set width of it to 293
>   set height of it to 342
>   set the fixedLineHeight of it to "false"   /// < ADD THIS LINE
> end if
> Note you have to quit LC first, then make this change, then save it.
> 
> Kind regards,
> Panos

are you sure that we are allowed save a file inside of an application bundle 
inside of the APPLICATION folder on macOS?


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


Re: Build in Answer Dialog

2022-12-06 Thread panagiotis m via use-livecode
Hello Paul,

You can tweak this file with a text editor:

/Applications/LiveCode 9.6.9 (rc
2).app/Contents/Tools/Toolset/palettes/answer-dialog/revanswerdialog.livecodescript:

/* Creates the prompt field if there is not one already created */
if the number of fields of me is 0 then
   create field in this card of me
   set sharedText of it to true
   set dontWrap of it to false
   set lockText of it to true
   set opaque of it to false
   set traversalOn of it to false
   set showBorder of it to false
   set vScrollbar of it to true
   set width of it to 293
   set height of it to 342
   set the fixedLineHeight of it to "false"   /// < ADD THIS LINE
end if

Note you have to quit LC first, then make this change, then save it.

Kind regards,
Panos
---

On Tue, 6 Dec 2022 at 19:08, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Does anyone know how to make a change to the built in Answer Dialog
> stack permanent (for a given instance of LC)?
>
> I can show IDE stack in the Project Browser and see the Answer Dialog
> stack and make the change I want (unchecking the Fixed line height for
> the field to fix regression:
> https://quality.livecode.com/show_bug.cgi?id=24038). However, I can't
> seem to save the change. Save presents a Save As dialog and I have no
> idea where the stack is located. As it has no filename property, I
> figure it is created on the fly by script, but I have no idea where that
> IDE script would reside.
>
> I've asked Livecode Ltd, but it is after hours in Scotland, so I am
> hoping someone on this list may have an answer before they have a chance
> to reply tomorrow.
>
> Thanks in advance,
>
>
> ___
> 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


Build in Answer Dialog

2022-12-06 Thread Paul Dupuis via use-livecode
Does anyone know how to make a change to the built in Answer Dialog 
stack permanent (for a given instance of LC)?


I can show IDE stack in the Project Browser and see the Answer Dialog 
stack and make the change I want (unchecking the Fixed line height for 
the field to fix regression: 
https://quality.livecode.com/show_bug.cgi?id=24038). However, I can't 
seem to save the change. Save presents a Save As dialog and I have no 
idea where the stack is located. As it has no filename property, I 
figure it is created on the fly by script, but I have no idea where that 
IDE script would reside.


I've asked Livecode Ltd, but it is after hours in Scotland, so I am 
hoping someone on this list may have an answer before they have a chance 
to reply tomorrow.


Thanks in advance,


___
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


Equivalent of a field's "on linkclicked" message in a browser widget?

2022-12-06 Thread Klaus major-k via use-livecode
Hi all,

what is the browser widget's equivalent to a field's "on linkclicked tLink" 
message?
Thanks for any hint!


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