Changing Palettes

  • Thread starter Thread starter batesy67
  • Start date Start date
B

batesy67

Hi All,

We have a CCTV application here written in C# that is meant to run in
256 colors. It is called from another application via a button click.
The CCTV app is meant to always be on top, however it may not
necesserily have focus. We have found that when the CCTV application
has focus the background application does not flash - we have 8 bit
flashing colors on the 'parent app'.

The CCTV application has been built via bitmaps created in photoshop
(possible problem?), so we think it has to be a palette problem.

We have figured it has something to do with the CCTV app changing the
color palette. Does anyone know of anyway to ensure that the CCTV app
does not change the color palette and hence ensure that the 'parent
app' can keep flashing while not focused?

The reason we believe it is a palette thing is that when we have the
parent app running, and we fire up the system calculator the flashing
remains the same, however when we fire up ms paint, the flashing will
stop.

Thoughts?

Cheers muchly
JB
 
Ok upon further examination, I have found that this problem is
'fixable' in VB6 by using setting the palettemode to usezorder (value
1).
However in .Net there is no matching version. Does anyone know of any
'work arounds' to replicate this functionality in C#?
Tah
JB
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top