|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Control.SetStyle - is calling this method cumulative?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 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. 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 > 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 >> > > |
|||||||||||||||||||||||