List Info

Thread: Transparent ScrollBox




Transparent ScrollBox
user name
2006-06-21 03:59:44

Well, even if your code avoids the wrong behaviuor at design time,
painting problems still occur at run time. Place 'TransparentScrollBox'
on form and a Button(BtnA) on it so that the Scroll Bars are visible.
Then place a Button(BtnB) on the Form. The Button should be partially
on the 'TransparentScrollBox'. Then send the Button(BtnB) back of
the 'TransparentScrollBox'. Run the programme; and I can see when
Scroll Bars are moving part of the BtnB Button is moving inside
the 'TransparentScrollBox' as if the Button has broken into two.
Do you have any solution to this ?
(Delphi 5, Windows 2000 Server)

Thank you,
pri_sama.

--- In delphi-enyahoogroups.com, logman0u812 <logman0u812...> wrote:
&gt;
> try this:
>;
> Procedure TTransparentScrollBox.CreateParams( Var params:
TCreateParams);
&gt; begin
>; inherited CreateParams( params );
>
> if not ( csDesigning in ComponentState ) then
> params.ExStyle := params.ExStyle + WS_EX_TRANSPARENT;
&gt;
> end;

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )