mouseWithin and mouseLeave problem

Richmond Mathewson richmondmathewson at gmail.com
Fri Nov 17 17:26:08 EST 2017



On 18/11/17 12:05 am, Kaveh Bazargan via use-livecode wrote:
> Hi Bob
>
> Guess what. MouseRelease works if you click either side of the
> thumbposition, but not if you click the thumb itself. Looking for another
> handler for that.

Not all that surprising given this from the documentation:

"Sent when the user releases the mouse *outside* the control that was 
clicked." (my bold)

How one differentiates between *mouseUp* outside and *inwith* the 
clicked control is the question here.

ALSO: as the scrollBar is NOT a control in its own right rather than 
part of a field one cannot
address message just to the scrollBar . . .

Of course, if a *scrollable text field* were to be a *composite object* 
(c.f. datagrid)
whereby the scrollBar were an entity inwith a *group*
that also contained a field, things would be different.

The OTHER Q that comes up here is why, when I try to set up a composite 
object
LC 8.1.7 will not let me set the orientation of a *scrollBar* to vertical?

No go via the props inspector, & typing this:

set the orientation of scrollBar "sBAR"  in the Message Box

give no joy.

Richmond.

>
> Could there be a more elegant solution? Something like a property  or
> behavior that resets a scrollbar to its normal size if it is not a focus?
>
> On 15 November 2017 at 18:46, Kaveh Bazargan <
> kaveh at rivervalleytechnologies.com> wrote:
>
>> Thanks bob. I replied to your first response. Mouserelease sounds good. I
>> didn't know if it and will try later.
>>
>> On Wed, 15 Nov 2017 at 17:53, Kaveh Bazargan <kaveh@
>> rivervalleytechnologies.com> wrote:
>>
>>> No :-(
>>>
>>> On 15 November 2017 at 17:48, Bob Sneidar via use-livecode <
>>> use-livecode at lists.runrev.com> wrote:
>>>
>>>> Does mouseUp get sent to the control when you release the thumb pointer?
>>>>
>>>> Bob S
>>>>
>>>>
>>>>> On Nov 15, 2017, at 09:36 , Kaveh Bazargan via use-livecode <
>>>> use-livecode at lists.runrev.com> wrote:
>>>>> I have a set of scrollbars that are normally small, to preserve screen
>>>>> space. But I want them to expand when mouse enters, so give finer
>>>> control,
>>>>> then to shrink again when mouse leaves. I have managed to do this with
>>>>> mouseEnter and mouseLeave.
>>>>>
>>>>> Problem is that if I drag the thumb pointer with mouse down, by the
>>>> time I
>>>>> release the mouse it is still down and outside the bounds of the target
>>>>> scrollbar, so no mouseLeave is sent.
>>>>>
>>>>> I could use "on idle" to test if the mouse is within, but that would
>>>> not be
>>>>> efficient.
>>>>>
>>>>> Suggestion please?
>>>>>
>>>>> Regards
>>>>> Kaveh
>>>>>
>>>>> --
>>>>> Kaveh Bazargan
>>>>
>>>> _______________________________________________
>>>> use-livecode mailing list
>>>> use-livecode at lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your
>>>> subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>>
>>>
>>>
>>> --
>>> Kaveh Bazargan
>>> Director
>>> River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
>>> <https://twitter.com/kaveh1000> • LinkedIn
>>> <https://www.linkedin.com/in/bazargankaveh/>
>>> Phone +44 7771 824 111 <07771%20824111>
>>>
>> --
>> Sent from MetroMail
>>
>
>




More information about the use-livecode mailing list