Home All Groups Group Topic Archive Search About

Control.SetStyle - is calling this method cumulative?

Author
22 Nov 2004 1:58 AM
Phil Jones
Does calling the Control.SetStyle method repeatedly with different flag
values have a cumulative effect?? or does it reset the value to the last
flag passed.

I'm wanting to call this from different places, potentially at different
times, and I'm not sure if I have to pass a bitwise set of flags or not
(that is - all values separated by OR).

Thanks everyone.
--
Phil

Author
22 Nov 2004 1:53 AM
Justin Rogers
Yes it is cumulative. You can set multiple styles at once by or'ing them
together
or make multiple calls in different places to achieve the same result.


--
Justin Rogers
DigiTec Web Consultants, LLC.
Blog: http://weblogs.asp.net/justin_rogers

Show quote
"Phil Jones" <phil_newsgr***@hotmail.com> wrote in message
news:eIOR4TD0EHA.1296@TK2MSFTNGP10.phx.gbl...
> Does calling the Control.SetStyle method repeatedly with different flag values
> have a cumulative effect?? or does it reset the value to the last flag passed.
>
> I'm wanting to call this from different places, potentially at different
> times, and I'm not sure if I have to pass a bitwise set of flags or not (that
> is - all values separated by OR).
>
> Thanks everyone.
> --
> Phil
>
Author
22 Nov 2004 2:54 AM
Phil Jones
Lovely - thank you Justin.


Show quote
"Justin Rogers" <Jus***@games4dotnet.com> wrote in message
news:%23Bg9vXD0EHA.2200@TK2MSFTNGP09.phx.gbl...
> Yes it is cumulative. You can set multiple styles at once by or'ing them
> together
> or make multiple calls in different places to achieve the same result.
>
>
> --
> Justin Rogers
> DigiTec Web Consultants, LLC.
> Blog: http://weblogs.asp.net/justin_rogers
>
> "Phil Jones" <phil_newsgr***@hotmail.com> wrote in message
> news:eIOR4TD0EHA.1296@TK2MSFTNGP10.phx.gbl...
>> Does calling the Control.SetStyle method repeatedly with different flag
>> values have a cumulative effect?? or does it reset the value to the last
>> flag passed.
>>
>> I'm wanting to call this from different places, potentially at different
>> times, and I'm not sure if I have to pass a bitwise set of flags or not
>> (that is - all values separated by OR).
>>
>> Thanks everyone.
>> --
>> Phil
>>
>
>

AddThis Social Bookmark Button