Help! - Good HSTools Problem
Posted in 1995
Hello All,
I've created a simple HSTools dialog box that is giving me fits trying
to get it to function as I want it to. The dialog box consists of 3
controls, a color picker popup, a custom button, and a pattern picker
popup. The idea is to color the custom button and the pattern picker
popup with the color selected by the user using the color picker popup.
The custom button and pattern picker popup both have a on repaint event
that reads the color from the color picker and then sets the color for
the control. The color picker popup has an on mouseup event that selects
each of the other two controls and issues a repaint control command.
Here's the problem. The initial state is that all controls are red.
The user selects green from the color picker popup. Both the custom
button and the color picker popup are now green, BUT the pattern picker
popup is still red. The user now picks red from the color picker. Both
the custom button and the color picker popup are now red, BUT the pattern
picker popup is now green! The pattern picker popup is consistently
1 update behind the other controls.
Any ideas on what is going on here? I've included the script incase
anyone would like to try it out. Thanks in advance for any pointers.
Regards,
Jon.
P.S. Machine and rev stuff
HP9000 series model 897
On-line 5.01.UD1
HSTools 1.00.UC1
-------------------------------------------------------------------------------
***** ***** Jon Dallara -------------------------------------------------
*** /_ __ *** 370 West Trimble Road MS 91UN --------------- 408-435-6269
** / / /_/ ** San Jose, Ca., 95131 -------------------- Fax 408-435-6571
*** / *** Optoelectronics Division (OED) ------------------------------
***** ***** jon@hpoemg.sj.hp.com (prefered) jon@hpoemd.sj.hp.com -------
-------------------------------------------------------------------------------
We are young; Wandering the face of this Earth; Wondering what our dreams
might be worth; Finding out that we're only immortal for a limited time.
- Rush
-------------------------------------------------------------------------------
My employer doesn't pay me for opinions and I won't be their spokesman for free
-------------------------------------------------------------------------------
#---------------------------------- cut here ----------------------------------
# This is a shell archive. Remove anything before this line,
# then unpack it by saving it in a file and typing "sh file".
#
# Wrapped by Jon Dallara <jon@hpoemg> on Thu Mar 16 09:02:47 1995
#
# This archive contains:
# testdialog.scz
#
# Error checking via wc(1) will be performed.
LANG=""; export LANG
PATH=/bin:/usr/bin:$PATH; export PATH
echo x - testdialog.scz '[non-ascii]'
uudecode <<'@eof'
begin 644 testdialog.scz
M5TY'6E=:4T,P,C P !0% P! %P0 !<$ 7! &X" X
M X
M X
M ( " X
M $H.X !0$ L #P _2 = $ #$$@1&EA;&]G($)O> "__\\"__\\ CT;X
M G(.[@ %0 !X )P#]$AX( @ "=PD"+0(! FD" BP"[@ %:P !8 &0#]X
M"AYG 5C;VQO<NX !8@ / !$ _0,>:.X !9T "< +D _9 A P(' MOX
M;B!M;W5S975P( $ &0ES96QE8W0@8V]N=')O;" B8G5T=&]N(B ! !$)<F5PX
M86EN="!C;VYT<F]L( $ &@ES96QE8W0@8V]N=')O;" B<&%T=&5R;B(@ 0 1X
M"7)E<&%I;G0@8V]N=')O;" ! H)=6YS96QE8W0@ 0 ,96YD(&UO=7-E=7 @X
M .X !5D! > "L _1(># ( J0) NX% 0+4!0). NX !8@! 8 !L _0P>X
M9P '<&%T=&5R;NX !:<! / !$ _0,>:.X !;P! "P ,T _:0A P(' MOX
M;B!R97!A:6YT( $ $@ED969I;F4@<&%T7V-O;&]R( $ ( EP871?8V]L;W(@X
M/2!C='9A;'5E*")C;VQO<B(L,"D@ 0 :"7-E;&5C="!C;VYT<F]L(")P871TX
M97)N(B ! !T)<&%T=&5R;B!P:6-K97(@9F<@<&%T7V-O;&]R( $ "@EU;G-EX
M;&5C=" ! QE;F0@<F5P86EN=" [@ %H0( !\\ '@ 9!6-O;&]R& X
M Y?0 .X !<," ; !@ _0\\>$ ! =P871T97)N .X !=\\" 0 ! X
M_00>6X'N 7S @ %0 ; /T)'EP!!1H /_N 42 P $ ( /T$" $'[@ %X
M'0, !X * #]$AX* "> ,"+@(! J<" G<"[@ %20, !< &@#]"QYG 9BX
M=71T;V[N 5G P #P 1 /T#'FCN 5\\ P P #C /VT(0,"" +;VX@<F5PX
M86EN=" ! !$)9&5F:6YE(&)G7V-O;&]R( $ 'PEB9U]C;VQO<B ](&-T=F%LX
M=64H(F-O;&]R(BPP*2 ! !D)<V5L96-T(&-O;G1R;VP@(F)U='1O;B(@ 0 2X
M"69I;&P@8F<@8F=?8V]L;W(@ 0 ;"69I;&P@<F5C=&%N9VQE("@P+# I*#$LX
M,2D@ 0 *"75N<V5L96-T( $ #&5N9"!R97!A:6YT( #N 5V! 'P = !D%X
M8V]L;W(8 #E] ![@ %EP0 !H %P#]#AX0 $ !F)U='1O;@#NX
M 6R! %0 3 /T)) @( @8'N 7)! %@ 0 /T*#P ! 04: '_[@ %X
MW00 !4 &0#]"20; (" (&![@ %^@0 ! " #]! @!!^X !00% / X X
M_0,= ^X !1,% _ H <&%T7V-O;&]R ) &)G7V-O;&]R 0 )3D57X
M($U/1$5,15-3($1)04Q/1R!"3U@@(D$@1&EA;&]G($)O>"(@050@*"TQ+"TQX
M*2@V.3<S+#,V.3@I#0D)041$($-/3$]2(%!/4%50($%4("@R-#(S+#4U-RDKX
M*#8Q-RPU-38I#0D)"5-(3U<@0T].5%)/3"!.04U%(")C;VQO<B(-"0D)2$E$X
M12!#3TY44D],($Y!344-"0D)4T-225!4(")O;B!M;W5S975P("(L#0D)"0D)X
M(@ES96QE8W0@8V]N=')O;" B(F)U='1O;B(B("(L#0D)"0D)(@ER97!A:6YTX
M(&-O;G1R;VP@(BP-"0D)"0DB"7-E;&5C="!C;VYT<F]L("(B<&%T=&5R;B(BX
M("(L#0D)"0D)(@ER97!A:6YT(&-O;G1R;VP@(BP-"0D)"0DB"75N<V5L96-TX
M("(L#0D)"0D)(F5N9"!M;W5S975P("(-"0E!1$0@4$%45$523B!03U!54"!!X
M5" H,C0V."PQ-3$X*2LH,30Y,BPU.3 I#0D)"5-(3U<@0T].5%)/3"!.04U%X
M(")P871T97)N(@T)"0E(241%($-/3E123TP@3D%-10T)"0E30U))4%0@(F]NX
M(')E<&%I;G0@(BP-"0D)"0DB"61E9FEN92!P871?8V]L;W(@(BP-"0D)"0DBX
M"7!A=%]C;VQO<B ](&-T=F%L=64H(B)C;VQO<B(B+# I("(L#0D)"0D)(@ESX
M96QE8W0@8V]N=')O;" B(G!A='1E<FXB(B B+ T)"0D)"2()<&%T=&5R;B!PX
M:6-K97(@9F<@<&%T7V-O;&]R("(L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