English
Source / code snippets

Icon Titelhervorhebung Tooltip

 

Jörg
Sellmeyer

CompileMarkSeparation
Tooltip mit Icon von Rolf Koch
Def Loadimage(6) !"USER32.DLL","LoadImageA"
Def Destroyicon(1) !"USER32.DLL","DestroyIcon"
Declare Font&,icon1&
Declare Dll&
Declare Icon&
Declare Name$
Declare Button&
Declare Tooltip&

PROC ICONPIC

    Declare h&,abx#,statbild&
    Parameters bild$,mausx%,mausy%,breitobj&,hochobj&,handl&
    Dim abx#,Add(Len(bild$),1)
    String abx#,0=bild$
    Let h&=LoadImage(%hinstance,abx#,0,breitobj&,hochobj&,$50)
    Let statbild&=@Control("STATIC","",$05000010E,mausx%,mausy%,breitobj&,hochobj&,handl&,$7918,%hinstance)
    SendMessage(statbild&,$172,0,h&)
    DISPOSE abx#
    Return statbild&

ENDPROC

Font& = @Create("FONT","ARIAL",24,0,0,0,0)
Cls
Dll& = @Usedll("SHELL32.DLL")
Name$ = "#20" + @Chr$(0)
Icon1& = Loadimage(Dll&,@Addr(Name$),1,48,48,$2000)
Button& = @Control("BUTTON","",$5000804A,100,100,64,64,%Hwnd,100,%Hinstance,$10000)
@Sendmessage(Button&,$00F7,1,Icon1&)
Tooltip& = @Create("Tooltip",%Hwnd,Button&,"Wieso geht es nicht?")
@Sendmessage(Tooltip&,$30,Font&,0)WM_SetFont
Name$ = "großes Icon ?" + @Chr$(0)
@Sendmessage(Tooltip&,$0403,$2,15000)TTM_SetDelayTime ~TTDT_AutoPop
ICONPIC "Pic1.bmp",2,2,30,30,Tooltip&
Pic1.BMP mit gleichem Hintergrund wie Tooltip am besten
ICON&=&(0)
@Sendmessage(Tooltip&,$0420,Icon&,@Addr(Name$))TTM_SetTitle
@Setfocus(%Hwnd)

While 1

    Waitinput

Wend

Deleteobject Font&
Destroyicon(Icon&)
Freedll Dll&
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/16/08  
 




Jörg
Sellmeyer
The values for Icon& can here too:
TTI_NONE = 0;
TTI_INFO = 1;
TTI_WARNING = 2;
TTI_ERROR = 3;

his
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/16/08  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.545 Views

Untitledvor 0 min.
RudiB.08/15/22
Frank04/16/21
AndreasS11/27/18
Jörg Sellmeyer06/23/18
More...

Themeninformationen

this Topic has 1 subscriber:

Jörg Sellmeyer (2x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie