English
SKControl.DLL

Control request with GetFocus

 

ByteAttack
Hi,
somehow must I a fallacy having or so???
i'd like to know, whether a ColorComboEditBox whom Focus has...
loudly Helpfile ought to it with GW_CHILD functions.
means either mach I what wrong, or hope less Demenz....
If someone a idea has, so möge it tappt im dunkeln me Please kundtun
CompileMarkSeparation
USERMESSAGES 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
 
09/11/14  
 



Habs now not the screen but Why always this:

WhileNot end%

WaitInput
Case %Umessage=16 : end%=1

instead of do{ or while 1 and Case %Umessage=16 : break ?
 
09/11/14  
 




ByteAttack
iF (11.09.14)

Habs now not the screen but Why always this:

WhileNot end%

WaitInput
Case %Umessage=16 : end%=1

instead of do{ or while 1 and Case %Umessage=16 : break ?


is now very, that I know wished....
 
09/11/14  
 



Jaja, witty, sorry.
 
09/11/14  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.870 Views

Untitledvor 0 min.
Sven Bader01/27/23
Stephan Sonneborn11/20/15
ByteAttack08/06/15
Sascha Haak01/20/15
More...

Themeninformationen

this Topic has 2 subscriber:

iF (2x)
ByteAttack (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