Re: Browser Widget Issue

2021-05-26 Thread David Bovill via use-livecode
Thanks Keith - the issue is with the HTML5 that uses modern webrtc standards 
for video - either the javascript is excluding the type of embedded framework 
Livecode is no using on MacOS - or the framework doesn’t;t yet support those. 
Features - I’d like to check - but not sure what Livecode is using under the 
hood. Would be nice if it were in the dictionary entry.
On 25 May 2021, 18:11 +0100, Keith Clarke via use-livecode 
, wrote:
> 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
___
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-26 Thread Paul Dupuis via use-livecode

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

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.




I created a slider with a label on the left and right in a group. The 
slider is set to min 0, max 2, inc 1 and it's script is:


on scrollbarDrag pNewPosition
  switch pNewPosition
    case 0
  enable fld "CiC_Label"
  disable fld "Src_Label"
  set the tooltip of me to "Text style changes will be applied to 
CiC only"

  set the thumbPosition of me to 0
  break
    case 1
  enable fld "CiC_Label"
  enable fld "Src_Label"
  set the tooltip of me to "Text style changes will be applied to 
both CiC and Source"

  set the thumbPosition of me to 1
  break
    case 2
  disable fld "CiC_Label"
  enable fld "Src_Label"
  set the tooltip of me to "Text style changes will be applied to 
Source only"

  set the thumbPosition of me to 2
  break
  end switch
end scrollbarDrag

The set the thumbPosition forces any attempt at sliding to move to only 
left, center, and right positions. When left, the left label is enabled, 
the right label is disabled, and the tooltip for the slider reflects the 
choice. When right, the right label is enabled, left label disabled and 
the tooltip updated. When center, both labels are enabled and the tool 
tip updated.


___
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-26 Thread Rick Harrison via use-livecode
I thought of this before I saw Paul’s solution:

Name the scrollbar:  ScrollbarThreeStateButtonValue

on mouseUp

put the thumbposition of me into ScrollbarThreeStateButtonValue

put the round of ScrollbarThreeStateButtonValue into 
VarScrollbarThreeStateButton2

set the thumbposition of me to VarScrollbarThreeStateButton2

end mouseUp



> On May 25, 2021, at 9:08 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
>> 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

___
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-26 Thread Curry Kenworthy via use-livecode



Paul:

> I created a slider with a label on the left and right in a group.
> The slider is set to min 0, max 2, inc 1 and it's script is:
> on scrollbarDrag pNewPosition
> [...]

I like this UI approach! Your script could be shorter.
A 4-liner or 5-liner would be ideal; just eliminate the switch.
(The current code is essentially repeating the same commands 3 times.)

Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
http://livecodeconsulting.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-26 Thread Paul Dupuis via use-livecode

On 5/26/2021 12:16 PM, Curry Kenworthy via use-livecode wrote:


Paul:

> I created a slider with a label on the left and right in a group.
> The slider is set to min 0, max 2, inc 1 and it's script is:
> on scrollbarDrag pNewPosition
> [...]

I like this UI approach! Your script could be shorter.
A 4-liner or 5-liner would be ideal; just eliminate the switch.
(The current code is essentially repeating the same commands 3 times.)



What, like this:

on scrollbarDrag pNewPosition
  local tToolTip = "CiC only,both CiC and Source,Source only"
  set the thumbPosition of me to pNewPosition
  set the tooltip of me to "Text style changes will be applied 
to"&&(item pNewPosition+1 of tToolTip)
  if pNewPosition=0 or pNewPosition=1 then enable fld "CiC_Label" else 
disable fld "CiC_Label"
  if pNewPosition=1 or pNewPosition=2 then enable fld "Src_Label" else 
disable fld "Src_Label"

end scrollbarDrag

___
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-26 Thread Alex Tweedly via use-livecode

I'd prefer it like ...

On 26/05/2021 18:28, Paul Dupuis via use-livecode wrote:

What, like this:

on scrollbarDrag pNewPosition
  local tToolTip = "CiC only,both CiC and Source,Source only"
  set the thumbPosition of me to pNewPosition
  set the tooltip of me to "Text style changes will be applied 
to"&&(item pNewPosition+1 of tToolTip) 
    set the enabled of fld "CiC_Label" to (pNewPosition=0 or 
pNewPosition=1)
    set the enabled of fld "Src_Label" to (pNewPosition=1 or 
pNewPosition=2)

end scrollbarDrag

or, of course,

   set the enabled of fld "CiC_Label" to (pNewPosition <= 1)
   set the enabled of fld "Src_Label" to (pNewPosition >= 1)

All a matter of personal preference :-)

Alex.


___
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-26 Thread Jim Lambert via use-livecode
go url "http://netrin.on-rev.com/misc/three_state_toggle.livecode";

This stack contains a group which is a three-state toggle switch.

The myState of the group contains its current state which is either "ON","OFF" 
or "MID"

You can customize the states' colors by setting the color constants.

See the group script.

To use: Either drag the thumb OR Tap at the left, right or center of the 
control.

Feel free to use, change, copy, whatever.
Jim Lambert
___
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


After 2 years still no Server notes in the zip

2021-05-26 Thread JeeJeeStudio via use-livecode

Hi,

why are there still no Server notes in the Server zip file on the 
downloads page.


It only contains the release notes, which do not contain instructions on 
how to install.


You can't expect new users to search into version 6 to find the release 
notes (which I have by the way)


The notes needs also updating to which conf file needs editing, it has 
changed for a while it's not httpd.conf anymore.


