| |
|
|
![ByteAttack: 11.09.2014](.././../../i/a/285.gif) ByteAttack | Hallo, irgendwie muss ich einen Denkfehler haben oder so??? Ich möchte wissen, ob ein ColorComboEditBox den Focus hat... Laut Hilfedatei sollte es mit GW_CHILD funktionieren. Also entweder mach ich was falsch, oder wünsche mir weniger Demenz.... Wenn jemand eine Idee hat, so möge er sie mir bitte kundtun ![](.././../../i/s/__upl_ext_1148399572.gif) KompilierenMarkierenSeparierenUSERMESSAGES 16
DEF GetWindow(2) !"USER32","GetWindow"
Def GetSysColor(1) !"USER32","GetSysColor"
$I SKControl.inc
declare GW_CHILD&,string#,skdll&,ende%,EditBox&,Zeile%,GWHandle&
GW_CHILD& = 5
dim string#,255
skdll&=UseDll("SKControl.dll")
SKCtrl_InitDll()
WindowStyle 24
Window (%maxX/2)-320,((%maxY/2)-240)-640,480
Windowtitle "SKControl.DLL - Handles"
Set("TrueColor",1)
Cls GetSysColor(15)
EditBox&=SKCtrl_CreateColorComboEditBox(%hwnd,0,RGB(255,255,0),RGB(0,0,125),300,10,200,100,%hInstance)
ClearList
AddString "Eintrag 1"
AddString "Eintrag 2"
MoveListToHandle(EditBox&)
Zeile%=SelectString(EditBox&,-1,"Eintrag 1")
GWHandle&=GetWindow(EditBox&,GW_CHILD&)
print "GW_CHILD :"+Str$(GWHandle&)+" - "+GetString$(GWHandle&,Zeile%)+"\n"
print "EditBox& :"+Str$(EditBox&)+" - "+GetString$(EditBox&,Zeile%)+"\n"
WhileNot ende%
WaitInput
Case %Umessage=16 : ende%=1
Locate 5,0
print "%GetFocus: "+Str$(%GetFocus)
If GetFocus(GWHandle&)
print "GWHandle"
ElseIf GetFocus(EditBox&)
print "MainHandle"
EndIf
EndWhile
dispose string#
SKCtrl_DeInitDll()
FreeDll skdll&
end
|
|
|
| |
|
|
|
![iF: 11.09.2014](.././../../i/a/1.gif) | Habs jetzt nicht auf dem Schirm aber warum immer dieses:
WhileNot ende%
WaitInput Case %Umessage=16 : ende%=1
statt do{ oder while 1 und Case %Umessage=16 : break ? |
|
|
| |
|
|
|
![ByteAttack: 11.09.2014](.././../../i/a/285.gif) ByteAttack | iF (11.09.14)
Habs jetzt nicht auf dem Schirm aber warum immer dieses:
WhileNot ende%
WaitInput Case %Umessage=16 : ende%=1
statt do{ oder while 1 und Case %Umessage=16 : break ?
Ist jetzt genau, dass was ich wissen wollte.... ![](.././../../i/s/zustimm.gif) |
|
|
| |
|
|
|
![iF: 11.09.2014](.././../../i/a/1.gif) | Jaja, witzig, sorry. ![](.././../../i/s/-rolleyes.png) |
|
|
| |
|
|