|
Andy and Blair,
While trying to convert Steve Waring's LinkButton package to DX6 it
appeared that whenever they had an icon/image (the reason for using
Steve's instead of the standard one) they did not want to be drawn in
the new View Composer. This appeared to be caused by the ViewComposer's
canvas, which returns an integer as its handle instead of an external
handle.
The external call
CommCtrlLibrary>>imageList_DrawEx:i:hdcDst:x:y:dx:dy:rgbBk:rgbFg:fStyle:
falls over if the hdcDst (which is the canvas>>asParameter) isn't an
external handle.
For now I fixed it in
WinImageList>>draw:on:at:backcolor:forecolor:flags: by setting the
hdcDst parameter to:
(ExternalHandle fromInteger: target asParameter)
as I didn't want to mess about with the Canvas>> asParameter, but I
guess that's where it should be solved?
Cheers,
Ted
|