Re: Segmented Control Widget

2020-11-09 Thread Terence Heaford via use-livecode
I will give this a try.

It’s a shame that widgets always seem to be incomplete in one way or another.

Thanks for your help.

All the best

Terry



> On 9 Nov 2020, at 16:52, Bob Sneidar via use-livecode 
>  wrote:
> 
> In my custom tabbed object group, I had to put transparent buttons over the 
> tabs

___
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: Segmented Control Widget

2020-11-09 Thread Bob Sneidar via use-livecode
I believe so. In my custom tabbed object group, I had to put transparent 
buttons over the tabs, then have a way to size and rearrange the buttons to 
match the size of the tabs, just so I could get it to respond to mouse messages 
and drag/drop operations. It's so ugly it's cute. Like a shar-pei. 

Bob S


> On Nov 7, 2020, at 24:39 , Terence Heaford via use-livecode 
>  wrote:
> 
> 
> 
>> On 5 Nov 2020, at 20:10, J. Landman Gay via use-livecode 
>>  wrote:
>> 
>> I've done this with a custom control group, it should work with a widget 
>> too. Calculate the rectangles (or at least the left and right edges) of each 
>> segment and in a mouseEnter handler compare the mouseLoc to the rectangles 
>> to see which one it's in. Then set the tooltip to the appropriate string. 
>> You can also add a mouseMove handler to do the same thing if you want to 
>> change tooltips as the mouseLoc changes inside the widget.
> 
> 
> I placed the segmented control widget in a group and put a simple
> 
> on mouseEnter
> beep
> end mouseEnter
> 
> in the script of the group.
> 
> This did not implement a beep sound.
> I placed the same script in the segmented control and that did not make a 
> beep either.
> 
> 
> I read the dictionary for mouseEnter and it does not apply to a group, I 
> assume it also does not apply to the segmented control widget.
> 
> 
> I then created three standard buttons and placed those in a group.
> Placed the above script in the group.
> and each time the mouse entered a button it beeped. It did not beep upon 
> entering the group.
> 
> Is all this the correct behaviour?
> 
> If it is then it is not possible to create your own tooltip for a segmented 
> control widget unless there is some more fiddling that can be done.
> 
> It seems creating your own segmented control may be the only solution.
> 
> Any ideas
> 
> Thanks
> 
> Terry
> 
> 
> 
> ___
> 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: Segmented Control Widget

2020-11-07 Thread Terence Heaford via use-livecode



> On 5 Nov 2020, at 20:10, J. Landman Gay via use-livecode 
>  wrote:
> 
> I've done this with a custom control group, it should work with a widget too. 
> Calculate the rectangles (or at least the left and right edges) of each 
> segment and in a mouseEnter handler compare the mouseLoc to the rectangles to 
> see which one it's in. Then set the tooltip to the appropriate string. You 
> can also add a mouseMove handler to do the same thing if you want to change 
> tooltips as the mouseLoc changes inside the widget.


I placed the segmented control widget in a group and put a simple

on mouseEnter
beep
end mouseEnter

in the script of the group.

This did not implement a beep sound.
I placed the same script in the segmented control and that did not make a beep 
either.


I read the dictionary for mouseEnter and it does not apply to a group, I assume 
it also does not apply to the segmented control widget.


I then created three standard buttons and placed those in a group.
Placed the above script in the group.
and each time the mouse entered a button it beeped. It did not beep upon 
entering the group.

Is all this the correct behaviour?

If it is then it is not possible to create your own tooltip for a segmented 
control widget unless there is some more fiddling that can be done.

It seems creating your own segmented control may be the only solution.

Any ideas

Thanks

Terry



___
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: Segmented Control Widget

2020-11-06 Thread Terence Heaford via use-livecode
I can see the advantages of doing it yourself and intend trying both methods as 
suggested by yourself and Jaqueline.

I have noted when trying some of the widgets that they do seem to be rather 
incomplete.

All the best

Terry


