[futurebasic] Re: [FB] Live Slider update problem in OSX

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 2004 : Group Archive : Group : All Groups

From: Walter Lenk <Walter_Lenk@...>
Date: Fri, 12 Mar 2004 15:09:55 -0500
Robert -

You replied:
>  The symptoms I see are not precisely as you describe.
>  1. Dragging the thumb button works correctly
>  2. Clicking the narrow horizontal bar works correctly
>  3. Clicking elsewhere in the control's Rect gives a draggable ghost
>  image. This is not supposed to happen for a control with live feedback.

Thanks for looking into this. I applied your suggested fix to 'FN 
ClickOnActiveControl' in 'Rntm Appearance.Incl', and it indeed did 
fix condition #3 (which I had not previously noticed).  Since 
condition #1 still gives a draggable ghost on my machine (FB^3 R7 on 
a 17" iMac with OSX 10.3.2), I dug into 'FN ClickOnActiveControl' and 
found these lines:

   // here I have tried to discover supportsLive, probably wrongly   RP
   supportsLive = fn HasControlFeature( c, _kControlSupportsLiveFeedback )

I replaced the second line with:

   supportslive = _zTrue

Condition #1 now acts as I would expect, although I realize that this 
is not a proper fix.  I suspect, as you speculated in your notes, 
that 'FN HasControlFeature()' is not returning the proper answer in 
my particular environment.

I looked at 'FN HasControlFeature()':

// masked boolean result of SendControlMessage
local
local fn HasControlFeature( c as ControlRef, resultMask as long )
end fn = ( (fn SendControlMessage( c, _kControlMsgGetFeatures, 0 ) 
and resultMask) != 0 )

According to the docs for FN SendControlMessage() on the Apple site 
at 
<http://developer.apple.com/documentation/Carbon/Reference/Control_Manager/controlman_ref/function_group_11.html#//apple_ref/c/func/SendControlMessage>, 
this seems like it would work. Since FN SendControlMessage() is what 
Apple calls a 'Deprecated Function', is it possible that they are 
using an older version of '_kControlMsgGetFeatures' constant in the 
call?  Just a wild idea.

Thanks again for your help,

Walter Lenk

-- 
===========================================
Walter Lenk    Cambridge Ma    617-547-7781
===========================================