473,324 Members | 2,370 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 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 3029
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
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.