HSP3.4rc2¡ÜWin8.1¤Ç¤¹¡¢Ä¹Ê¸¼ºÎ餷¤Þ¤¹¡£
TTS_BALLOON¥Ä¡¼¥ë¥Á¥Ã¥×¤Ë¤Ä¤¤¤Æ£³ÅÀ¡¢¼ÁÌ䤬¤¢¤ê¤Þ¤¹¡£
£±¡¥¥Ð¥ë¡¼¥ó¥Ä¡¼¥ë¥Á¥Ã¥×¤Î¿á¤½Ð¤·Êý¸þ¤È¤½¤Î°ÌÃÖ´Ø·¸¤ò
°Õ¿ÞŪ¤Ë·è¤á¤Æɽ¼¨¤µ¤»¤¿¤¤¤Î¤Ç¤¹¤¬¡¢¤É¤³¤Þ¤Ç»ØÄê²Äǽ¤Ê¤Î¤Ç¤·¤ç¤¦¤«¡©
¼«Æ°Åª¤Ë°ÌÃÖÊäÀµ¤µ¤ì¤Æ¤·¤Þ¤¦¤ß¤¿¤¤¤Ç¡¢
²èÌ̱¦Â¦¤Þ¤Ç¤Îµ÷Î¥¤Ë;͵¤¬¤¢¤ë¾ì¹ç¡ÊÄ̾ï¡Ë¤Ï¡¢±¦²¼Êý¸þ¤Ë¤·¤«½Ð¤¹¤³¤È¤¬¤Ç¤¤Þ¤»¤ó¡£
¥Ä¡¼¥ë¥Á¥Ã¥×¤¬²èÌ̱¦Ã¼¤«¤é¸«ÀÚ¤ì¤Æ¤·¤Þ¤¤¤½¤¦¤Ê¾ì¹ç¤Ë¡¢¼«Æ°Åª¤Ë¥Ä¡¼¥ë¥Á¥Ã¥×¤¬º¸Â¦¤ËÀÞ¤ì¤ë¤è¤¦¤ÊÆ°¤¤ò¤·¤Þ¤¹¡£
¥¢¥¹¥¡¼¥¢¡¼¥È¤Î¤è¤¦¤Ê¤³¤È¤ÏÉÔ´·¤ì¤Ç¤¹¤¬¾¯¤·¤Ç¤â¥¤¥á¡¼¥¸¤òÅÁ¤¨¤ë¤¿¤á¤Ë¡¢½ñ¤¤¤Æ¤ß¤Þ¤·¤¿¡£
±¦²¼Êý¸þ¤È¤¤¤¦¤Î¤Ï¡¢¤³¤ó¤Ê´¶¤¸¤Ç¤¹¡£¡Ê¡ü¤Ï¿á¤½Ð¤·É½¼¨¤Î´ð½àÅÀ¤Ç¤¹¡Ë
¡¡¡ü
¡¡¡Ã¡À
¡Ö¡¡¡¡¡Ý¡Ý¡Ý
¡Ã¡¡¡¡¡¡¡¡¡¡¡Ã
¨±¡Ý¡Ý¡Ý¡Ý¡Ý¡×
¤È¤³¤í¤Ç¡¢¥Þ¥¦¥¹¥«¡¼¥½¥ë°ÌÃÖ¤Îɽ¼¨¤Ç¤¢¤ì¤Ð¡¢¿á¤½Ð¤·Êý¸þ¤¬Ä̾ï¤Ï±¦¾åÊý¸þ¤Ë½Ð¤Þ¤¹¡Ê²èÌ̱¦Ã¼¤Ç¤¢¤ì¤Ðº¸Â¦¤ËÀÞ¤ì¤Æ¤¤Þ¤¹¡Ë¡£
¤Þ¤¿¡¢¥¿¥¹¥¯¥Ð¡¼¤Ë½Ð¤Æ¤¯¤ë¥Ð¥ë¡¼¥ó¥Ä¡¼¥ë¥Á¥Ã¥×¤ò¸«¤Æ¤¤¤ë¤ÈÄ̾ï¤Ï±¦¾åÊý¸þ¤Ë½Ð¤ë¤è¤¦¤Ç¤¹¡£
¤½¤ì¤Ç±¦²¼Êý¸þ°Ê³°¤Ë»ØÄꤷ¤Æ½Ð¤¹ÊýË¡¤Ï¤¢¤ë¤è¤¦¤Ë´¶¤¸¤¿¤Î¤Ç¤¹¤¬¡¢
¤·¤«¤·ÆÃÄê°ÌÃ֤˽Ф·¤¿¤¤¾ì¹ç¡ÊTTF_TRACK¤ò»È¤¦¾ì¹ç¡Ë¤Ë¤Ï¡¢¿á¤½Ð¤·Êý¸þ¤¬¿¿²¼¡ÊTTF_CENTERTIP¡Ëor ±¦²¼Êý¸þ¤Ë¤·¤«½Ð¤¹ÊýË¡¤¬Ê¬¤«¤ê¤Þ¤»¤ó¡£
Î㤨¤Ð¡¢¥Ð¥ë¡¼¥ó¥Ä¡¼¥ë¥Á¥Ã¥×¤Î¿á¤½Ð¤·Êý¸þ¤ò¡¢¤¢¤ëÅÀ¤ò´ð½à¤Ë¤·¤Æ¾ï¤Ë¿¿±¦¡Ê±¦²£¡ËÊý¸þ¤Ë½Ð¤·¤¿¤¤¤È»×¤Ã¤Æ¤¤¤Þ¤¹¡£
¤³¤ó¤Ê´¶¤¸¤Ç¤¹¡£¡Ê¡ü¤Ï¿á¤½Ð¤·É½¼¨¤Î´ð½àÅÀ¤Ç¤¹¡Ë
¡¡¡¡¡Ö¡Ý¡Ý¡Ý
¡ü¡ã¡¡¡¡¡¡¡¡¡Ã
¡¡¡¡¨±¡Ý¡Ý¡Ý¡×
¤É¤¦¤·¤¿¤é¥Ð¥ë¡¼¥ó¥Ä¡¼¥ë¥Á¥Ã¥×¤Î¿á¤½Ð¤·Êý¸þ¤Èɽ¼¨°ÌÃÖ¤òÄ´À°¤¹¤ë¤³¤È¤¬¤Ç¤¤ë¤Î¤Ç¤·¤ç¤¦¤«¡£
¡ÖTTM_TRACKPOSITION¤¬¿á¤½Ð¤·´ð½àÅÀ¤Î»ØÄê¤Ç¤¢¤ê¡¢TOOLINFO¹½Â¤ÂΤÎrect¤¬¥Ä¡¼¥ë¥Á¥Ã¥×¼«ÂΤÎɽ¼¨°ÌÃ֤κÂɸ¤È¥µ¥¤¥º»ØÄê¡×
¤Ç¤Ï¤Ê¤¤¤Î¤«¡©¤È»×¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢¤É¤¦¤â¤½¤ì¤Ç¤Ï¤¦¤Þ¤¯¤¤¤«¤Ê¤¤¤è¤¦¤Ê¤Î¤Ç¤¹¡£
¥Ä¡¼¥ë¥Á¥Ã¥×¤¬²èÌ̤«¤é¤Ï¤ß½Ð¤·¤½¤¦¤«¤É¤¦¤«¤Ë´Ø·¸¤Ê¤¯¡¢º¸¾å¤äº¸²¼¡¢±¦¾åÊý¸þ¡õ°ÌÃÖ¤òÄ´À°¤·¤Æɽ¼¨¤Ç¤¤ë¤È¤¤¤¤¤Î¤Ç¤¹¤¬
¤È¤ê¤¢¤¨¤º¡Ö´ð½àÅÀ¤«¤é±¦²£Êý¸þ¡×¤À¤±¤Ç¤â¡¢¤Ç¤¤¿¤é¤È»×¤¤¤Þ¤¹¡£
TTF_CENTERTIP¤Î±¦Â¦ÈǤΤ褦¤Ê¤â¤Î¤¬¤Ç¤¤ë¤Ê¤é¡¢TTF_ABSOLUTE¤Ç¤â¹½¤¤¤Þ¤»¤ó¡£
¤³¤ì¤ÏWindows¤Î»ÅÍͤǼ«Æ°Åª¤Ë¹Ô¤ï¤ì¤ë¤â¤Î¤Ç¤¢¤ê¡¢°ÌÃ֤⥵¥¤¥º¤âÀ©¸æ¤Ç¤¤Ê¤¤¤â¤Î¤Ê¤Î¤Ç¤·¤ç¤¦¤«¡£
¤½¤â¤½¤â¡¢¿á¤½Ð¤·´ð½àÅÀ¤Ê¤É¤Ï¸ºß¤»¤º¡¢´ð½àÅÀ¤Èɽ¼¨°ÌÃ֤Ȥδֳ֤äÊý¸þ¤òÀßÄꤹ¤ë¤³¤È¤¹¤é¤Ç¤¤Ê¤¤¤Î¤Ç¤·¤ç¤¦¤«¡©
¤â¤·¡¢°Õ¿ÞŪ¤Ëɽ¼¨¤Ç¤¤ë¤Ê¤é¼«Æ°Åª¤Ê°ÌÃÖÄ´À°¤¬Æ¯¤«¤Ê¤¯¤Æ¤â¹½¤¤¤Þ¤»¤ó¡£
£²¡¥XP¤Ç¤ÏTTM_SETTIPTEXTCOLOR¤äTTM_SETTIPBKCOLOR¤ÎÀßÄ꿧¤¬
¥Ð¥ë¡¼¥ó¥Ä¡¼¥ë¥Á¥Ã¥×¤ËÈ¿±Ç¤µ¤ì¤¿¤Î¤Ç¤¹¤¬
Win8.1¤Ç¤ÏÀßÄꤷ¤Æ¤â¿§¤¬È¿±Ç¤µ¤ì¤Ê¤¤¤è¤¦¤Ë¸«¤¨¤Æ¤¤¤Þ¤¹¡£
¤³¤ì¤Ï²¿¤¬¸¶°ø¤Ê¤Î¤Ç¤·¤ç¤¦¤«¡£Windows¤ÎÀßÄ꤬ÌäÂê¤Ê¤Î¤Ç¤·¤ç¤¦¤«¡©
£³¡¥Win8.1¤Ç¡¢¥Ð¥ë¡¼¥ó¥Ä¡¼¥ë¥Á¥Ã¥×¤Î·Á¾õ¤¬¡Ö³Ñ´Ý»Í³Ñ·Á or »Í³Ñ·Á¡×¤Î¤â¤Î¤òÌܤˤ¹¤ë
»þ¤¬¤¢¤ë¤Î¤Ç¤¹¤¬¡¢¤³¤Î·Á¾õ¥¿¥¤¥×¤ò»ØÄꤷ¤Æ»È¤¤Ê¬¤±É½¼¨¤µ¤»¤ë¤³¤È¤Ï¤Ç¤¤ë¤Î¤Ç¤·¤ç¤¦¤«¡©
¡Ê¤Ê¤¼·Á¾õ¤¬°ã¤¦¤Î¤«¡¢ÊѤï¤ë¤Î¤«¤¬¤è¤¯Ê¬¤«¤Ã¤Æ¤¤¤Þ¤»¤ó..
¥Ð¥ë¡¼¥ó¥Ä¡¼¥ë¥Á¥Ã¥×¤Ç¤Ê¤±¤ì¤Ð¡¢»Í³Ñ·Á¤Î¤â¤Î¤¬Â¿¤¯¡¢
¥Ð¥ë¡¼¥ó¥Ä¡¼¥ë¥Á¥Ã¥×¤Ç¤¢¤ì¤Ð¡¢³Ñ´Ý»Í³Ñ·Á¤Î¤â¤Î¤¬Â¿¤¤¤è¤¦¤Êµ¤¤¬¤·¤Þ¤¹¤¬¡¢
¥Ð¥ë¡¼¥ó¥Ä¡¼¥ë¥Á¥Ã¥×¤Ç¤¢¤Ã¤Æ¤â¡¢»Í³Ñ·Á¤Ç½Ð¤Æ¤¤¤ë¤â¤Î¤âÌܤˤ·¤Þ¤¹¡Ë
»²¹Í¤Þ¤Ç¤Ë¡¢¤³¤Á¤é¤Ç¿§¡¹¤ä¤Ã¤Æ¤ß¤¿¥µ¥ó¥×¥ë¤Ç¤¹¡£
°Ê¾å¤É¤ì¤Ç¤â²ò·è¤Ç¤¤ì¤Ð¤¢¤ê¤¬¤¿¤¤¤Ç¤¹¡¢¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£
; #define TTM_ADDTOOL $00000404 #define TTM_ADDTOOLA $00000404 #define TTM_ADDTOOLW $00000432 #define TTM_NEWTOOLRECT $00000406 #define TTM_NEWTOOLRECTA $00000406 #define TTM_NEWTOOLRECTW $00000434 #define TTM_POP $0000041C #define TTM_SETTIPBKCOLOR $00000413 #define TTM_SETTIPTEXTCOLOR $00000414 #define TTM_SETTITLE $00000420 #define TTM_SETTITLEA $00000420 #define TTM_SETTITLEW $00000421 #define TTM_SETTOOLINFO $00000409 #define TTM_SETTOOLINFOA $00000409 #define TTM_SETTOOLINFOW $00000436 #define TTM_TRACKACTIVATE $00000411 #define TTM_TRACKPOSITION $00000412 #define TTM_UPDATE $0000041D #define TTM_UPDATETIPTEXT $0000040C #define TTM_UPDATETIPTEXTA $0000040C #define TTM_UPDATETIPTEXTW $00000439 ; #define TTS_ALWAYSTIP $00000001 #define TTS_BALLOON $00000040 #define TTS_NOANIMATE $00000010 #define TTS_NOFADE $00000020 #define TTS_NOPREFIX $00000002 ; #define TTF_ABSOLUTE $00000080 #define TTF_CENTERTIP $00000002 #define TTF_DI_SETITEM $00008000 #define TTF_IDISHWND $00000001 #define TTF_RTLREADING $00000004 #define TTF_SUBCLASS $00000010 #define TTF_TRACK $00000020 #define TTF_TRANSPARENT $00000100 ; #uselib "user32.dll" #func GetWindowRect "GetWindowRect" int,int ; #define ctype MAKELONG(%1,%2) (%1 & $FFFF | %2 << 16) #define ctype RGB(%1,%2,%3) (%3 << 16 | %2 << 8 | %1) ;¥Ð¥ë¡¼¥ó¥Ä¡¼¥ë¥Á¥Ã¥× #define WS_POPUP $80000000 winobj "tooltips_class32", "¥Ä¡¼¥ë¥Á¥Ã¥×£±", 0, WS_POPUP|TTS_NOPREFIX|TTS_BALLOON|TTS_ALWAYSTIP HwndTooltip1 = objinfo_hwnd(stat) winobj "tooltips_class32", "¥Ä¡¼¥ë¥Á¥Ã¥×£²", 0, WS_POPUP|TTS_NOPREFIX|TTS_BALLOON|TTS_ALWAYSTIP HwndTooltip2 = objinfo_hwnd(stat) winobj "tooltips_class32", "¥Ä¡¼¥ë¥Á¥Ã¥×£³", 0, WS_POPUP|TTS_NOPREFIX|TTS_BALLOON|TTS_ALWAYSTIP HwndTooltip3 = objinfo_hwnd(stat) ;input pos 220, 45 objsize 100, 30 input0txt = "input0" input input0txt, 100, 30 HwndInput0 = objinfo_hwnd(stat) logmes strf("HwndInput0: %d", HwndInput0) ;input¤Î±¦Â¦¤Ë¥Ä¡¼¥ë¥Á¥Ã¥×¤ò½Ð¤·¤Æ¤ß¤ë pos 220, 85 objsize 100, 30 input1txt = "input1" input input1txt, 100, 30 HwndInput1 = objinfo_hwnd(stat) logmes strf("HwndInput1: %d", HwndInput1) ; tooltxt1 = "ÆÃÄê°ÌÃ֤˽Ф¹¥Ä¡¼¥ë¥Á¥Ã¥×" tooltxt2 = "¥Þ¥¦¥¹°ÌÃ֤˽Ф¹¥Ä¡¼¥ë¥Á¥Ã¥×" tooltxt3 = "ÀäÂкÂɸ¤Ë½Ð¤¹¥Ä¡¼¥ë¥Á¥Ã¥×" ;¥³¥ó¥È¥í¡¼¥ë¤Î±¦Â¦¤«¤é¥Ä¡¼¥ë¥Á¥Ã¥×¤ò½Ð¤½¤¦¤È¤·¤Æ¤¤¤ë¤Ä¤â¤ê ToolTipAdd TTF_TRACK|TTF_SUBCLASS, HwndInput1, HwndTooltip1, tooltxt1 TooltipPosRight TTF_TRACK|TTF_IDISHWND|TTF_SUBCLASS, HwndInput1, HwndTooltip1, tooltxt1, 10, 10, 200, 40 ;¿§¤ÎÊѹ¹ sendmsg HwndTooltip1, TTM_SETTIPTEXTCOLOR, RGB($FF,$00,$00), 0 sendmsg HwndTooltip1, TTM_SETTIPBKCOLOR, RGB($00,$00,$FF), 0 ; pos 320, 10 mes strf("rect(x1,y1)"); pos 320, 30 mes strf("¡¡¡¡¡Ö¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý") pos 320, 50 mes strf("¡ü¡ã¡¡ËÜÅö¤Ï¡¢¤³¤¦½Ð¤·¤¿¤¤¡£¡¡¡Ã") pos 320, 70 mes strf("¡¡¡¡¨±¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡Ý¡×") pos 320, 90 mes strf("¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡rect(x2,y2)"); ;¥Þ¥¦¥¹ºÂɸ¤«¤éɽ¼¨ ;TTF_TRACK¤ò»ØÄꤷ¤Ê¤±¤ì¤Ð¥Þ¥¦¥¹ºÂɸ¤Ë½Ð¤ë ToolTipAdd TTF_SUBCLASS, hwnd, HwndTooltip2, tooltxt2 TooltipPos TTF_IDISHWND|TTF_SUBCLASS, hwnd, HwndTooltip2, tooltxt2, ginfo_mx, ginfo_my, 200, 40 ;¿§¤ÎÊѹ¹ sendmsg HwndTooltip2, TTM_SETTIPTEXTCOLOR, RGB($FF,$FF,$FF), 0 sendmsg HwndTooltip2, TTM_SETTIPBKCOLOR, RGB($00,$00,$00), 0 ;;TTF_ABSOLUTE¤ÇºÂɸ¤ò»ØÄꤷ¤Æɽ¼¨¤µ¤»¤è¤¦¤È¤·¤Æ¤¤¤ë¤Ä¤â¤ê balloon_x1 = 300 balloon_y1 = 100 balloon_x2 = 500 balloon_y2 = 140 ToolTipAddRect TTF_ABSOLUTE|TTF_TRACK|TTF_SUBCLASS, HwndInput, HwndTooltip3, tooltxt3, balloon_x1, balloon_y1, balloon_x2, balloon_y2 TooltipPos TTF_ABSOLUTE|TTF_TRACK|TTF_IDISHWND|TTF_SUBCLASS, HwndInput, HwndTooltip3, tooltxt3, balloon_x1, balloon_y1, balloon_x2, balloon_y2 stop ;; #deffunc TooltipPos int TTF, int objhwnd, int toolhwnd, var tooltext, int x1, int y1, int x2, int y2 logmes strf("TooltipPos(); objhwnd: %d", objhwnd) dim rect, 4 GetWindowRect objhwnd, varptr(rect) ;ɽ¼¨°ÌÃÖ¤Îrect»ØÄê TOOLINFO = 40, TTF, objhwnd, 0, x1, y1, x2, y2, 0, varptr(tooltext) ;¿á¤½Ð¤·´ð½àÅÀ¤òÄ´À° ;-20,+20¤Ç¿á¤½Ð¤·´ð½àÅÀ¤Èɽ¼¨°ÌÃ֤Ȥε÷Î¥¤ò¼è¤ë sendmsg toolhwnd, TTM_TRACKPOSITION, 0, MAKELONG(x1-20, y1+20) ;ɽ¼¨ON sendmsg toolhwnd, TTM_TRACKACTIVATE, 1, varptr(TOOLINFO) return ;; #deffunc TooltipPosRight int TTF, int objhwnd, int toolhwnd, var tooltext, int toolx, int tooly, int toolw, int toolh dim rect, 4 GetWindowRect objhwnd, varptr(rect) ;ɽ¼¨°ÌÃÖ¤Îrect»ØÄê ;¾¯¤·´ð½àÅÀ¤«¤éµ÷Î¥¤ò¤¢¤±¤ë TOOLINFO = 40, TTF, objhwnd, 0, rect.2 + toolx, rect.1 - tooly, rect.0 + toolw, rect.1 + toolh, 0, varptr(tooltext) ;objhwnd¤Î±¦Â¦¤Î¿¿¤óÃæpos¤«¤éɽ¼¨ == ¿á¤½Ð¤·¤Î´ð½àÅÀ¤Ç¤¢¤ëºÂɸ¤ò¸ÇÄê balloon_x = rect.2 balloon_y = rect.1 + (rect.3 - rect.1)/2 sendmsg toolhwnd, TTM_TRACKPOSITION, 0, MAKELONG(balloon_x, balloon_y) ;ɽ¼¨ON sendmsg toolhwnd, TTM_TRACKACTIVATE, 1, varptr(TOOLINFO) return ;;¥Ä¡¼¥ë¥Á¥Ã¥×¤òºîÀ® #deffunc ToolTipAdd int TTF, int objhwnd, int toolhwnd, var tooltext TOOLINFO = 40, TTF, objhwnd, 0, 0, 0, 0, 0, 0, varptr(tooltext) sendmsg toolhwnd, TTM_ADDTOOL, 0, varptr(TOOLINFO) return ;;¥Ä¡¼¥ë¥Á¥Ã¥×¤òºîÀ®¡õ°ÌÃ֤ȥµ¥¤¥º»ØÄê #deffunc ToolTipAddRect int TTF, int objhwnd, int toolhwnd, var tooltext, int x1, int y1, int x2, int y2 TOOLINFO = 40, TTF, objhwnd, 0, x1, y1, x2, y2, 0, varptr(tooltext) sendmsg toolhwnd, TTM_ADDTOOL, 0, varptr(TOOLINFO) return