> On 5 Nov 2020, at 22:43, Bob Sneidar via use-livecode 
>  wrote:
> 
> The segmented control is fairly limited. Most of the widgets are. The 
> properties you see are the properties you get. I did however, with a bit of 
> clever scripting, develop a tabbed object group that works as well or better 
> that the built in tabbed button. And for a bonus, it looks in Windows the 
> same as it loos on the Mac. Really, the Windows UI is really horrible for LC. 
> I just gotta say. It puts the Ugh in Ughly. 
> 
> Bob S
> 
> 
>> On Nov 5, 2020, at 12:10 PM, J. Landman Gay via use-livecode 
>>  wrote:
>> 
>> On 11/5/20 1:47 AM, Terence Heaford via use-livecode wrote:
>>> I have been messing about with the Segmented Control Widget and have been 
>>> trying to apply a tooltip.
>>> I noted that the tooltip can only be applied to the whole control, it does 
>>> not appear possible to have a tooltip for each segment.
>>> Is this possible and if so could someone please advise.
>> 
>> I've done this with a custom control group, it should work with a widget 
>> too. Calculate the rectangles (or at least the left and right edges) of each 
>> segment and in a mouseEnter handler compare the mouseLoc to the rectangles 
>> to see which one it's in. Then set the tooltip to the appropriate string. 
>> You can also add a mouseMove handler to do the same thing if you want to 
>> change tooltips as the mouseLoc changes inside the widget.
>> 
>> If the updated tooltip doesn't display reliably, set the tooltip to empty, 
>> wait a millisecond or so, and then set it to the new string.
>> 
>> -- 
>> 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


___
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: Segmented Control Widget

2020-11-06 Thread Terence Heaford via use-livecode
Thanks for your suggestion will give it a try.

All the best

Terry

> On 5 Nov 2020, at 20:10, J. Landman Gay via use-livecode 
>  wrote:
> 
> On 11/5/20 1:47 AM, Terence Heaford via use-livecode wrote:
>> I have been messing about with the Segmented Control Widget and have been 
>> trying to apply a tooltip.
>> I noted that the tooltip can only be applied to the whole control, it does 
>> not appear possible to have a tooltip for each segment.
>> Is this possible and if so could someone please advise.
> 
> I've done this with a custom control group, it should work with a widget too. 
> Calculate the rectangles (or at least the left and right edges) of each 
> segment and in a mouseEnter handler compare the mouseLoc to the rectangles to 
> see which one it's in. Then set the tooltip to the appropriate string. You 
> can also add a mouseMove handler to do the same thing if you want to change 
> tooltips as the mouseLoc changes inside the widget.
> 
> If the updated tooltip doesn't display reliably, set the tooltip to empty, 
> wait a millisecond or so, and then set it to the new string.
> 
> -- 
> 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: Segmented Control Widget

2020-11-05 Thread Bob Sneidar via use-livecode
The segmented control is fairly limited. Most of the widgets are. The 
properties you see are the properties you get. I did however, with a bit of 
clever scripting, develop a tabbed object group that works as well or better 
that the built in tabbed button. And for a bonus, it looks in Windows the same 
as it loos on the Mac. Really, the Windows UI is really horrible for LC. I just 
gotta say. It puts the Ugh in Ughly. 

Bob S


> On Nov 5, 2020, at 12:10 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> On 11/5/20 1:47 AM, Terence Heaford via use-livecode wrote:
>> I have been messing about with the Segmented Control Widget and have been 
>> trying to apply a tooltip.
>> I noted that the tooltip can only be applied to the whole control, it does 
>> not appear possible to have a tooltip for each segment.
>> Is this possible and if so could someone please advise.
> 
> I've done this with a custom control group, it should work with a widget too. 
> Calculate the rectangles (or at least the left and right edges) of each 
> segment and in a mouseEnter handler compare the mouseLoc to the rectangles to 
> see which one it's in. Then set the tooltip to the appropriate string. You 
> can also add a mouseMove handler to do the same thing if you want to change 
> tooltips as the mouseLoc changes inside the widget.
> 
> If the updated tooltip doesn't display reliably, set the tooltip to empty, 
> wait a millisecond or so, and then set it to the new string.
> 
> -- 
> 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: Segmented Control Widget

2020-11-05 Thread J. Landman Gay via use-livecode

On 11/5/20 1:47 AM, Terence Heaford via use-livecode wrote:

I have been messing about with the Segmented Control Widget and have been 
trying to apply a tooltip.

I noted that the tooltip can only be applied to the whole control, it does not 
appear possible to have a tooltip for each segment.

Is this possible and if so could someone please advise.


I've done this with a custom control group, it should work with a widget too. Calculate the 
rectangles (or at least the left and right edges) of each segment and in a mouseEnter handler 
compare the mouseLoc to the rectangles to see which one it's in. Then set the tooltip to the 
appropriate string. You can also add a mouseMove handler to do the same thing if you want to 
change tooltips as the mouseLoc changes inside the widget.


