Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - tooltip and item button drawing bug
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

tooltip and item button drawing bug

 Post Reply Post Reply
Author
Message
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Topic: tooltip and item button drawing bug
    Posted: 28 July 2008 at 1:27am
Hi
 
Using 12.0.1 toolkit.
 
Problem in CXTPPropertyGrid, relating to tooltips.  If you have an item with a value wider than the column, and it has a button as well, then if you hover over it, you get the tooltip (which is correct), but when you hover over the button, it is all greyed out, and no button.
 
 
and
 
 
as you can see - no button, and no content.  This is when you hover over the item, and then hover from there to the button position.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 28 July 2008 at 3:04am
Hi,
Do you see same with our sample ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Posted: 29 July 2008 at 7:49pm

hmmm, doesn't seem to happen in the sample.

this is in a DLL.  I had to create a new thread to create the new frame window from which this dialog is launched.

Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Posted: 29 July 2008 at 7:50pm
what is used to redraw?  Is it some onidle processing?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 30 July 2008 at 8:17am
Hi,
We don't call special redraw method after tooltip - OS have to handle it and send WM_PAIN to Grid View.  
 
Maybe its some clip issue. try to remove or add WS_CLIPCHILDREN for Dialog/PRopertyGrid.
 
 
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Posted: 04 August 2008 at 1:58am
you're a genius!
 
 m_Params.ModifyStyle(0, WS_CLIPCHILDREN, 0);
fixed it.
 
Thanks!
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 04 August 2008 at 4:11am
Great. :)
 
We modified sources to add WS_CLIPCHILDREN automatically if grid is subclassed from dialog control.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.152 seconds.