| |
|
|
- Page 1 - |
|
Julian Schmidt | Hi, i'd gladly a Tooltip on a Control enable or. deaktivieren. yet have I it erfolglos over Showwindow, EnableWindow & Settext probiert. How can the manage (except of Delete\Wiedererstellen the Tooltips)?
CLS
Var static&=Create("Text",%hwnd,"",10,10,195,20)
Var button&=Create("Button",%hwnd,"Change Status",10,40,195,30)
Var ttip&=Create("Tooltip",%hwnd,%hwnd,"Tooltip-Text")
Var status&=1
Settext static&,Str $(status&)+" = Tooltip becomes "+If(status&=1,"ein","aus")+"geblendet"
WhileNot iskey(27)
Waitinput
If getfocus(button&)
status&=hardship(status&)
'Showwindow(ttip&,status&)
'EnableWindow(ttip&,status&)
SetText ttip&, If(status&=1,%hwnd,0),If(status&=1,%hwnd,0), "Tooltip-Text"
Settext static&,Str $(status&)+" = Tooltip becomes "+If(status&=1,"ein","aus")+"geblendet"
Setfocus(%hwnd)
Endif
EndWhile
LG
Julian57 |
|
|
| |
|
|
|
« this Posting watts as Solution marked. » |
|
Jörg Sellmeyer |
CLS
Var static&=Create("Text",%hwnd,"",10,10,195,20)
Var button&=Create("Button",%hwnd,"Change Status",10,40,195,30)
Var ttip&=Create("Tooltip",%hwnd,%hwnd,"Tooltip-Text")
Var status&=1
Settext static&,Str $(status&)+" = Tooltip becomes "+If(status&=1,"ein","aus")+"geblendet"
WhileNot iskey(27)
Waitinput
If Clicked(button&)
status&=hardship(status&)
SetText ttip&,%hwnd,%hwnd,If(status&, "Tooltip-Text","")
Settext static&,Str $(status&)+" = Tooltip becomes "+If(status&=1,"ein","aus")+"geblendet"
Setfocus(%hwnd)
Endif
EndWhile
|
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 07/09/12 ▲ |
|
|
|
|
|
Julian Schmidt | |
|
| |
|
|