If the updated tooltip doesn't display reliably, set the tooltip to empty, wait a millisecond 
or so, and then set it to the new string.


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


Segmented Control Widget

2020-11-04 Thread Terence Heaford via use-livecode
I have been messing about with the Segmented Control Widget and have been 
trying to apply a tooltip.

I noted that the tooltip can only be applied to the whole control, it does not 
appear possible to have a tooltip for each segment.

Is this possible and if so could someone please advise.


All the best


Terry
___
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: Problems with segmented control widget

2019-08-30 Thread Ben Rubinstein via use-livecode
I forgot to mention that both these issues can be worked around - but 
surprisingly, the second is easier than the first.


Using "wait 0 seconds with messages" after changing the hilitedItems allows 
the hiliteChanged message to be processed immediately; but even then testing 
the lockMessages is unhelpful - it's always false (presumably because it's in 
a different thread? Although I thought that lockMessages was a global property?)


So the complete solution is to have a global set to mirror lockMessages, and 
wait with messages whenever the state is changed by script.


Anyway, my real question is: is it just a bug, fixable in the widget 
definiton, that messages emitted by some widgets (at least Navbar is the same) 
are not handled in the same way as native controls? Or is this a fundamental 
limitation of LCB?


Ben

On 30/08/2019 09:30, Ben Rubinstein via use-livecode wrote:
I've been using this widget and found some issues. Before I report the bug(s) 
I want to check if I'm missing some knowledge or understanding.


At various times I need to change the hilitedItems on the control by script; 
at other times I need to react when the user does so. For the latter case I 
respond to the "hiliteChanged" message.


The problem came when I change the hilitedItems by script: it triggered 
hiliteChanged causing all sorts of hilarity. I had trouble tracking it down 
because when I stepped through the code I couldn't see any point when the 
problems occurred. Setting lockMessages didn't help.  And even when I checked 
the lockMessages in my hiliteChanged handler, the aberrant behaviour continued..


After further investigation, the upshot is that there are two issues:

- the widget pays no attention to the lockMessages in deciding to post 
"hiliteChanged"


- although it redraws immediately in response to a change in hilitedItems, the 
hiliteChanged message (or potentially multiple messages stacked up) is not 
sent until idle time.


(The latter issue explains my problem with spotting where the issue was 
occurring, and also why checking the lockMessages in my hiliteChanged handler 
didn't help - because by the time the handler was invoked, the lockMessages 
*was* false.)


The first issue is presumably straightforward to address.

Is there some fundamental property of widgets that make it impossible to fix 
the second issue?


TIA,

Ben

___
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


Problems with segmented control widget

2019-08-30 Thread Ben Rubinstein via use-livecode
I've been using this widget and found some issues. Before I report the bug(s) 
I want to check if I'm missing some knowledge or understanding.


At various times I need to change the hilitedItems on the control by script; 
at other times I need to react when the user does so. For the latter case I 
respond to the "hiliteChanged" message.


The problem came when I change the hilitedItems by script: it triggered 
hiliteChanged causing all sorts of hilarity. I had trouble tracking it down 
because when I stepped through the code I couldn't see any point when the 
problems occurred. Setting lockMessages didn't help.  And even when I checked 
the lockMessages in my hiliteChanged handler, the aberrant behaviour continued..


After further investigation, the upshot is that there are two issues:

- the widget pays no attention to the lockMessages in deciding to post 
"hiliteChanged"


- although it redraws immediately in response to a change in hilitedItems, the 
hiliteChanged message (or potentially multiple messages stacked up) is not 
sent until idle time.


(The latter issue explains my problem with spotting where the issue was 
occurring, and also why checking the lockMessages in my hiliteChanged handler 
didn't help - because by the time the handler was invoked, the lockMessages 
*was* false.)


The first issue is presumably straightforward to address.

Is there some fundamental property of widgets that make it impossible to fix 
the second issue?


TIA,

Ben

___
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: Segmented Control widget mouseDown

2018-05-02 Thread Richmond Mathewson via use-livecode
I was fiddling around with this at the weekend trying to work out how it 
worked,

and was surprised by the lack of mouseDown/Up as well.

Richmond.

On 2/5/2018 8:16 am, Andrew Bell via use-livecode wrote:

(apologies, this was initially sent to the wrong email)

Is there any way to capture mouseDown/Up on a Segmented Control 
widget? hiliteChanged is the only message that is documented or shows 
up in the Script Editor and standard mouseDown/Up handlers aren't 
acknowledged. Am I missing something or does this need to be enabled 
first in LCB and then passed to LC?


