Re: ANDROID player won't play MP3 from server but locally?

2023-10-23 Thread Klaus major-k via use-livecode
Hi Jacque,

wonderful, thank you very much!
Will test this and report back.

> Am 23.10.2023 um 21:45 schrieb J. Landman Gay via use-livecode 
> :
> 
> On 10/22/23 7:34 AM, Klaus major-k via use-livecode wrote:
>> I'm having problems to play a MP3 (5 MB) from my server. And yes, I waited 
>> up to a minute before I closed the app. Works fine when I play it locally.
> 
> 
> Below is the script I use for mobile players. It's old so things may be 
> different now, but if I remember right I had to check playerPropertyAvailable 
> for the duration to be sure the player had enough content to start playing.
> 
> on createMobileAudioPlayer pURL, pPlayerName
>  -- pURL = remote video or audio file
>  -- pPlayerName = name of player to create; if empty uses LC-assigned ID
>  if sPlayerID is in mobileControls() then mobileControlDelete sPlayerID -- 
> init
>  if pPlayerName = "" then
>mobileControlCreate "player"
>put the result into sPlayerId
>  else
>mobileControlCreate "player",pPlayerName
>put pPlayerName into sPlayerID
>  end if
>  mobileControlSet sPlayerId, "rect", getPlayerRect() -- can use a literal 
> rect instead
>  mobileControlSet sPlayerId, "showController", true
>  mobileControlSet sPlayerId, "filename", pURL
>  mobileControlSet sPlayerId, "visible", true
>  if pURL begins with "http" then
>mobileBusyIndicatorStart "square", "Loading..." -- add loading indicator 
> until duration is available
>  end if
> end createMobileAudioPlayer
> 
> on playerPropertyAvailable pProperty -- msg sent when enough content is loaded
>  if pProperty is "duration" then
>mobileBusyIndicatorStop -- Remove the "Loading..." indicator and start 
> playing
>mobileControlDo sPlayerId, "play"
>  end if
> end playerPropertyAvailable
> 
> on setMobileAudioPlayer pPlayerName,pState -- control the state of the mobile 
> player
>  -- pState = "pause", "play", or "stop"
>  if pPlayerName is not among the lines of mobileControls() then exit 
> setMobileAudioPlayer
>  mobileControlDo pPlayerName, pState
>  if pState = "stop" then
>mobileBusyIndicatorStop -- in case it's still showing
>mobileControlSet pPlayerName, "visible", false
>mobileControlDelete pPlayerName
>  end if
> end setMobileAudioPlayer
> 
> on playerFinished -- sent on mobile when audio is done
>  setMobileAudioPlayer "stop"
> end playerFinished
> 
> -- 
> 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: ANDROID player won't play MP3 from server but locally?

2023-10-23 Thread J. Landman Gay via use-livecode

On 10/22/23 7:34 AM, Klaus major-k via use-livecode wrote:
I'm having problems to play a MP3 (5 MB) from my server. And yes, I waited up to a minute 
before I closed the app. Works fine when I play it locally.



Below is the script I use for mobile players. It's old so things may be different now, but if I 
remember right I had to check playerPropertyAvailable for the duration to be sure the player 
had enough content to start playing.



on createMobileAudioPlayer pURL, pPlayerName
  -- pURL = remote video or audio file
  -- pPlayerName = name of player to create; if empty uses LC-assigned ID
  if sPlayerID is in mobileControls() then mobileControlDelete sPlayerID -- init
  if pPlayerName = "" then
mobileControlCreate "player"
put the result into sPlayerId
  else
mobileControlCreate "player",pPlayerName
put pPlayerName into sPlayerID
  end if
  mobileControlSet sPlayerId, "rect", getPlayerRect() -- can use a literal rect 
instead
  mobileControlSet sPlayerId, "showController", true
  mobileControlSet sPlayerId, "filename", pURL
  mobileControlSet sPlayerId, "visible", true
  if pURL begins with "http" then
mobileBusyIndicatorStart "square", "Loading..." -- add loading indicator until duration is 
available

  end if
