PackageBrowser Prerequisites

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

PackageBrowser Prerequisites

Ian Bartholomew-3
The PackageBrowser's prerequisites tree view is not being drawn correctly,
compared to other tree views the box that the + and - is shown in is too
small - see attachment.

It appears to be caused by a partial attempt to add icons that display the
state of the package.  If you edit PackagePrerequisites.Default view and set
the #getImageBlock back to it's default state of IconicListAbstract and the
tree's viewMode aspect to #smallIcons then it displays correctly.

Ian




begin 666 prereq.JPG
M_]C_X `02D9)1@`!`0$`8 !@``#_VP!#``@&!@<&!0@'!P<)"0@*#!0-# L+
M#!D2$P\4'1H?'AT:'!P@)"XG("(L(QP<*#<I+# Q-#0T'R<Y/3@R/"XS-#+_
MVP!#`0D)"0P+#!@-#1@R(1PA,C(R,C(R,C(R,C(R,C(R,C(R,C(R,C(R,C(R
M,C(R,C(R,C(R,C(R,C(R,C(R,C(R,C+_P `1" "#`$4#`2(``A$!`Q$!_\0`
M'P```04!`0$!`0$```````````$"`P0%!@<("0H+_\0`M1 ``@$#`P($`P4%
M! 0```%]`0(#``01!1(A,4$&$U%A!R)Q%#*!D:$((T*QP152T? D,V)R@@D*
M%A<8&1HE)B<H*2HT-38W.#DZ0T1%1D=(24I35%565UA96F-D969G:&EJ<W1U
M=G=X>7J#A(6&AXB)BI*3E)66EYB9FJ*CI*6FIZBIJK*SM+6VM[BYNL+#Q,7&
MQ\C)RM+3U-76U]C9VN'BX^3EYN?HZ>KQ\O/T]?;W^/GZ_\0`'P$``P$!`0$!
M`0$!`0````````$"`P0%!@<("0H+_\0`M1$``@$"! 0#! <%! 0``0)W``$"
M`Q$$!2$Q!A)!40=A<1,B,H$(%$*1H;'!"2,S4O 58G+1"A8D-.$E\1<8&1HF
M)R@I*[hidden email]-$149'2$E*4U155E=865IC9&5F9VAI:G-T=79W>'EZ@H.$
MA8:'B(F*DI.4E9:7F)F:HJ.DI::GJ*FJLK.TM;:WN+FZPL/$Q<;'R,G*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M"7RXQ%:3+<O;R.I,URT!A90!Y<FY-N&((9CE<1L*T&\4Z,MG9W1O/W-[:?;+
M8B)R98LQ@;5QDL3-& F-Q+@`$UGW'A.XN[A;FXU7S+B3[&;EC;@!C;77VA @
M!&Q?FD3!W'!0DDJQ>.Z\!V-S:ZU 6C(U&XCG198O,1 DOGB-U)_>(9VF=A\I
M(E* @*N "P/%D"W#W,@D&DE%B5_LLJSPW())BEB(#J75HO+&W+$XZO&&DO=6
MU2P\-+>7-M!%?SW<=O'&?F6$37"Q1%P&^9D61"X5L%E8*P!!JGHO@>VT]YOM
MJZ;<6TB'98VVFI;6L3LK)(XC!.XO'L4ERQ W@$*Y4:$V@37'AT:7+J,DLL5P
ML]O<2J7*^7.)85?+9<+M16)8,X4G()R "YIB:Q%YJ:M/8W/0QS6D+PYZY4QL
MS],`[@W.XC:-N6*-,MM4A\U]5U&"[D; 1;:U\B- ,\X+NQ8YY);&`N #DL4`
J7U^Z/I5:-B=4N%XP(8CT&>6?O^%%%("U1113`**** "BBB@`HHHH`__9
`
end


Reply | Threaded
Open this post in threaded view
|

Re: PackageBrowser Prerequisites

Blair McGlashan
"Ian Bartholomew" <[hidden email]> wrote in message
news:[hidden email]...
> The PackageBrowser's prerequisites tree view is not being drawn correctly,
> compared to other tree views the box that the + and - is shown in is too
> small - see attachment.
>
> It appears to be caused by a partial attempt to add icons that display the
> state of the package.  If you edit PackagePrerequisites.Default view and
set
> the #getImageBlock back to it's default state of IconicListAbstract and
the
> tree's viewMode aspect to #smallIcons then it displays correctly.

It's not a partial attempt. The package state icons can be enabled (or
disabled) with the 'Show Status Icons' command on the context menu. They are
off by default, because enabling them slows down the display (in effect
deciding what icon to display requires about the same amount of computation
as expanding the entire tree).

Actually this seems to be a general problem on XP (when in "XP" mode) with
trees that have no icons - see for example the categories tree in the class
browsers. Methinks Microsoft may have a bug, or it could be that they 'no
icons' mode is not supported by version 6 of the common controls, after all
MS decided not to "bother" supporting the vertical mode of the tab view.

Regards

Blair


Reply | Threaded
Open this post in threaded view
|

Re: PackageBrowser Prerequisites

Ian Bartholomew-3
Blair,

> It's not a partial attempt. The package state icons can be enabled (or
> disabled) with the 'Show Status Icons' command on the context menu. They
are
> off by default, because enabling them slows down the display (in effect
> deciding what icon to display requires about the same amount of
computation
> as expanding the entire tree).

Apologies for the "partial attempt" smear, I hadn't come across that option
before and it, once again, makes me wonder what else is sitting in the image
that I haven't noticed :-)  I just tried turning the option on and, IMHO, it
makes the tree much easier to use and with no apparent slowdown - one for my
install script to turn on permanantly (if possible).

> Actually this seems to be a general problem on XP (when in "XP" mode) with
> trees that have no icons - see for example the categories tree in the
class
> browsers. Methinks Microsoft may have a bug, or it could be that they 'no
> icons' mode is not supported by version 6 of the common controls, after
all
> MS decided not to "bother" supporting the vertical mode of the tab view.

I've just had a random look round some other apps on my system and the ones
that use the +/- in trees all seem to have icons. The only one that I could
find that didn't display icons also drew it's own symbols to show the state
of the tree.

Ian


Reply | Threaded
Open this post in threaded view
|

Re: PackageBrowser Prerequisites

Blair McGlashan
"Ian Bartholomew" <[hidden email]> wrote in message
news:[hidden email]...

> Blair,
>
> > It's not a partial attempt. The package state icons can be enabled (or
> > disabled) with the 'Show Status Icons' command on the context menu. They
> are
> > off by default, because enabling them slows down the display (in effect
> > deciding what icon to display requires about the same amount of
> computation
> > as expanding the entire tree).
>
> Apologies for the "partial attempt" smear, I hadn't come across that
option
> before and it, once again, makes me wonder what else is sitting in the
image
> that I haven't noticed :-)  I just tried turning the option on and, IMHO,
it
> makes the tree much easier to use and with no apparent slowdown - one for
my
> install script to turn on permanently (if possible).

The slow-down would only be noticeable when the pre-reqs need to be
calculated, even then on a fast machine I think it is unlikely to be that
noticeable.

> > Actually this seems to be a general problem on XP (when in "XP" mode)
with
> > trees that have no icons - see for example the categories tree in the
> class
> > browsers. Methinks Microsoft may have a bug, or it could be that they
'no
> > icons' mode is not supported by version 6 of the common controls, after
> all
> > MS decided not to "bother" supporting the vertical mode of the tab view.
>
> I've just had a random look round some other apps on my system and the
ones
> that use the +/- in trees all seem to have icons. The only one that I
could
> find that didn't display icons also drew it's own symbols to show the
state
> of the tree.

Try the following:

1) Enable the VisualObjectFinder 'findNonDolphinWindows' option.
2) Using the VOF toolbar button, open an inspector on the folder tree of a
Windows explorer.
3) Select the 'handle' aspect and then run Inspect-It on 'TreeView
fromHandle: self' (hmmm, wouldn't it be better if the VOF opened on the
correct type of view's for non-Dolphin windows in the first place).
4) Switch the #viewMode of the tree to smallIcons and then back to #noIcons
(it will be incorrectly showing #noIcons in the first place)

You should now see that precisely the same paint bug exists. I think the
problem is that we have hard coded the 'indentSeparation' to 8, and this is
insufficient to allow the larger XP expand/contract button to be displayed
correctly. Increasing it to 16 in the inspector will cause the explorer
folder tree to redraw correctly. I will record this on the bugs database,
and if time permits we will include a durable fix in the base (if it doesn't
we'll have to bodge it by changing the indent of the view's in question).

BTW: A warning to all is to be careful about changing styles of non-Dolphin
Windows through an inspector. Since many of the style changes must
necessarily recreate the window, you will probably find that the owning
application is no longer aware of the window after recreation, and will get
confused and/or crash. This can be mildly diverting on a rainy afternoon,
but don't blame me if you crash your system.

Regards

Blair


Reply | Threaded
Open this post in threaded view
|

Re: PackageBrowser Prerequisites

Blair McGlashan
"Blair McGlashan" <[hidden email]> wrote in message
news:[hidden email]...
>... if time permits we will include a durable fix in the base (if it
doesn't
> we'll have to bodge it by changing the indent of the view's in question).

Five minutes of time was sufficient to permit a reasonable fix! The minimum
indents are still hard coded, but this will have to do for now.

Regards

Blair

-------------------------------------------
!TreeView methodsFor!

updateIndentation
 "Private - Update the identation of child items to reflect the current
values
 of the icon extents and identSeparation."

 self
  sendMessage: TVM_SETINDENT
  wParam: (self imageExtent x + self indentSeparation max: self
minimumIndent)
  lParam: 0! !
!TreeView categoriesFor: #updateIndentation!private!updating! !

!TreeView methodsFor!

minimumIndent
 ^OSVERSIONINFO current isWinXP ifTrue: [16] ifFalse: [8]! !
!TreeView categoriesFor: #minimumIndent!public! !