Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
__Tooltip
#1
Function Dialog2
Code:
Select All      Help
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
if(!ShowDialog("Dialog2" &Dialog2 0)) ret

;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 223 135 "Dialog"
;3 Button 0x54032000 0x0 12 20 48 14 "Button 1"
;4 Button 0x54032000 0x0 12 40 48 14 "Button 2" "test tip 2"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2030405 "*" "" "" ""

ret
;messages
__Tooltip- tt
sel message
,case WM_INITDIALOG
,
,tt.Create(hDlg 1)
,tt.AddControl(3 "test tip 1")
,
,case WM_DESTROY tt.Destroy
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1


Not sure if this is wanted or if i just missed anything again.. but after clicking the button the tooltip wont be shown again.

Happens on XP pro SP3. Cannot test on other OS.
Reply
#2
It is Windows XP bug, fixed in Vista. I'll try to make it work. Thank you.
Reply
#3
Didnt know its XP bug as your old CToolTip functions working correctly on my pc.

Maybe not needed to spend time on this since xp is outdated anyway. Im just old fashioned and probably the only one who still works with it. Smile

Best regards.
Reply
#4
XP has bug when using TTF_SUBCLASS. Probably CToolTip did not use it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)