English
Source / code snippets

Profan Tooltips XProfan

 

Alfred
Wagner
One chance has helped
CompileMarkSeparation
 $P+
SetErrorLevel 0
 $I E:PROGRAMMETOOLSXPROFAN 8.0LIBTOOLTIP.INC Für Tooltips
*** WICHTIG ! Pfad der TOOLTIP.INC anpassen ,sonst gehts nicht
 $H windows.ph *** wegen Neustart Button
DEF GETSYSCOLOR(1) !USER32,GetSysColor
DECLARE BUTTON1&,CHECKBOX1&,BUTTON2&,hUser&,Funk&
WINDOWSTYLE 63
WINDOWTITLE Tooltipps
WINDOW 0100,150-300,100
SETTRUECOLOR 1
DECLARE ENDE%
CLS GETSYSCOLOR(15)
USEFONT MS Sans Serif,13,0,0,0,0
SETDIALOGFONT 1
BUTTON1& = CREATE(BUTTON,%HWND,Neustart,0012,0025,0070,0025)
BUTTON2& = CREATE(BUTTON,%HWND,Hilfe,0100,0025,0070,0025)
CHECKBOX1& = CREATE(CHECKBOX,%HWND,Beenden,0200,0035,0065,0015)
SETTOOLTIP %HWND,CHECKBOX1&,Windows Neustart ...,RGB(255,255,0),RGB(0,0,0),0,1000 *** die ,0, wäre normal !
Die Tooltipps funktionieren nur mit oberiger Zeile.
SETTOOLTIP %HWND,BUTTON1&,Windows Neustart ...,RGB(255,255,0),RGB(0,0,0),2,1000 *** die ,2, machts anscheinend aus
SETTOOLTIP %HWND,BUTTON2&,Hilfe zum Programm ...,RGB(255,255,0),RGB(0,0,0),2,1000
SETTOOLTIP %HWND,CHECKBOX1&,Beenden ...,RGB(255,255,0),RGB(0,0,0),2,1000
SENDKEY(%HWND,1)Wegen Tooltip
SETFOCUS(%HWND)

WHILENOT ENDE%

    WAITINPUT

    If @EQU(%KEY,2)

        LET ENDE%= 1

    ELSEIF @EQU(%KEY,4)

    ELSEIF GETFOCUS(BUTTON1&) *** Neustart BUTTON

        hUser& = UseDLL(Shell32.DLL)
        funk&  = ~GetProcAddress(hUser&,60)    Windows beenden
        call(Funk&,%HWnd)
        Freedll hUser& *** Dll freigeben

    ELSEIF GETFOCUS(CHECKBOX1&) mit CHECKBOX beenden (geht auch)

        ENDE%=1

    ELSEIF GETFOCUS(BUTTON2&) *** Hilfe BUTTON

        @MessageBox(Hilfe nicht vorhanden !
        Soll nur eine Tooltip Demo sein .,Info,64)***
        = Zeilen überspringen

    ENDIF

../../function-references/XProfan/wend/'>WEND


Regards
Alfred
 
WinXP-Home ,XProfan10

Alfreds ... Freeware :  [...] 
06/28/05  
 



lay You The Inc too with with - so mans same testing can and damits complete is?

salvo.
 
06/28/05  
 




Alfred
Wagner
here The INC.
I hope that I so no Problems get is with ROC thereby in the LIB Ordner
if still delete Please
CompileMarkSeparation
Code von Sven Schmidts - THX!
Declare ICC_Struct#
Declare ToolinfoButton#
Declare RKText1#
declare ButtonTip&,SA%,Delay%

Proc SetToolTip

    Parameters rkhwnd&,Handle&,RKText$,hwf&,txtf&,rkstil&,d%

    if equ(rkstil&,0)

        Let ButtonTip&=@Control(tooltips_class32,,$D000000,0,0,0,0,rkhwnd&,0,%hinstance)

    elseif equ(rkstil&,1)

        Let ButtonTip&=@Control(tooltips_class32,,$D000040,0,0,0,0,rkhwnd&,0,%hinstance)

    endif

    sendmessage(ButtonTip&,1043,hwf&,0)
    sendmessage(ButtonTip&,1044,txtf&,0)
    @SendMessage(ButtonTip&,1048,0,500)
    @SendMessage(ButtonTip&,1027,3,d%)
    DELETEOBJECT Sa%
    Dim ToolinfoButton#,40
    Dim RKText1#,500
    String RKText1#,0=RKText$
    LONG ToolinfoButton#,0=40Strukturgroesse
    LONG ToolinfoButton#,4=$11Flags
    LONG ToolinfoButton#,8=Handle&
    LONG ToolinfoButton#,12=Handle&
    LONG ToolinfoButton#,36=RKText1#Text
    @SendMessage(ButtonTip&,$0404,0,ToolInfoButton#)
    Dispose ToolinfoButton#
    Dispose RKText1#
    Return Buttontip&

ENDPROC


__________________________________________________________
Regards
Alfred
 
WinXP-Home ,XProfan10

Alfreds ... Freeware :  [...] 
06/28/05  
 



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

4.302 Views

Untitledvor 0 min.
H.Brill12/30/18
AndreasS12/30/18
PETER195607/18/18
Rainer Hoefs03/04/18
More...

Themeninformationen

this Topic has 2 subscriber:

Alfred Wagner (2x)
iF (1x)


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