#68: Drop-down lists fail to drop down on 95/98/NT in certain circumstances (e.g. Tip of The Day, Lagoon wizard)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

#68: Drop-down lists fail to drop down on 95/98/NT in certain circumstances (e.g. Tip of The Day, Lagoon wizard)

Blair McGlashan
I am planning to close defect #68 without action, since (a) it was reported
long ago (over a year ago in fact), and we have had no further reports, and
(b) we have been unable to reproduce.

Any complains, please holler.

Regards

Blair


Reply | Threaded
Open this post in threaded view
|

Re: Drop-down lists fail to drop down on 95/98/NT in certain circumstances (e.g. Tip of The Day, Lagoon wizard)

Bill Schwab-2
Blair,

> I am planning to close defect #68 without action, since (a) it was
reported
> long ago (over a year ago in fact), and we have had no further reports,
and
> (b) we have been unable to reproduce.
>
> Any complains, please holler.

Well, that depends on whether the attached does for you what it does for me
:)  I had a small struggle reproducing this because I had tried to hack
around it by resending #droppedHeight: in ChoicePresenter>>onViewOpened -
that almost worked, but, I recall it not being a universal fix.  The
near-fix and the generator script that I used to build the example appear
below.

Have a good one,

Bill

---
Wilhelm K. Schwab, Ph.D.
[hidden email]


!ChoicePresenter methodsFor!

onViewOpened

"Now run through all our sub-presenters and connect them in turn

to same named sub-views within aCompositeView"

super onViewOpened.

#wksDangerousOLD.

"This doesn't work (well if at all), and OA seems to have accepted ownership
of the problem"

( self view isKindOf:ComboBox ) ifTrue:[

SessionManager current inputState queueDeferredAction:[

self view droppedHeight:self view droppedHeight.

].

].! !

!ChoicePresenter categoriesFor: #onViewOpened!event handling!public! !


!ViewGenerator class methodsFor!

exampleDropDownAlmost

"Try to reproduce the drop down not dropping down problem"

"

self exampleDropDownAlmost.

DropDownTest show.

"

| generator container1 container2 |



generator := self new

compositePresenterClass:CompositePresenter;

targetPresenterClassName:#DropDownTest;

useScrollingDecorator:false;

useFramingLayout:false;

yourself.

generator generateView:[

"First, try w/o a layout manager 'up top'

generator viewComposer composingView layoutManager:( ProportionalLayout new
isVertical:true; yourself )."

generator viewComposer composingView layoutManager:nil.

generator viewComposer composingView backcolor:Color gray.

container1 := generator

pastePresenterClass:CompositePresenter viewResourceName:CompositePresenter
defaultView

as:nil at:Point zero extent:200@30 byReference:false.

container1 layoutManager:( ProportionalLayout new isVertical:false;
yourself ).

container2 := generator

pastePresenterClass:CompositePresenter viewResourceName:CompositePresenter
defaultView

as:nil at:Point zero extent:200@30 inContextView:container1
byReference:false.

container2 layoutManager:( ProportionalLayout new isVertical:false;
yourself ).

generator

pastePresenterClass:ChoicePresenter viewResourceName:'Drop down list'

as:'dropDown' at:Point zero extent:200@100 inContextView:container2
byReference:false.

].

generator showResults.







! !

!ViewGenerator class categoriesFor: #exampleDropDownAlmost!examples!public!
!



