Karl
Thu Sep 20 19:49:31 CDT 2007
Hi Russ --
> I do concede to a master like you. I am familiar with some of your previous
> efforts.
I misunderestimate stuff all the time. We're all learning, all the time.
Hopefully. <g>
>>> I played around with this code in a userform to change the titlebar color of
>>> the form.
>>
>> That code actually changes the titlebar color of *any* window that has the
>> foreground, right?
>
> Yes, any window that is active or activated subsequently.
Really good way to irritate users.
>>> and you set the default color values back
>>
>> And if you don't?
>>
>> Not trying to be antagonistic, here. Just recalling a few hard-learned
>> lessons.
>
> If you do, all previously changed windows, even those that accidentally pop
> up before, will change back to normal, when selected again.
>
> If you don't; or, since I didn't have code in case you selected button2
> before button1, then you would have to go back and right click on the
> Windows Desktop, select Properties...Appearance and select a theme that you
> had before or if you restart Windows, I believe, it will reset back to what
> you had before.
Really good way to irritate users. <G> Stuff happens. Crashes, even.
This illustrates why in the general VB groups it's exceedingly common to advise
folks to *not* mess with universal user settings. Not if they don't want their
software uninstalled, anyway.
> Nothing permanent, but I agree, that one must cover all bases to avoid
> leaving a unwitting user perplexed.
Can't be done.
> I couldn't find a way yet to get the current active windows handle (easy)
> and adjust its Caption (Titlebar) background only (hard, because it probably
> involves bitmap coloring of regions, etc.).
It's a royal PITA, really. And Microsoft is doing to the standard UI what the US
Mint is doing to the currency -- making it exceedingly difficult to reproduce. I
gave a link earlier, offering hints on how to consider proceeding. Best bet is to
tell the client you got better things to do with your life. <g>
Thanks... Karl
--
.NET: It's About Trust!
http://vfred.mvps.org