Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Chasing Arrows Control
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Chasing Arrows Control



On 11/22/05 11:29 AM, pour mes listes didst favor us with:

> Following your advice I checked the ControlRef validity and the
> control visibility : everything is OK.
>
> Then I tried DumpControlHierachy which gives the following output :
>
> Dumping info for window 0x5417D20
> Window found. Dumping views...
> Control 0x3a4b10 <appl/cnvw> ( "" ), ID 'wind'/1, tlbr
> (22,0,346,480), Embedder, Vis, Act, Ena, Comp (Hil=0x0),
> DrawingEnabled, 1 inval subs
> Control 0x3b34c0 <appl/carr> ( "" ), ID 'CRAg'/102, tlbr
> (286,330,302,346), Vis, Act, Ena, Comp (Hil=0x0), DrawingEnabled
> Control 0x3d09a0 <appl/push> ( "Terminer" ), ID ''/0, tlbr
> (284,20,304,106), Vis, Act, Ena, Comp (Hil=0x0), DrawingEnabled
> Control 0x3fc570 <appl/push> ( "Appliquer" ), ID 'CRAg'/100,
> tlbr (284,363,304,460), Vis, Act, Ena, Comp (Hil=0x0),
> DrawingEnabled, Inval
> Control 0x3f4a60 <appl/tabs> ( "" ), ID 'CRAg'/128, tlbr
> (5,20,264,460), Embedder, Vis, Act, Ena, Comp (Hil=0x0), DrawingEnabled
> Control 0x541a760 <appl/upan> ( "" ), ID 'CRAg'/1, tlbr
> (37,0,259,440), Embedder, Vis, Act, Ena, Comp (Hil=0x0), DrawingEnabled
> Control 0x5421320 <appl/popb> ( "" ), ID 'CRAg'/11, tlbr
> (10,20,202,420), Embedder, Vis, Act, Ena, Comp (Hil=0x0), DrawingEnabled
> Control 0x3b5ef0 <appl/stxt> ( "" ), ID 'CRAg'/12,
> tlbr (24,20,176,384), Vis, Act, Ena, Comp (Hil=0x0), DrawingEnabled
> Control 0x3f2560 <appl/upan> ( "" ), ID 'CRAg'/2, tlbr
> (37,0,259,440), Embedder, Hid, Act, Ena, Comp (Hil=0x0), DrawingEnabled
> Control 0x3a2580 <appl/push> ( "Terminer" ), ID ''/0,
> tlbr (222,79,242,165), PendVis, Act, Ena, Comp (Hil=0x0), DrawingEnabled
> Control 0x542b230 <appl/push> ( "Appliquer" ), ID ''/0,
> tlbr (222,328,242,420), PendVis, Act, Ena, Comp (Hil=0x0),
> DrawingEnabled
> Control 0x3b4430 <appl/popb> ( "" ), ID 'CRAg'/21, tlbr
> (10,20,202,420), Embedder, PendVis, Act, Ena, Comp (Hil=0x0),
> DrawingEnabled
> Control 0x3f40a0 <appl/bevl> ( "" ), ID 'CRAg'/23,
> tlbr (59,124,84,378), PendVis, Act, Ena, Comp (Hil=0x0), DrawingEnabled
> Control 0x540b780 <appl/stxt> ( "" ), ID ''/0, tlbr
> (64,20,79,127), PendVis, Act, Ena, Comp (Hil=0x0), DrawingEnabled
> Control 0x3f4b40 <appl/cbox> ( "Créer l'attribut si
> inexistant" ), ID 'CRAg'/25, tlbr (162,21,176,378), PendVis, Act,
> Ena, Comp (Hil=0x0), DrawingEnabled
>
> This is produced when the control should be visible and is not.
>
> The second line corresponds to chasing arrows and seems correct.
>
> Which surprises me a little bit is the fact that the two push button
> "Terminer" and "Appliquer" are seen twice.

One set is in the content view and another set is in one of the tab panes.
Both of the latter ones are marked PendVis. I'm not sure what that means,
but I'm guessing it means they're invisible only because a parent view is
invisible.
>
> Any clue ?

Not about the chasing arrows. When did you dump this hierarchy? You could
try installing kEventControlVisibilityChanged handler on it to see if
something's making it invisible somewhere you aren't expecting.

Larry
>
> Regards.
>
> Le 22 nov. 05 à 11:32, Laurence Harris a écrit :
>
>> On 11/21/05 4:17 PM, pour mes listes didst favor us with:
>>
>>> To include an async progress indicator in one of my window, I do the
>>> following :
>>>
>>> 1 insertion of a chasing arrrow control in the corresponding window
>>> in my nib with the hidden option set (the window is Movable Modal)
>>> 2 when I want to animate the progress control, I show it (calling
>>> ShowControl)
>>> 3 when I want to stop animation, I hide it (calling HideControl)
>>>
>>> In fact the control is never visible.
>>>
>>> I tried to suppress the hidden option in the nib : the control is
>>> visible before start of animation which is foreseeable, is hidden
>>> when HideControl is called but never appear again event if
>>> ShowControl is called again.
>>>
>>> Any help will be appreciated

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Chasing Arrows Control (From: pour mes listes <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.