Re: 3-way slider control

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

Regardless, I have decided to use a standard LC slider set to
-1,0,+1 with some labels grouped to it. It works like a charm
and minimizes the number of graphics/objects and code.


I was interested to see that; it's clever, and it does work if you click in 
the slider bar. But dragging the indicator allows partial decimal 
positions. I don't know if that matters for your purposes.


--
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-25 Thread Paul Dupuis via use-livecode
Yea, I know I can make my own custom controls and have on numerous 
occasions.


I *MUCH* prefer to use existing controls as I dislike UI coding. To me 
it is the most tedious part of app development.


This google search shows (at least the majority of initial images) a 
bunch of 2-position on/off switches that are often circular or squares 
"thumbs" in a oval or rectangular "switch". I was looking for something 
like that (or LC's switch widget) but with 3 positions.


https://www.google.com/search?q=sliding+switch+icons=isch=2ahUKEwiR6vXFyuXwAhU517sIHfbeA-kQ2-cCegQIABAA=sliding+switch+icons_lcp=CgNpbWcQAzoGCAAQBxAeOggIABAIEAcQHlCFMFijOWC_PWgAcAB4AIABnwGIAeEIkgEDMC44mAEAoAEBqgELZ3dzLXdpei1pbWfAAQE=img=BFKtYJHYH7mu7_UP9r2PyA4=910=1920

Regardless, I have decided to use a standard LC slider set to -1,0,+1 
with some labels grouped to it. It works like a charm and minimizes the 
number of graphics/objects and code.


Thanks,



On 5/25/2021 1:14 PM, Rick Harrison via use-livecode wrote:

Hi Paul,

You can make your own custom controls in LiveCode.

Perhaps you just want something more like three radio buttons,
or simulate a slider control with buttons and graphics.

Give us an example image to help clarify what you want.

Thanks,

Rick


On May 25, 2021, at 11:38 AM, Paul Dupuis via use-livecode 
 wrote:

Rick and Jacqueline,

Thank you for the horizontal slider suggestions. This could suffice for what I need. I was 
imagining more of the common "circle inside an oval" "switch" control you see 
on the web and in apps these days. However, beggars can't always be choosers and I the slider works 
well for what I need.

Roger,

Thank you. ScrollbarOmatic looks like I could adjust setting to get something closer to a 
"circle inside an oval" 3-position switch. FYI as I was adjusting the controls 
to get the style I am seeking the following error popped up:

*compiling at 11:34:54 AM*

Type Expression: bad factor

Object backBar

Line if tx ≥ tIndEndPos then

Hint ≥

I did not seem to actually impact continue to refine the appearance.

___
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: macOS and the default font in fields

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

On 5/25/2021 3:06 PM, J. Landman Gay via use-livecode wrote:

On 5/24/21 4:19 PM, Paul Dupuis via use-livecode wrote:
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


The fonts in parentheses are special placeholders for the current 
system's various text fonts or styles, created so we don't have to 
figure out what that is. You should be able to reset the fields by 
assigning one of those, probably either ("Text") or ("Default"), as 
the font and let LC figure out what to use. That should work on all 
operating systems, including mobile.


I can't explain the discrepancy when getting the effective textFont 
but I've been using "(Text)" most of the time with good results.




Yup, that's the solution I went with -- set the textFont of tObject to 
"(Text)" -- where tObject is always a field reference and it works well.


As an old school programmer, it just bugs me that some piece of software 
(the macOS, LiveCode, whatever) is trying to hide the actual font from 
me for whatever reasons.


As always, thanks for replying with the tip.

___
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: macOS and the default font in fields

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

On 5/24/21 4:19 PM, Paul Dupuis via use-livecode wrote:
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


The fonts in parentheses are special placeholders for the current system's various text fonts 
or styles, created so we don't have to figure out what that is. You should be able to reset the 
fields by assigning one of those, probably either ("Text") or ("Default"), as the font and let 
LC figure out what to use. That should work on all operating systems, including mobile.


I can't explain the discrepancy when getting the effective textFont but I've been using 
"(Text)" most of the time with good results.


--
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-25 Thread Roger Guay via use-livecode
Nice! I like the idea of this because it gets the readout away from the cursor 
so that you can read it.

Roger

> On May 25, 2021, at 11:18 AM, Richmond via use-livecode 
>  wrote:
> 
> Sorry: went a bit bonkers:
> 
> https://forums.livecode.com/viewtopic.php?f=7=35903
> 
> Richmond.
> 
> On 25.05.21 20:23, Roger Guay via use-livecode wrote:
>> Ah yes, I knew that but had forgotten it. Thank you, Klaus!
>> 
>> Roger
>> 
>>> On May 25, 2021, at 10:11 AM, Klaus major-k via use-livecode 
>>>  wrote:
>>> 
>>> Hi freinds,
>>> 
>>> this - ≥
>>> is a MAC-only character and will throw an error on Windows!
>>> Use/replace with:
>>> <=
 =
>>> <>
>>> for full platform comatibilty!
>>> 
 Am 25.05.2021 um 19:06 schrieb Roger Guay via use-livecode 
 :
 
 Hi Paul, I’m not able to duplicate the error here. Can you tell what 
 control you were adjusting?
 
 You should be able to achieve what you want by changing the ‘backBar” grc 
 style from roundrect to oval. You might have to play with the code a bit, 
 but it should work.
 
 Roger
> Thank you. ScrollbarOmatic looks like I could adjust setting to get 
> something closer to a "circle inside an oval" 3-position switch. FYI as I 
> was adjusting the controls to get the style I am seeking the following 
> error popped up:
> 
> *compiling at 11:34:54 AM*
> 
> Type Expression: bad factor
> 
> Object backBar
> 
> Line if tx ≥ tIndEndPos then
> 
> Hint ≥
> 
> I did not seem to actually impact continue to refine the appearance.
>>> 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: 3-way slider control

2021-05-25 Thread Richmond via use-livecode

Sorry: went a bit bonkers:

https://forums.livecode.com/viewtopic.php?f=7=35903

Richmond.

On 25.05.21 20:23, Roger Guay via use-livecode wrote:

Ah yes, I knew that but had forgotten it. Thank you, Klaus!

Roger


On May 25, 2021, at 10:11 AM, Klaus major-k via use-livecode 
 wrote:

Hi freinds,

this - ≥
is a MAC-only character and will throw an error on Windows!
Use/replace with:
<=

=

<>
for full platform comatibilty!


Am 25.05.2021 um 19:06 schrieb Roger Guay via use-livecode 
:

Hi Paul, I’m not able to duplicate the error here. Can you tell what control 
you were adjusting?

You should be able to achieve what you want by changing the ‘backBar” grc style 
from roundrect to oval. You might have to play with the code a bit, but it 
should work.

Roger

Thank you. ScrollbarOmatic looks like I could adjust setting to get something closer to a 
"circle inside an oval" 3-position switch. FYI as I was adjusting the controls 
to get the style I am seeking the following error popped up:

*compiling at 11:34:54 AM*

Type Expression: bad factor

Object backBar

Line if tx ≥ tIndEndPos then

Hint ≥

I did not seem to actually impact continue to refine the appearance.

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

2021-05-25 Thread Roger Guay via use-livecode
Ah yes, I knew that but had forgotten it. Thank you, Klaus!

Roger

> On May 25, 2021, at 10:11 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi freinds,
> 
> this - ≥
> is a MAC-only character and will throw an error on Windows!
> Use/replace with:
> <=
>> =
> <>
> for full platform comatibilty!
> 
>> Am 25.05.2021 um 19:06 schrieb Roger Guay via use-livecode 
>> :
>> 
>> Hi Paul, I’m not able to duplicate the error here. Can you tell what control 
>> you were adjusting?
>> 
>> You should be able to achieve what you want by changing the ‘backBar” grc 
>> style from roundrect to oval. You might have to play with the code a bit, 
>> but it should work.
>> 
>> Roger
>>> 
>>> Thank you. ScrollbarOmatic looks like I could adjust setting to get 
>>> something closer to a "circle inside an oval" 3-position switch. FYI as I 
>>> was adjusting the controls to get the style I am seeking the following 
>>> error popped up:
>>> 
>>> *compiling at 11:34:54 AM*
>>> 
>>> Type Expression: bad factor
>>> 
>>> Object backBar
>>> 
>>> Line if tx ≥ tIndEndPos then
>>> 
>>> Hint ≥
>>> 
>>> I did not seem to actually impact continue to refine the appearance.
> 
> 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: 3-way slider control

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

You can make your own custom controls in LiveCode.

Perhaps you just want something more like three radio buttons,
or simulate a slider control with buttons and graphics.

Give us an example image to help clarify what you want.

Thanks,

Rick

> On May 25, 2021, at 11:38 AM, Paul Dupuis via use-livecode 
>  wrote:
> 
> Rick and Jacqueline,
> 
> Thank you for the horizontal slider suggestions. This could suffice for what 
> I need. I was imagining more of the common "circle inside an oval" "switch" 
> control you see on the web and in apps these days. However, beggars can't 
> always be choosers and I the slider works well for what I need.
> 
> Roger,
> 
> Thank you. ScrollbarOmatic looks like I could adjust setting to get something 
> closer to a "circle inside an oval" 3-position switch. FYI as I was adjusting 
> the controls to get the style I am seeking the following error popped up:
> 
> *compiling at 11:34:54 AM*
> 
> Type Expression: bad factor
> 
> Object backBar
> 
> Line if tx ≥ tIndEndPos then
> 
> Hint ≥
> 
> I did not seem to actually impact continue to refine the appearance.
> 
> ___
> 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-25 Thread Klaus major-k via use-livecode
Hi freinds,

this - ≥
is a MAC-only character and will throw an error on Windows!
Use/replace with:
<=
>=
<>
for full platform comatibilty!

> Am 25.05.2021 um 19:06 schrieb Roger Guay via use-livecode 
> :
> 
> Hi Paul, I’m not able to duplicate the error here. Can you tell what control 
> you were adjusting?
> 
> You should be able to achieve what you want by changing the ‘backBar” grc 
> style from roundrect to oval. You might have to play with the code a bit, but 
> it should work.
> 
> Roger
>> 
>> Thank you. ScrollbarOmatic looks like I could adjust setting to get 
>> something closer to a "circle inside an oval" 3-position switch. FYI as I 
>> was adjusting the controls to get the style I am seeking the following error 
>> popped up:
>> 
>> *compiling at 11:34:54 AM*
>> 
>> Type Expression: bad factor
>> 
>> Object backBar
>> 
>> Line if tx ≥ tIndEndPos then
>> 
>> Hint ≥
>> 
>> I did not seem to actually impact continue to refine the appearance.

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: Browser Widget Issue

2021-05-25 Thread Keith Clarke via use-livecode
Hi David,
Pass on the framework, but regarding the page…

FWIW from the message box, I was able to set the url of widget ‘Browser’ to 
"https://obs.ninja” (apparently empty...) but then put the htmltext of widget 
“Browser” to see that there is indeed some content. 

So, it’s not scripting itself to hide and there’s some content & potential to 
investigate why it’s rendering as 'white on white'. However, only inline 
styling is available as AFAIK there’s no dev tools nor access to any downloaded 
css files, wherever resources might get cached by the LC browser widget…?

Good luck,
Keith 

> On 25 May 2021, at 17:53, David Bovill via use-livecode 
>  wrote:
> 
> I’m having trouble keeping track of which framework the browser widget uses - 
> on MacOS is it using webkit or Chromium?
> 
> A url I am trying to access is blank - https://obs.ninja  - while it is 
> showing in Safari and Chrome on the desktop - any suggestions?
> ___
> 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-25 Thread Roger Guay via use-livecode
Hi Paul, I’m not able to duplicate the error here. Can you tell what control 
you were adjusting?

You should be able to achieve what you want by changing the ‘backBar” grc style 
from roundrect to oval. You might have to play with the code a bit, but it 
should work.

Roger
> 
> Thank you. ScrollbarOmatic looks like I could adjust setting to get something 
> closer to a "circle inside an oval" 3-position switch. FYI as I was adjusting 
> the controls to get the style I am seeking the following error popped up:
> 
> *compiling at 11:34:54 AM*
> 
> Type Expression: bad factor
> 
> Object backBar
> 
> Line if tx ≥ tIndEndPos then
> 
> Hint ≥
> 
> I did not seem to actually impact continue to refine the appearance.
> 
> ___

___
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


Browser Widget Issue

2021-05-25 Thread David Bovill via use-livecode
I’m having trouble keeping track of which framework the browser widget uses - 
on MacOS is it using webkit or Chromium?

A url I am trying to access is blank - https://obs.ninja  - while it is showing 
in Safari and Chrome on the desktop - any suggestions?
___
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-25 Thread Paul Dupuis via use-livecode

Rick and Jacqueline,

Thank you for the horizontal slider suggestions. This could suffice for 
what I need. I was imagining more of the common "circle inside an oval" 
"switch" control you see on the web and in apps these days. However, 
beggars can't always be choosers and I the slider works well for what I 
need.


Roger,

Thank you. ScrollbarOmatic looks like I could adjust setting to get 
something closer to a "circle inside an oval" 3-position switch. FYI as 
I was adjusting the controls to get the style I am seeking the following 
error popped up:


*compiling at 11:34:54 AM*

Type Expression: bad factor

Object backBar

Line if tx ≥ tIndEndPos then

Hint ≥

I did not seem to actually impact continue to refine the appearance.

___
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