Yes you can search the forum, but that's not user friendly.

How can one expect new users to start using the LC server to give it 
more fuel, when there are no instructions included?


I Updated the bug report from 2 !! years ago: 
https://quality.livecode.com/show_bug.cgi?id=22405


An awesome server needs more attention.


___
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-26 Thread Paul Dupuis via use-livecode

:-)

On 5/26/2021 3:36 PM, Alex Tweedly via use-livecode wrote:

I'd prefer it like ...

On 26/05/2021 18:28, Paul Dupuis via use-livecode wrote:

What, like this:

on scrollbarDrag pNewPosition
  local tToolTip = "CiC only,both CiC and Source,Source only"
  set the thumbPosition of me to pNewPosition
  set the tooltip of me to "Text style changes will be applied 
to"&&(item pNewPosition+1 of tToolTip) 
    set the enabled of fld "CiC_Label" to (pNewPosition=0 or 
pNewPosition=1)
    set the enabled of fld "Src_Label" to (pNewPosition=1 or 
pNewPosition=2)

end scrollbarDrag

or, of course,

   set the enabled of fld "CiC_Label" to (pNewPosition <= 1)
   set the enabled of fld "Src_Label" to (pNewPosition >= 1)

All a matter of personal preference :-)

Alex.


___
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-26 Thread Rick Harrison via use-livecode
Cool custom 3 state toggle switch!

A little more work, and code but truly a worth-while result.

That will make Paul happy for sure!

Thanks!

Rick


> On May 26, 2021, at 3:41 PM, Jim Lambert via use-livecode 
>  wrote:
> 
> go url "http://netrin.on-rev.com/misc/three_state_toggle.livecode";
> 
> This stack contains a group which is a three-state toggle switch.
> 
> The myState of the group contains its current state which is either 
> "ON","OFF" or "MID"
> 
> You can customize the states' colors by setting the color constants.
> 
> See the group script.
> 
> To use: Either drag the thumb OR Tap at the left, right or center of the 
> control.
> 
> Feel free to use, change, copy, whatever.
> Jim Lambert
> ___
> 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-26 Thread Paul Dupuis via use-livecode

Thank you.

On 5/26/2021 3:41 PM, Jim Lambert via use-livecode wrote:

go url "http://netrin.on-rev.com/misc/three_state_toggle.livecode";

This stack contains a group which is a three-state toggle switch.

The myState of the group contains its current state which is either "ON","OFF" or 
"MID"

You can customize the states' colors by setting the color constants.

See the group script.

To use: Either drag the thumb OR Tap at the left, right or center of the 
control.

Feel free to use, change, copy, whatever.
Jim Lambert
___
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: Browser Widget Issue

2021-05-26 Thread Andrew at MidWest Coast Media via use-livecode
This lesson hints at the fact that Chromium (CEF) is the default for all 
platforms except Mac that uses WebKit
https://lessons.livecode.com/m/2592/l/278115-create-a-browser-instance-within-your-app
 


-Andrew Bell

> 
> Date: Wed, 26 May 2021 11:29:04 +0100
> From: David Bovill 
> Subject: Re: Browser Widget Issue
> 
> Thanks Keith - the issue is with the HTML5 that uses modern webrtc standards 
> for video - either the javascript is excluding the type of embedded framework 
> Livecode is no using on MacOS - or the framework doesn?t;t yet support those. 
> Features - I?d like to check - but not sure what Livecode is using under the 
> hood. Would be nice if it were in the dictionary entry.
> On 25 May 2021, 18:11 +0100, Keith Clarke via use-livecode 
> , wrote:
>> 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


Re: 3-way slider control

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

On 5/26/21 2:41 PM, Jim Lambert via use-livecode wrote:

go url "http://netrin.on-rev.com/misc/three_state_toggle.livecode";

This stack contains a group which is a three-state toggle switch.

The myState of the group contains its current state which is either "ON","OFF" or 
"MID"

You can customize the states' colors by setting the color constants.

See the group script.

To use: Either drag the thumb OR Tap at the left, right or center of the 
control.


That is perfectly lovely! Thank you.

--
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-26 Thread Sean Cole (Pi) via use-livecode
I made a multiway one

https://forums.livecode.com/viewtopic.php?f=7&t=35903&p=205657

On Wed, 26 May 2021 at 20:45, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> :-)
>
> On 5/26/2021 3:36 PM, Alex Tweedly via use-livecode wrote:
> > I'd prefer it like ...
> >
> > On 26/05/2021 18:28, Paul Dupuis via use-livecode wrote:
> >> What, like this:
> >>
> >> on scrollbarDrag pNewPosition
> >>   local tToolTip = "CiC only,both CiC and Source,Source only"
> >>   set the thumbPosition of me to pNewPosition
> >>   set the tooltip of me to "Text style changes will be applied
> >> to"&&(item pNewPosition+1 of tToolTip)
> > set the enabled of fld "CiC_Label" to (pNewPosition=0 or
> > pNewPosition=1)
> > set the enabled of fld "Src_Label" to (pNewPosition=1 or
> > pNewPosition=2)
> > end scrollbarDrag
> >
> > or, of course,
> >
> >set the enabled of fld "CiC_Label" to (pNewPosition <= 1)
> >set the enabled of fld "Src_Label" to (pNewPosition >= 1)
> >
> > All a matter of personal preference :-)
> >
> > Alex.
> >
> >
> > ___
> > 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