begin 666 DropDownList.pac
M?"!P86-K86=E('P-"G!A8VMA9V4@.CT@4&%C:V%G92!N86UE.B G1')O<$1O
M=VY,:7-T)RX-"G!A8VMA9V4@<&%X5F5R<VEO;CH@,#L-"@EB87-I8T-O;6UE
M;G0Z("<G+@T*#0IP86-K86=E(&)A<VEC4&%C:V%G959E<G-I;VXZ("<G+@T*
M#0HB061D('1H92!P86-K86=E('-C<FEP=',B#0H-"B)!9&0@=&AE(&-L87-S
M(&YA;65S+"!L;V]S92!M971H;V0@;F%M97,L(&=L;V)A;"!N86UE<RP@<F5S
M;W5R8V4@;F%M97,B#0IP86-K86=E(&-L87-S3F%M97,-"@EA9&0Z("-$<F]P
M1&]W;E1E<W0[#0H)>6]U<G-E;&8N#0H-"G!A8VMA9V4@;65T:&]D3F%M97,-
M"@EY;W5R<V5L9BX-"@T*<&%C:V%G92!G;&]B86Q.86UE<PT*"7EO=7)S96QF
M+@T*#0IP86-K86=E(')E<V]U<F-E3F%M97,-"@EY;W5R<V5L9BX-"@T*(D)I
M;F%R>2!';&]B86P@3F%M97,B#0IP86-K86=E(&)I;F%R>4=L;V)A;$YA;65S
M.B H4V5T(&YE=PT*"7EO=7)S96QF*2X-"B)297-O=7)C92!.86UE<R(-"G!A
M8VMA9V4@86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,# P,# P
M,# P13 R,4$P,#4S-30T,C0Y-C0V-39%-S0V.3<T-SDT-#8Y-C,W-#8Y-D8V
M138Q-S(W.34P-S(V1C<X-SDP,# P,# P,#=!,# P,# P,# P,# P,#!!,# P
M,# P,#DR,# P,# P,3(P,# P,# T.38T-C4V13<T-CDW-#<Y-#0V.38S-S0V
M.39&-D4V,3<R-SE#,C P,# P,# P,# P,# P,# P,# P,# P-C Q,$8P,#1$
M-C4W,S<S-C$V-S8U-3,V-3<Q-S4V-39%-C,V-3 P,# P,# P,$4P,C$R,# U
M,S4T-#(T,S9&-D,V0S8U-C,W-#8Y-D8V134P-S(V1C<X-SDP,# P,# P,#=!
M,# P,# P,# P,# P,#!!,# P,# P,#DR,# P,# P,3$P,# P,# T1C<R-C0V
M-3<R-C4V-#0S-D8V0S9#-C4V,S<T-CDV1C9%0S(P,# P,# P,3 P,# P,# V
M,#,P0C P-$0V-3<S-S,V,38W-C4U,S8U-D4V-# P,# P,# P,$4P,3!%,# U
M,S4T-#(U,S<Y-D0V,C9&-D,U,#<R-D8W.#<Y,# P,# P,# Y,C P,# P,#$P
M,# P,# P-C,W,C8U-C$W-#8U-#$W-#-!-C4W.#<T-C4V13<T,T%#,C P,# P
M,# R,# P,# P,#8P,C U,# U,#9&-CDV13<T,# P,# P,# P,3 P,# P,# Q
M,# P,# P-3(P,C P,# P,# P,# P,$)$,#(P,# P1C4P,3 P,# V,# P,# P
M,# V,#$P1C P-3<T.31%-#0T1C4W-3 T0S0Q-#,T-31$-#4T134T,# P,# P
M,# S-C P,#DP,#0R-SDW-#8U-#$W,C<R-C$W.3)#,# P,# P,D,P,# P,# P
M,# P,# P,# P,# P,# P1D9&1D9&1D9&1D9&1D9&1D9&1D9&1D9&1D9&1D9&
M1D8P,# P,# P,# P,# P,# P-44P,3 P,#!&03 P,# P,$%!,#$P,# P,# P
M,# P,#!#,# Q,# P,$,R,# P,# P,#$P,# P,# U03 P,# P,# P,# P,# P
M.# P,# P,#!#,C P,# P,#!&,# P,# P,# P,# P,# V,# P,# P,$,R,# P
M,# P,#(P,# P,#!&,C P,# P,# T,# P,# P,# P,# P-#0P,3 P,#(P,$4P
M,#(P,# P,# P,# P,# P,# P,# P,# P,# P,# P,#4P,# P,# P,# P,# P
M,# P,# P,# P,# P,# P,# P,# P,# P,# V,#(Q,C P-3 W,C9&-S V1C<R
M-S0V.39&-D4V,39#-$,V,3<Y-D8W-3<T,# P,# P,# S03 Q,# P,# P,# P
M,# P-T$P,# P,# P,# P,# P,$$P,# P,# P.3(P,# P,# P0C P,# P,#1#
M-D8V1C9"-S4W,#4T-C$V,C9#-C4W,# Q,# P,#(P,# P,# P,T$P,3 P,# P
M,# P,# P,#4P,#$P,# P-S P,3 P,# P,# P,# P,#@R,#$P,# P,# P,# P
M,#!!03 Q,# P,# P,# P,# P0S P,3 P,#!#,C P,# P,# Q,# P,# P1C(P
M,3 P,# P,# P,# P,#(P,#(P,# P0S(P,# P,# P,C P,# P,#4R,#(P,# P
M,# P,# P,# P,3 P,# P,# Q,# P,# P-3(P,C P,# P,# P,# P,#DQ,#$P
M,# P,T0P,# P,#!%,# R,# P,#@R,#(P,# P,# P,# P,#!!,C R,# P,#)#
M,# P,# P,D,P,# P,# P,# P,# P,# Q,# P,# P1D9&1D9&1D9&1D9&1D9&
M1D9&1D9&1D9&1D9&1D9&1D8P,# P,# P,# P,# P,# P0S@P,# P,# Q13 P
M,# P,$%!,#$P,# P,# P,# P,#!#,# Q,# P,$,R,# P,# P,#$P,# P,# U
M03 P,# P,# P,# P,# P.# P,# P,#!#,C P,# P,#!&,# P,# P,# P,# P
M,#!%,# R,# P,$,R,# P,# P,#(P,# P,#!&,C P,# P,# T,# P,# P,# P
M,# P-#0P,3 P,#(P,#,P,#0P,# P,# P,# P,# P,# P,# P,# P,# P,# P
M,#<P,# P,# P,# P,# P,# P,# P,# P,# P,# P,# P,# P,# P,#(R,#,P
M,# P,# P,# P,# S03 Q,# P,# P,# P,# P-3 P,S P,# W,# Q,# P,#(P
M,# P,# P,T$P,3 P,# P,# P,# P,#4P,#$P,# P0S(P,# P,# P,C P,# P
M,#5!,# P,# P,# P,# P,# W03 P,# P,# P,# P,# P03 P,# P,# Y,C P
M,# P,# X,# P,# P-#,V1C9$-C(V1C0R-D8W.$,R,# P,# P,3$P,# P,# P
M,# P,# P,#,P,#0P,# P0S(P,# P,# P,C P,# P,$8R,# P,# P,#0P,# P
M,# P,S V,S$T-# Q,#0P,# P0C P-# P,# T-C S,#DP,# R,# P,# P-$,V
M.3<S-S0T1#9&-C0V-39#,# P,# P,#!!03 Q,# P,# P,# P,# P0S P,3 P
M,# W,# Q,# P,# P,# P,# P,#8P,#$T,# T.38T-C4V13<T-CDW-#<Y-3,V
M-38Q-S(V,S8X-3 V1C9#-CDV,S<Y,# P,# P,# P,# P,# P,# P,# P,# P
M,#<P,# P,# P,# P,# P,# P,# P,# P,# P,# P,# P,# P,# P,# P,# P
M,# P1C(P,# P,# P-# P,# P,$1!-3A%,S<W-T$P,# P,# P,# P,# P,$$P
M,# P,# P.3(P,# P,# Q,3 P,# P,#0R-C$W,S8Y-C,T0S8Y-S,W-#0Q-C(W
M,S<T-S(V,38S-S0P,3 P,# P,#DQ,#$P,# P.#(P,3 P,# P,# P,# P,$%!
M,#$P,# P,# P,# P,#!#,# Q,# P,$,R,# P,# P,#$P,# P,#!&,C Q,# P
M,# P,# P,# P,C P,C P,#!#,C P,# P,# R,# P,# P-3(P,C P,# P,# P
M,# P,# Q,# P,# P,#$P,# P,# U,C R,# P,# P,# P,# P.3$P,3 P,# R
M1# P,# P,$(P,#0P,# P.#(P,C P,# P,# P,# P,$$R,#(P,# P,D,P,# P
M,# R0S P,# P,# P,# P,# P,#$P,# P,#!&1D9&1D9&1D9&1D9&1D9&1D9&
M1D9&1D9&1D9&1D9&1C P,# P,# P,# P,# P,#!#.# P,# P,#$V,# P,# P
M04$P,3 P,# P,# P,# P,$,P,#$P,# P-S P,3 P,# U,C R,# P,# P,# P
M,# P0S$P,# P,#!#,3 P,# P,# P,# P,# P,3,P,# P,# Y,C P,# P,# X
M,# P,# P-C0W,C9&-S T-#9&-S<V13 P,# P,# P.#(P,3 P,# P,# P,# P
M,$%!,#$P,# P,# P,# P,#!#,# Q,# P,$,R,# P,# P,#$P,# P,#!&,C Q
M,# P,# P,# P,# P,C P,C P,#!#,C P,# P,# R,# P,# P-3(P,C P,# P
M,# P,# P,# Q,# P,# P,#$P,# P,# U,C R,# P,# P,# P,# P.3$P,3 P
M,# S1# P,# P,#,P,#0P,# P.#(P,C P,# P,# P,# P,$$R,#(P,# P,D,P
M,# P,# R0S P,# P,# P,# P,# P,#$P,# P,#!&1D9&1D9&1D9&1D9&1D9&
M1D9&1D9&1D9&1D9&1D9&1C P,# P,# P,# P,# P,#!#.# P,# P,#%%,# P
M,# P04$P,3 P,# P,# P,# P,$,P,#$P,# P0S(P,# P,# P,3 P,# P,$(P
M,#0P,# P,S P-C P,# P,# P,# P,#$S,# P,# P,S P-C P,# P,# P,# P
M,#$S,# P,# P,S P-C P,# P,# P,# P,#$S,# P,# P-#8P-3 T,# P,S P
M,# P,#0Y-C,V1C9%,# P,# P,# P,# P,# P,#$P,# P,# P,$4P,C$Q,# U
M,S4T-#(U,S8Y-D4V-S9#-C4W-#9&-D4U,#<R-D8W.#<Y,# P,# P,# T13 R
M,$0P,# Q,# P,# P-3,U-#0R-#,V0S8Q-S,W,S4P-S(V1C<X-SDP,# P,# P
M,#,V,# P-C P-3,W-#<R-CDV138W,#<P,# P,# T-#9&-D,W,#8X-CDV13$R
M,#$P,# P,3@P,# P,# T.39$-C$V-S8U-3(V-39#-C$W-#8Y-S8V-30V-CDV
M0S8U-$,V1C8S-C$W-#9&-S(P13 Q,$4P,#4S-30T,C4S-SDV1#8R-D8V0S4P
M-S(V1C<X-SDP,# P,# P,#$R,#$P,# P,#<P,# P,# V,S<U-S(W,C8U-D4W
M-#$R,#$P,# P,3$P,# P,# T,S9&-D4W-#8Q-CDV138U-S(U-C8Y-C4W-S)%
M-CDV,S9&,$4P,C%&,# U,S4T-#(T-3<X-S0V-3<R-D4V,39#-3(V-3<S-D8W
M-3<R-C,V-31#-CDV,C<R-C$W,C<Y-3 W,C9&-S@W.3 P,# P,# P,3(P,3 P
M,# Q,# P,# P,#8T-D8V0S<P-C@V.39%-C0W,C,P,S S-#)%-C0V0S9#,# P
-,# P,# G*2DA#0H-"@``
`
end


Reply | Threaded
Open this post in threaded view
|

Re: Drop-down lists fail to drop down on 95/98/NT in certain circumstances (e.g. Tip of The Day, Lagoon wizard)

Ian Bartholomew-3
> Well, that depends on whether the attached does for you what it does for
me
> :)  I had a small struggle reproducing this because I had tried to hack
> around it by resending #droppedHeight: in ChoicePresenter>>onViewOpened -
> that almost worked, but, I recall it not being a universal fix.  The
> near-fix and the generator script that I used to build the example appear
> below.

FWIW, it happens on XP as well - funnily enough I saw it the other day when
I used a combo box.

I always thought (as I didn't realise there was an outstanding issue -
sorry)  that it was just because I had the ComboBox "extent" aspect set to
less than the "droppedHeight" and editing the view so both heights were the
same always cured it.

Looking at Bill's example it also appears that just opening and resaving the
view in the VC has the same effect so the above change was probably
unnecessary anyway, maybe you just need to let it recalculate it's extent
before saving?

Ian