Re: 3-way slider control

2021-05-24 Thread Roger Guay via use-livecode
And if you need color and stuff, you can download my ScrollbarOmatic under 
Roger Guay from Sample Stacks.

Roger

> On May 24, 2021, at 3:28 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> On 5/24/21 3:18 PM, Paul Dupuis via use-livecode wrote:
>> Hi all,
>> I am looking to see if anyone has a 3-positions slider control they might be 
>> willing to share. I need a control that has a "left, middle, and Right" 
>> positions (whatever they are called). Prefer horizontal orientation and 
>> resizable so I can adjust the size to the screen area where it needs to go, 
>> but I can resize graphics if needed.
> 
> You can do this with LC's built-in horizontal scrollbar. Drag a Slider 
> control to the card. Set the start value to 1 and the end value to 3. By 
> default there will be numbers displayed but you can turn those off and use 
> labels underneath instead.
> 
> Put this script into the slider. It should make the slider snap to one of the 
> three positions:
> 
> 
> on scrollBarDrag
>  set the thumbPos of me to the thumbpos of me mod(4)
> end scrollBarDrag
> 
> If you want to change the color, use an effects overlay. None of the built-in 
> color properties apply.
> 
> 
> -- 
> 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

___
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: 3-way slider control

2021-05-24 Thread J. Landman Gay via use-livecode

On 5/24/21 3:18 PM, Paul Dupuis via use-livecode wrote:

Hi all,

I am looking to see if anyone has a 3-positions slider control they might be willing to share. 
I need a control that has a "left, middle, and Right" positions (whatever they are called). 
Prefer horizontal orientation and resizable so I can adjust the size to the screen area where 
it needs to go, but I can resize graphics if needed.


You can do this with LC's built-in horizontal scrollbar. Drag a Slider control to the card. Set 
the start value to 1 and the end value to 3. By default there will be numbers displayed but you 
can turn those off and use labels underneath instead.


Put this script into the slider. It should make the slider snap to one of the 
three positions:


on scrollBarDrag
  set the thumbPos of me to the thumbpos of me mod(4)
end scrollBarDrag

If you want to change the color, use an effects overlay. None of the built-in color properties 
apply.



--
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: 3-way slider control

2021-05-24 Thread Rick Harrison via use-livecode
Hi Paul,

Grab a horizontal slider control.

Set the start position to -1
Set the end position to +1
Set the current position to 0

Make it any length you want.

If you try clicking on a 1/4 setting it will spring to the next value,
giving it the left middle and right positions you want.

Let me know if that works well enough for you.

Rick

> On May 24, 2021, at 4:18 PM, Paul Dupuis via use-livecode 
>  wrote:
> 
> Hi all,
> 
> I am looking to see if anyone has a 3-positions slider control they might be 
> willing to share. I need a control that has a "left, middle, and Right" 
> positions (whatever they are called). Prefer horizontal orientation and 
> resizable so I can adjust the size to the screen area where it needs to go, 
> but I can resize graphics if needed.
> 
> Thank you to anyone (and everyone) 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


macOS and the default font in fields

2021-05-24 Thread Paul Dupuis via use-livecode
I am hoping some macOS guru out there can explain this in some way that 
makes sense.


LiveCode 9.6.x supports Windows 7 to 10 and macOS 10.9.5 and up (10.16 
aka 11.x aka Big Sur)


I wanted to know what the default fonts are for each OS and version for 
Windows and macOS. Google returned a number of sources, such as: 
https://www.granneman.com/webdev/coding/css/fonts-and-formatting/default-fonts#mac-os-xos-xmacos


The above page is very clear for Windows > Segue UI for 7, 8, 8.1 and 10
Mac OS has Lucida Grande for Mavericks, then Helvetica Neue for Yosemite 
(10.10) and "San Francisco" from 10.11 and up, although this link above 
does not list 10.15 nor 10.16, but other google searches on Catalina say 
San Francisco.


My problem is "put the effective textFont of fld 1" for a new stack and 
single field, returns "Segue UI" on Windows (all versions I have tested on)


On Mohave (10.14) (my mac's OS), I get "(Text)" and futher, if I lick on 
properties for the field and the "A" or font properties and look at the 
font list under Mohave, there is NO "San Francisco". I see a couple 
Lucida Grande and a WHOLE LOT of Helvetica Neue's, but no "San Francisco"


Is the internet wrong on this or is this font hidden or what the heck is 
going on. If I search Apple's developer site for variations of 'Catalina 
default font' or 'Big Sur default font', I get to pages like: 
https://support.apple.com/en-us/HT211240 (for Big Sur, but pretty much 
the same for Catalina) where it list all installed fonts and there is a 
Lucida Grande and Helvetica Neue's, but again NO San Francisco.


