Español
Fuente/ Codesnippets

Sprechblasen Toolbar Tooltip

 

Jac
de
Lad
¡Hola.

Como Yo por API una Toolbar erzeuge, el como Tooltips Sprechblasen ha, weiß Yo, aber weiß alguien, Yo una Toolbar, el con Crear(Toolbar producido wurde, Sprechblasen zuweisen kann?

Jac
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
28.01.2008  
 




Jörg
Sellmeyer
Como hänge Yo mich veces dran y frage, si alguien weiß, cómo el Tooltips el individual Buttons verändern kann. El Button haben zwar una ID, aber Gethandle daruf angewendet son sólo 0 zurück.
Lo son el Message TTM_UPDATETIPTEXT, el wohl genau dafür pensamiento es. Für normale Buttons funktioniert lo en efecto, aber como es con Toolbarbuttons?
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
10.08.2008  
 




Andreas
Miethe



KompilierenMarcaSeparación
Declare hToolBar&, hBild&, ende%
Cls
hToolbar& = @Create("TOOLBAR", %hWnd, 0, 0, 32, 2000, 1)
Toolbar("AddButton", hToolbar&, 1, 201, "TipStyle-Bubble")
Toolbar("AddButton", hToolbar&, 2, 202, "Tiptext")
Toolbar("AddButton", hToolbar&, 3, 203, "ENDE")

WhileNot ende%

    WaitInput

    If %KEY = 2

        ende% = 1

    ElseIf %KEY = 4

        SetWindowPos hToolbar& = 0, 0 - 0, 0; 0

    ElseIf @MenuItem(201)

        SetStyle sendmessage(hToolbar&,1059,0,0),Getstyle(sendmessage(hToolbar&,1059,0,0)) | $40

    ElseIf @MenuItem(202)

        SetTipText(sendmessage(hToolbar&,1059,0,0),hToolbar&,202,"ups, ich bin geändert worden "+Time$(0)+":"+left$(Time$(1),2))

    ElseIf @MenuItem(203)

        ende% = 1

    EndIf

EndWhile

End

Proc SetTipText

    Parameters TipCtl&,Owner&,Ctl&,NewText$
    Declare TButton#
    DIM TButton#,40
    LONG TButton#,0=40
    LONG TButton#,4=$0
    LONG TButton#,8=Owner&
    LONG TButton#,12=Ctl&*-1
    LONG TButton#,36=addr(NewText$)
    Sendmessage(TipCtl&,1036,0,TButton#)TTM_UPDATETIPTEXT
    Dispose TButton#

ENDPROC

 
Gruss
Andreas
________ ________ ________ ________ _
Profan 3.3 - XProfanX2
Win 95,98,ME,2000,XP,Vista - Win 7 32 / 64 Bit
ASUS X93S - Intel Core I7-NVIDIA GForce 540M 8GB Arbeitsspeicher
Homepage :  [...] 
14.08.2008  
 




Jörg
Sellmeyer
Ah! Der Andreas - danke vielmals!

Und sólo el Vollstädigkeit halber:

1059 = ~TB_GETTOOLTIPS
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
14.08.2008  
 



[offtopic]@Jörg: Tip: Como el Hilo una para Titel passendes Codesnippet aufzeigt (danke Andreas) Yo esta a Codesnippets movido y una [X] Blindkopie bajo "Programmierung/Allgemein/Einsteigerfragen" belassen.[/offtopic]
 
15.08.2008  
 



Zum Quelltext


Título del Tema, max. 100 Signo.
 

Systemprofile:

Kein Systemprofil creado. [anlegen]

XProfan:

 Contribución  Font  Smilies  ▼ 

Bitte registro en una Contribución a verfassen.
 

Tema opciones

7.526 Views

Untitledvor 0 min.
Gast.0815 vor 27 Tagen
RudiB.09.04.2022
Langer19.12.2021
Sven Bader07.08.2021
Más...

Themeninformationen



Admins  |  AGB  |  Applications  |  Autores  |  Chat  |  Política de Privacidad  |  Descargar  |  Entrance  |  Ayuda  |  Merchantportal  |  Pie de imprenta  |  Mart  |  Interfaces  |  SDK  |  Services  |  Juegos  |  Búsqueda  |  Support

Ein Projekt aller XProfan, el lo son!


Mi XProfan
Privado Noticias
Eigenes Ablageforum
Temas-Merkliste
Eigene Beiträge
Eigene Temas
Zwischenablage
Cancelar
 Deutsch English Français Español Italia
Traducciones

Política de Privacidad


Wir uso Cookies sólo como Session-Cookies wegen el technischen Notwendigkeit y en uns hay no Cookies de Drittanbietern.

Wenn du hier en unsere Webseite klickst oder navigierst, stimmst du unserer Erfassung de Informationen en unseren Cookies en XProfan.Net a.

Weitere Informationen a unseren Cookies y dazu, como du el Kontrolle darüber behältst, findest du en unserer nachfolgenden Datenschutzerklärung.


einverstandenDatenschutzerklärung
Yo möchte no Cookie