end createMobileAudioPlayer

on playerPropertyAvailable pProperty -- msg sent when enough content is loaded
  if pProperty is "duration" then
mobileBusyIndicatorStop -- Remove the "Loading..." indicator and start 
playing
mobileControlDo sPlayerId, "play"
  end if
end playerPropertyAvailable

on setMobileAudioPlayer pPlayerName,pState -- control the state of the mobile 
player
  -- pState = "pause", "play", or "stop"
  if pPlayerName is not among the lines of mobileControls() then exit 
setMobileAudioPlayer
  mobileControlDo pPlayerName, pState
  if pState = "stop" then
mobileBusyIndicatorStop -- in case it's still showing
mobileControlSet pPlayerName, "visible", false
mobileControlDelete pPlayerName
  end if
end setMobileAudioPlayer

on playerFinished -- sent on mobile when audio is done
  setMobileAudioPlayer "stop"
end playerFinished

--
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: PolyGrid: UNhilite a row?

2023-10-23 Thread Klaus major-k via use-livecode
Hi Mike,

> Am 23.10.2023 um 19:15 schrieb Mike Kerner via use-livecode 
> :
> 
> you didn't mention the workaround that you used.

I wrote earlier in this thread:
...
click at the topleft of widget "index"
...
That does the trick for me and UNhilited the widget.

> i'm not sure what we're supposed to do with the png since we can't see the
> code.

>> Am 23.10.2023 um 18:51 schrieb Mike Kerner via use-livecode 
>> :
>> what event are you setting it in? ...

So gave him an impression of how my layout and polygrids look like and where 
I want to UNhilte the index.

I tried had:
...
set the hilitedrow of widget "index" to "0"
...
set the hilitedrow of widget "index" to 0
...
set the pgHilitedText of widget "index" to ""
...
set the pgHilitedText of widget "index" to EMPTY
...
no dice!?


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: PolyGrid: UNhilite a row?

2023-10-23 Thread Mike Kerner via use-livecode
you didn't mention the workaround that you used.
i'm not sure what we're supposed to do with the png since we can't see the
code.

On Mon, Oct 23, 2023 at 1:12 PM Klaus major-k via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Mike,
>
> > Am 23.10.2023 um 19:09 schrieb Mike Kerner via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > unfortunately, all i can see is the png file.
>
> yes, by intention! ;-)
>
> > i can't download the stack to see what's going on.
>
> Sorry, stack is not meant for public...
>
>
> 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
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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: PolyGrid: UNhilite a row?

2023-10-23 Thread Klaus major-k via use-livecode
Hi Mike,

> Am 23.10.2023 um 19:09 schrieb Mike Kerner via use-livecode 
> :
> 
> unfortunately, all i can see is the png file.

yes, by intention! ;-)

> i can't download the stack to see what's going on.

Sorry, stack is not meant for public...


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: PolyGrid: UNhilite a row?

2023-10-23 Thread Klaus major-k via use-livecode
Hi Mark,

> Am 23.10.2023 um 19:08 schrieb Mark Wieder via use-livecode 
> :
> 
> On 10/23/23 10:03, Klaus major-k via use-livecode wrote:
> 
>> See here, I have a long list of PDF files and clicking the widget "index" 
>> will filter the PDF list with that char.
>> 
> 
> Davy's On The Road Again!
> Score points for coolness.

thanks! :-)
Yeah, great song!

> -- 
> Mark Wieder
> ahsoftw...@gmail.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: PolyGrid: UNhilite a row?

2023-10-23 Thread Mike Kerner via use-livecode
unfortunately, all i can see is the png file. i can't download the stack to
see what's going on.