I tried putting a mouseDown/Up on the widget and it doesn't trigger. I 
tried putting the widget in a group by itself (a trick I learned so I 
could put Effects on widgets) and applying the mouseDown/Up script to 
the group and it doesn't trigger. I add another object to that group 
and when I click on that other object the group script finally 
triggers, but not when clicking on the widget.


My problem is that I can't find a way to determine if the item of the 
Segmented Control that was clicked was already the current 
hilitedItem. I know I can toggle the hilite, but I just want to know 
if the current "active" item has been clicked again.


My goal is to replace 3 buttons that I use to sort a dataGrid by 3 
different filters. Currently I have the buttons scripted to act like a 
group of radio buttons (but they are standard buttons for easier 
skinning) and realize if they are the "active" button and toggle 
sorting by descending/ascending for that filter (the iconPresetName of 
a SVG widget is also toggled at this time to indicate the sort 
direction).


--Andrew Bell


___
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: Segmented Control widget mouseDown

2018-05-01 Thread prothero--- via use-livecode
I had the same experience as Andrew. I would love to see a mousedown and 
mouseup message sent to this widget. 

Bill

William Prothero
http://earthlearningsolutions.org

> On May 1, 2018, at 10:16 PM, Andrew Bell via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> (apologies, this was initially sent to the wrong email)
> 
> Is there any way to capture mouseDown/Up on a Segmented Control widget? 
> hiliteChanged is the only message that is documented or shows up in the 
> Script Editor and standard mouseDown/Up handlers aren't acknowledged. Am I 
> missing something or does this need to be enabled first in LCB and then 
> passed to LC?
> 
> I tried putting a mouseDown/Up on the widget and it doesn't trigger. I tried 
> putting the widget in a group by itself (a trick I learned so I could put 
> Effects on widgets) and applying the mouseDown/Up script to the group and it 
> doesn't trigger. I add another object to that group and when I click on that 
> other object the group script finally triggers, but not when clicking on the 
> widget.
> 
> My problem is that I can't find a way to determine if the item of the 
> Segmented Control that was clicked was already the current hilitedItem. I 
> know I can toggle the hilite, but I just want to know if the current "active" 
> item has been clicked again.
> 
> My goal is to replace 3 buttons that I use to sort a dataGrid by 3 different 
> filters. Currently I have the buttons scripted to act like a group of radio 
> buttons (but they are standard buttons for easier skinning) and realize if 
> they are the "active" button and toggle sorting by descending/ascending for 
> that filter (the iconPresetName of a SVG widget is also toggled at this time 
> to indicate the sort direction).
> 
> --Andrew Bell
> 
> 
> ___
> 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


Segmented Control widget mouseDown

2018-05-01 Thread Andrew Bell via use-livecode

(apologies, this was initially sent to the wrong email)

Is there any way to capture mouseDown/Up on a Segmented Control  
widget? hiliteChanged is the only message that is documented or shows  
up in the Script Editor and standard mouseDown/Up handlers aren't  
acknowledged. Am I missing something or does this need to be enabled  
first in LCB and then passed to LC?


I tried putting a mouseDown/Up on the widget and it doesn't trigger. I  
tried putting the widget in a group by itself (a trick I learned so I  
could put Effects on widgets) and applying the mouseDown/Up script to  
the group and it doesn't trigger. I add another object to that group  
and when I click on that other object the group script finally  
triggers, but not when clicking on the widget.


My problem is that I can't find a way to determine if the item of the  
Segmented Control that was clicked was already the current  
hilitedItem. I know I can toggle the hilite, but I just want to know  
if the current "active" item has been clicked again.


My goal is to replace 3 buttons that I use to sort a dataGrid by 3  
different filters. Currently I have the buttons scripted to act like a  
group of radio buttons (but they are standard buttons for easier  
skinning) and realize if they are the "active" button and toggle  
sorting by descending/ascending for that filter (the iconPresetName of  
a SVG widget is also toggled at this time to indicate the sort  
direction).


--Andrew Bell


___
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: Detecting clicks in Segmented Control widget

2017-01-25 Thread hlowe via use-livecode
Thank you for the detailed reply. I will take a look at this possible
solution.

Henry



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Detecting-clicks-in-Segmented-Control-widget-tp4711930p4711943.html
Sent from the Revolution - User mailing list archive at Nabble.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: Detecting clicks in Segmented Control widget

2017-01-25 Thread Mike Bonner via use-livecode
If you don't mind the message on re-click being another "hiliteChanged"
message, you can tweak it on your own.

