472,354 Members | 1,381 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,354 software developers and data experts.

OwnerDraw TabPage Icons

Hi all,

I have few OwnerDraw TabPage icons. The problem that
I am having now is that when another window go over the
icons, they don't redraw properly (meaning you either
cannot see the icon at all or the icon is drawn only half).

Does anyone know how to fix this?
Any suggestion/help will be greatly appreciated.
Thank you very much in advance.
regards,
Sean
Nov 16 '05 #1
2 2973
Hi Sean,

You have overridden the Paint event of your TabPage control, have you?
Can you post the code inside it?

Michel

"Sean" <an*******@discussions.microsoft.com> wrote in message news:<5f****************************@phx.gbl>...
Hi all,

I have few OwnerDraw TabPage icons. The problem that
I am having now is that when another window go over the
icons, they don't redraw properly (meaning you either
cannot see the icon at all or the icon is drawn only half).

Does anyone know how to fix this?
Any suggestion/help will be greatly appreciated.
Thank you very much in advance.
regards,
Sean

Nov 16 '05 #2
Hi Michel,

Thank you for your reply.
No, I haven't overriden the Paint event,
but I did handle the DrawItem event to draw the
rectangle part of the tabpages.

First I draw a gradient blue background and then
an icon on the rectangle part of the selected tabpage.
Even though the gradient blue background always gets
redrawn, the icon does not get redrawn all the time,
especially when I drag another window over it.

Do you have any idea why?
Thank you in advance.
regards,
Sean
-----Original Message-----
Hi Sean,

You have overridden the Paint event of your TabPage control, have you?Can you post the code inside it?

Michel

"Sean" <an*******@discussions.microsoft.com> wrote in

message news:<5f****************************@phx.gbl>...
Hi all,

I have few OwnerDraw TabPage icons. The problem that
I am having now is that when another window go over the
icons, they don't redraw properly (meaning you either
cannot see the icon at all or the icon is drawn only half).
Does anyone know how to fix this?
Any suggestion/help will be greatly appreciated.
Thank you very much in advance.
regards,
Sean

.

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: TMB333 | last post by:
I've researched as much as I can on the issue, but I've not found any clearly defined statement that acknowledges that the Hide method for a TabPage object just doesn't do what it's supposed to do....
2
by: anand | last post by:
Hi All, Are ownerdraw buttons supported in C# ? I have an active X control which I would like to use in CSharp. Buttons have a style BS_OWNERDRAW, and to do custom drawing you have to...
0
by: Apollo440 | last post by:
If MenuItem.OwnerDraw Property is true,.NET framework does not recognize the overlapped accelerator keys. Is there a workaround? eg) +------+ |&Test | <- |&Tea | <- MenuItems has...
2
by: Stuart Norris | last post by:
Dear Group, I am new to c# and windows form designer - coming from a Motif background. I am attempting to develop an application for a touch screen and I need to have a menu system with a...
2
by: Peter Proost | last post by:
Hi group, I've got this ownerdraw menu module which I got from a site and modified to my personal needs, but the only problem I'm having is with the lines in a menu, when you type - as text, it...
0
by: genojoe | last post by:
This code is derived from: ms-help://MS.VSCC.2003/MS.MSDNQTR.2005JUL.1033/cpref/html/frlrfSystemWindowsFormsMenuItemClassOwnerDrawTopic.htm The sample works as presented but does not contain a...
1
by: tmda | last post by:
I'm using OwnerDraw for some customization in my ListView - adding color to item backgrounds. I'm using the ListView specifically for it's OwnerDraw capability. I originally was using the...
6
by: ray well | last post by:
i want a user to be able to change tab pages thru the keyboard, i tried entering the TabPage.text as '&1 Names', "&2 Addresses', etc., so that the user can change pages by type ALT 1, ALT 2, on the...
0
by: =?Utf-8?B?QmVu?= | last post by:
Hi I have this list box with 2 columns. In column 1 I want to but an Icon to represent a person name in column 2 Because, I want to to have the listview selection color different from the system...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
1
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.