On Mon, Oct 23, 2023 at 1:03 PM Klaus major-k via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Mike,
>
> > Am 23.10.2023 um 18:51 schrieb Mike Kerner via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > what event are you setting it in? i have had issues with the widgets not
> > responding to appearance updates in preopencard, but i don't have a great
> > recipe for it.
>
> See here, I have a long list of PDF files and clicking the widget "index"
> will filter the PDF list with that char.
> <
> https://www.dropbox.com/scl/fi/ygmnzx3s7pvknpbycvi6z/index_polygrid.png?rlkey=c4as77jo96c0e2em3bde9tpk8=0
> >
>
> Clicking button "A-Z" will the display all the files.
> I need to UNhilite the index in that button.
>
> No idea why it does not work? But the workaround does, so problem solved
> (for me and for now).
>
> > On Mon, Oct 23, 2023 at 12:50 PM Mike Kerner 
> > wrote:
> >
> >> interesting. it works for me. i use the numeric version (set the hilited
> >> row of widget "pg" to 0
> >>
> >> On Mon, Oct 23, 2023 at 11:40 AM Klaus major-k via use-livecode <
> >> use-livecode@lists.runrev.com> wrote:
> >>
> >>> Hi friends,
> >>>
> >>> I cannot UN-hilite a row in a polygrid?!
> >>> I tried:
> >>> ...
> >>> set the hilitedrow of widget "index" to "0"
> >>> ...
> >>> set the hilitedrow of widget "index" to 0
> >>> ...
> >>> set the pgHilitedText of widget "index" to ""
> >>> ...
> >>> set the pgHilitedText of widget "index" to EMPTY
> >>> ...
> >>> no dice!?
> >>>
> >>> I use the latest version of the "Widget pack".
> >>> Thanks in advance!
>
> 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
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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: PolyGrid: UNhilite a row?

2023-10-23 Thread Mark Wieder via use-livecode

On 10/23/23 10:03, Klaus major-k via use-livecode wrote:


See here, I have a long list of PDF files and clicking the widget "index" will 
filter the PDF list with that char.



Davy's On The Road Again!
Score points for coolness.

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


Re: PolyGrid: UNhilite a row?

2023-10-23 Thread Klaus major-k via use-livecode
Hi Mike,

> Am 23.10.2023 um 18:51 schrieb Mike Kerner via use-livecode 
> :
> 
> what event are you setting it in? i have had issues with the widgets not
> responding to appearance updates in preopencard, but i don't have a great
> recipe for it.

See here, I have a long list of PDF files and clicking the widget "index" will 
filter the PDF list with that char.


Clicking button "A-Z" will the display all the files.
I need to UNhilite the index in that button.

No idea why it does not work? But the workaround does, so problem solved (for 
me and for now).

> On Mon, Oct 23, 2023 at 12:50 PM Mike Kerner 
> wrote:
> 
>> interesting. it works for me. i use the numeric version (set the hilited
>> row of widget "pg" to 0
>> 
>> On Mon, Oct 23, 2023 at 11:40 AM Klaus major-k via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> Hi friends,
>>> 
>>> I cannot UN-hilite a row in a polygrid?!
>>> I tried:
>>> ...
>>> set the hilitedrow of widget "index" to "0"
>>> ...
>>> set the hilitedrow of widget "index" to 0
>>> ...
>>> set the pgHilitedText of widget "index" to ""
>>> ...
>>> set the pgHilitedText of widget "index" to EMPTY
>>> ...
>>> no dice!?
>>> 
>>> I use the latest version of the "Widget pack".
>>> Thanks in advance!

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: PolyGrid: UNhilite a row?

2023-10-23 Thread Mike Kerner via use-livecode
what event are you setting it in? i have had issues with the widgets not
responding to appearance updates in preopencard, but i don't have a great
recipe for it.

On Mon, Oct 23, 2023 at 12:50 PM Mike Kerner 
wrote:

> interesting. it works for me. i use the numeric version (set the hilited
> row of widget "pg" to 0
>
> On Mon, Oct 23, 2023 at 11:40 AM Klaus major-k via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> Hi friends,
>>
>> I cannot UN-hilite a row in a polygrid?!
>> I tried:
>> ...
>> set the hilitedrow of widget "index" to "0"
>> ...
>> set the hilitedrow of widget "index" to 0
>> ...
>> set the pgHilitedText of widget "index" to ""
>> ...
>> set the pgHilitedText of widget "index" to EMPTY
>> ...
>> no dice!?
>>
>> I use the latest version of the "Widget pack".
>> Thanks in advance!
>>
>>
>> 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
>>
>
>
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>and did a little diving.
> And God said, "This is good."
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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: PolyGrid: UNhilite a row?

2023-10-23 Thread Mike Kerner via use-livecode
interesting. it works for me. i use the numeric version (set the hilited
row of widget "pg" to 0

On Mon, Oct 23, 2023 at 11:40 AM Klaus major-k via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi friends,
>
> I cannot UN-hilite a row in a polygrid?!
> I tried:
> ...
> set the hilitedrow of widget "index" to "0"
> ...
> set the hilitedrow of widget "index" to 0
> ...
> set the pgHilitedText of widget "index" to ""
> ...
> set the pgHilitedText of widget "index" to EMPTY
> ...
> no dice!?
>
> I use the latest version of the "Widget pack".
> Thanks in advance!
>
>
> 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
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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


PolyGrid: UNhilite a row?

2023-10-23 Thread Klaus major-k via use-livecode
Hi friends,

I cannot UN-hilite a row in a polygrid?!
I tried:
...
set the hilitedrow of widget "index" to "0"
...
set the hilitedrow of widget "index" to 0
...
set the pgHilitedText of widget "index" to ""
...
set the pgHilitedText of widget "index" to EMPTY
...
no dice!?

I use the latest version of the "Widget pack".
Thanks in advance!


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: Mdiai Keys - volume / play/pause/next...

2023-10-23 Thread Bob Sneidar via use-livecode
Whoops! You were talking about media keys of course. I DO get values in a 
rawKeyUp handler for arrow keys and the others I mentioned. Not for the media 
keys though. You can just see why. All the other keys are part of a standard 
ANSI style keyboard. The media keys are not so far as I can tell, as common as 
it is to have them on a virtually every desktop keyboard these days. 

Bob S


> On Oct 23, 2023, at 8:22 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> I have in the past was unable to trap a key event for arrow keys. I think 
> Jacque is right I do not think the system deals with arrow keys the way other 
> keys work. They do not send any kind of ascii code, so LC would have to 
> monitor them differently. Does the insert, home page up and page down buttons 
> return anything? If not then I think that validates the idea that LC is only 
> looking for ASCII style events. 
> 
> Bob S
> 
> 
>> On Oct 20, 2023, at 8:08 AM, David Bovill via use-livecode 
>>  wrote:
>> 
>> Is there a way to trap for these keyboard events.
>> 
>> Volume and Media Keys: In the HID standard, volume and media control keys
>> often have specific usage IDs. For example:
>> 
>> 
>>  - 0xE9 is for volume up.
>>  - 0xEA is for volume down.
>>  - 0xE2 is for mute.
>>  - 0xCD is for play/pauseetc
>> ___
>> 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: Mdiai Keys - volume / play/pause/next...

2023-10-23 Thread Bob Sneidar via use-livecode
I have in the past was unable to trap a key event for arrow keys. I think 
Jacque is right I do not think the system deals with arrow keys the way other 
keys work. They do not send any kind of ascii code, so LC would have to monitor 
them differently. Does the insert, home page up and page down buttons return 
anything? If not then I think that validates the idea that LC is only looking 
for ASCII style events. 

Bob S


> On Oct 20, 2023, at 8:08 AM, David Bovill via use-livecode 
>  wrote:
> 
> Is there a way to trap for these keyboard events.
> 
> Volume and Media Keys: In the HID standard, volume and media control keys
> often have specific usage IDs. For example:
> 
> 
>   - 0xE9 is for volume up.
>   - 0xEA is for volume down.
>   - 0xE2 is for mute.
>   - 0xCD is for play/pauseetc
> ___
> 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: Windows Standalone strands windows tasks

2023-10-23 Thread Eller, Roger via use-livecode
I primarily develop for Windows, and haven't experienced this since my early 
rookie years.  I believe the secret is to have the line "set destroyStack to 
true" in every stack so that when it closes, nothing lingers in memory.  Then, 
when you actually quit, it all goes away.


~Roger


From: use-livecode  on behalf of Bob 
Sneidar via use-livecode 
Sent: Thursday, October 12, 2023 12:42 PM
To: How to use LiveCode 
Cc: Bob Sneidar 
Subject: RE: Windows Standalone strands windows tasks


CAUTION: This email originated from outside of the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.



Thanks I'll give that a try. I think I am already quitting the splash stack, 
because my MacOS works properly, but the second part I never knew about. 
Unfortunately my Apple laptop is in the shop so I won't be able to test until 
Monday.

Bob S

-Original Message-
From: use-livecode  On Behalf Of Klaus 
major-k via use-livecode
Sent: Thursday, October 12, 2023 9:20 AM
To: How to use LiveCode 
Cc: Klaus major-k 
Subject: Re: Windows Standalone strands windows tasks

Hi Bob,

> Am 12.10.2023 um 17:36 schrieb Bob Sneidar via use-livecode 
> :
>
> Hi all.
>
> I have a standalone that uses a splash stack, which upon launch displays a 
> startup graphic, then hides itself and opens the mainstack of my project. On 
> MacOS when I "quit" the entire application quits. On Windows however the 
> splash stack (which is the stack the standalone is built from) keeps running, 
> and if I re-launch the standalone it creates a second instance of the app in 
> memory.
>
> How do I get the standalone to quit when I close the mainstack in Windows?

add this to the script your mainstack:
-
on closestack
  close stack "your splash stack here"
  ## do more closestack stuff
end closestack
-
That should do the trick.

Hint:
To avoid this "Windows feature:
>> if I re-launch the standalone it creates a second instance of the app in 
>> memory.
add a dummy handler to your standalone/splash stack script:
-
on relaunch
   ## NADA!
end relaunch
-

> Bob S

Best

Klaus

--
Klaus Major
___
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: Me and target of script widgets

2023-10-23 Thread Mike Kerner via use-livecode
also brutal answer:
documentation needs to be not just extended, but written for the property
inspector and property editor, or you are going to be spinning your wheels
trying to figure out that thing, too.
this same issue has made writing lcb widgets so exceptionally painful that
i've stopped wasting my time.
the answer from the mothership has been "if you have some specific
question, ask," which, of course leads to a slew of questions, which then
go mostly or entirely unanswered.

On Sun, Oct 22, 2023 at 6:01 AM Alex Tweedly via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Brutal answer :-)
>
> Script widgets aren't ready for release yet. They have (effectivtely) no
> documentation, no examples, no lessons.
>
> Unless you have a desparate need to do it now, I'd suggest waiting until
> they are somewhere near ready.
>
> Alex.
>
> On 22/10/2023 10:41, David Bovill via use-livecode wrote:
> > Having my first go at script widgets. It appears that there is either an
> > issue (or it is a feature) with script widgets and "me"?
> >
> > A handler like this:
> >
> > *on* mouseUp
> >
> > *## All references are to "inner" controls (ie the target) and not the
> > group*
> >
> > *put* the short id of me into shortID
> >
> > *put* the long id of the target into sName
> >
> > *put* the long id of me into myID
> >
> > *## Have to be explicit with messages*
> >
> > *-- dispatch "menu_AskEdit" to me -- or the target does not work*
> >
> > *dispatch* "menu_AskEdit" to this card with myID,shortID
> >
> > *end* mouseUp
> >
> > When inside a script only widget shows that would normally pass the long
> id
> > of the control clicked on within the group (script widget) with myID and
> > the short ID of the group (script widget) itself in shortID. However both
> > the target and me refer to the control and not the group / script widget.
> > It seems there is no easy way to find out a reference to "me" in a
> > script widget?
> >
> > I've a lot of scripts that use "me" in behaviors for potential script
> > widgets - so looking for a short term and long term solution for this?
> > ___
> > 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
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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