I think I recall this came up previously as to why 'effective' textFont 
of an object does not return an ACTUAL font name, which still seems like 
a bug to me, but I vaguely recall there was some reason for it.


My objective is to store the defaults for a given OS and version on 
startup of my application, so that if the user uses existing controls to 
change fonts in various places, I cna provide a means to "Reset" them to 
the defaults


I gather from the Dictionary entries for textFont and fontNames that 
just setting the textFont of a field to "(Default)" will reset it to the 
applicable default for the control type (field) and OS and OS version. 
Does this work on Windows? If so, then WHY does "effective textFont" on 
Windows return Segue UI but on macOS returns (Text), another of these 
placeholder font names described in the fontNames function entry?


Any help making sense of this would be welcome.

___
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: Random slowdown in standalone

2021-05-24 Thread Marty Knapp via use-livecode
This turned out to be (apparently) a partially corrupted stack. While it would 
function, simply things like going to a stack could take a couple of minutes. 
When I tracked down the offending stack and replaced it with a backup, 
performance returned to normal. 

Marty

> On May 23, 2021, at 5:15 PM, Marty Knapp  wrote:
> 
> I'm having a really weird problem here. I have an app that's been working 
> fine. In the IDE everything seems to work as expected. But in a standalone 
> I'm getting random slow downs. The app always seems to open fine but then 
> when I try to open various stacks I will get the wristwatch icon and it might 
> take a minute or more for the stack to appear on screen. But the next time it 
> may open fine. Even when it works OK, opening stacks seems a tad sluggish. 
> It’s doing this on 2 different Macs (Mojave). I've reinstalled LC and deleted 
> the Preference file.
> 
> Marty


___
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


3-way slider control

2021-05-24 Thread Paul Dupuis via use-livecode

Hi all,

I am looking to see if anyone has a 3-positions slider control they 
might be willing to share. I need a control that has a "left, middle, 
and Right" positions (whatever they are called). Prefer horizontal 
orientation and resizable so I can adjust the size to the screen area 
where it needs to go, but I can resize graphics if needed.


Thank you to anyone (and everyone) 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


Re: Speech Library: Where is the "Utterance" - Off

2021-05-24 Thread J. Landman Gay via use-livecode

I think this should do it:

speechSpeakUtterance(empty)

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On May 23, 2021 5:45:58 PM Sannyasin Brahmanathaswami via use-livecode 
 wrote:



If I am a user, and I get phone call, we just want “speech” is “off”



Where is the “mouseup”?



I can’t find any “off” switch



   ▸ speechInitializeLibrary

   ▸ speechLibraryInitialized pSuccessLink

   ▸ speechGetVoices

   ▸ speechSetVoice(pVoiceIdentifier)

   ▸ speechSpeakUtterance(pString)

   ▸ speechUtteranceDidFinish pCompleted

   ▸ speechSetPitch 1.5

   ▸ speechSetRate(pRate)

   ▾ speechFinalizeLibrary



BR



___
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


[ANN] This Week in LiveCode 266

2021-05-24 Thread panagiotis merakos via use-livecode
Hi all,

Read about new developments in LiveCode open source and the open source
community in today's edition of the "This Week in LiveCode" newsletter!

Read issue #266 here: https://bit.ly/3wtnFMN

This is a weekly newsletter about LiveCode, focussing on what's been
going on in and around the open source project. New issues will be
released weekly on Mondays. We have a dedicated mailing list that will
deliver each issue directly to your e-mail, so you don't miss any!

If you have anything you'd like mentioned (a project, a discussion
somewhere, an upcoming event) then please get in touch.


-- 
Panagiotis Merakos 
LiveCode Software Developer

Everyone Can Create Apps 
___
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: Speech Library: Where is the "Utterance" - Off

2021-05-24 Thread Tom Glod via use-livecode
revStopSpeech

On Sun, May 23, 2021 at 6:44 PM Sannyasin Brahmanathaswami via use-livecode
 wrote:

> If I am a user, and I get phone call, we just want “speech” is “off”
>
>
>
> Where is the “mouseup”?
>
>
>
> I can’t find any “off” switch
>
>
>
> ▸ speechInitializeLibrary
>
> ▸ speechLibraryInitialized pSuccessLink
>
> ▸ speechGetVoices
>
> ▸ speechSetVoice(pVoiceIdentifier)
>
> ▸ speechSpeakUtterance(pString)
>
> ▸ speechUtteranceDidFinish pCompleted
>
> ▸ speechSetPitch 1.5
>
> ▸ speechSetRate(pRate)
>
> ▾ speechFinalizeLibrary
>
>
>
> BR
>
>
>
> ___
> 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
>


-- 
Tom Glod
Founder & Developer
MakeShyft R.D.A (www.makeshyft.com)
Mobile:647.562.9411
___
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