If you're on windows, go to your x86 programs folder/runrev/ then the
version you're using. Guessing 8.1.1.  Then extensions
Copy the segmented control folder out to where you can work on it safely
(and I renamed it to com.livecode.widget.segmented2)
Then with a text editor, edit the lcb file inside.

Change the metadata for the title to segmented control2 (or whatever)
Change the version (start at 1.0.0?)

Then find the onClick handler and make it look like this:

public handler OnClick() returns nothing

variable tLabel as String
variable tSegment
variable tCount as Integer

variable tX as Integer
put clickPosToComponent(the click position) into tX

if tX is 0 then
return
end if

if mMultiSelect is false then
-- if cannot multiselect, then need to select the clicked-on segment and
deselect the currently selected segment
-- if the clicked-on segment is already selected, then do nothing
* if not (tX is in mSelectedSegments) then*
* setSelection([tX])*
* else*
* post "hiliteChanged" -- if the segment was already hilited, send a
hilitechanged anyway*
* end if*
else
-- if can multiselect, then select the clicked-on segment if it is
unselected or unselect if its selected
  if tX is in mSelectedSegments then
removeFromSelection(tX)
else
addToSelection(tX)
end if
end if
end handler

If you have it set for multi hilites, it should toggle segments on and off
as expected and you should see a hiliteChanged in those instances still.

I can get the version in 9 dp2 to pop out a mouseup but haven't been able
to do so in 8 versions so this is my best answer. (despite it not being the
best way i'm sure)

once the file is changed, save it.  Start up LC.

Go to tools and choose extension bulder.

Click the folder icon near the top, and browse to where the modified lcb
file is located and choose it.

At this point you can click test and it should pop up a stack with the
control already placed. Or click "install" and a second segmented control
should show up in your toolbar.

Drag it out and set up the hilite changed handler so that you know its
firing (like maybe have it output a random number so you can see it change)
  Then click the same segment and see if it works as expected.

Since I'm still clueless about lcb, you might have to do some hoop jumping
to track if it IS actually the same segment each time, but you can track
the hiliteditems and hilitednames of the control so it should be easy to
do.

If things don't work as expected, you can go to the extension manager and
uninstall your new control.

Also, I'd recommend against trying to edit the current one in place.
Various things went missing on me when I tried that (including the whole
folder for that extension!) and i've no clue where they went. (Learning is
FUN!)

On Wed, Jan 25, 2017 at 11:13 AM, hlowe via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I am switching over from a home-grown segmented control to LC's Segmented
> Control widget. This widget receives a "hiliteChanged" message when the
> selected segment changes but (apparently) no message is received by the
> widget if the user clicks in the currently selected segment. I need to
> respond to the user clicking in the currently selected segment of the
> widget. Anyone know if it is possible to detect this event in the Segmented
> Control widget? The widget does not appear to receive MouseUp or MouseDown
> messages when clicked.
>
> Thanks,
>
> Henry
>
>
>
> --
> View this message in context: http://runtime-revolution.
> 278305.n4.nabble.com/Detecting-clicks-in-Segmented-
> Control-widget-tp4711930.html
> Sent from the Revolution - User mailing list archive at Nabble.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


Detecting clicks in Segmented Control widget

2017-01-25 Thread hlowe via use-livecode
I am switching over from a home-grown segmented control to LC's Segmented
Control widget. This widget receives a "hiliteChanged" message when the
selected segment changes but (apparently) no message is received by the
widget if the user clicks in the currently selected segment. I need to
respond to the user clicking in the currently selected segment of the
widget. Anyone know if it is possible to detect this event in the Segmented
Control widget? The widget does not appear to receive MouseUp or MouseDown
messages when clicked.

Thanks,

Henry



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Detecting-clicks-in-Segmented-Control-widget-tp4711930.html
Sent from the Revolution - User mailing list archive at Nabble.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: Vertical segmented control widget

2016-12-07 Thread Mike Kerner
I'm not sure if this has been done as a widget, but you can certainly
accomplish this with a couple of buttons grouped together and a bit of
script.

On Wed, Dec 7, 2016 at 12:13 PM, rjd318  wrote:

>
> Hi - I thought I read here once how this is accomplished but can't seem to
> find it. Is this possible to do?
> ___
> 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


Vertical segmented control widget

2016-12-07 Thread rjd318

Hi - I thought I read here once how this is accomplished but can't seem to find 
it. Is this possible to do?
___
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