English
Source / code snippets

On Button react without which Variablennamen To kennen

 

Georg
Teles
good evening,

enclosed one View source, with the one the clicking the Buttons reacted without which Variablennamen To kennen. the Workarea arose, there one with designed Programs Buttons at Start ToGo define must, so The absoluten Variablennamen not famous or first not at all definiert are.
CLS
Create("Button",%hWNd,"Button 1",300,5,200,40)
Create("Button",%hWNd,"Button 2",300,50,200,40)
Create("Button",%hWNd,"Button 3",300,95,200,40)
var active_button% = 0
' 1. alternative if klicked

While 1=1

    WaitInput
    ' SKControl Buttons = 272 instead of 78 !
    ' SKControl rather 2. ALternative using (Focus) there Click not functions !

    If ((%Message = 32) OR (%Message = 78))

        active_button% = %GetFocus

        If Clicked(active_button%)

            Print "Handle: ";active_button%;" Text: ";GetText$(active_button%)
            SetFocus(%hWnd)' important whom Fokus zurückzusetzen

        EndIf

        active_button% = 0

    EndIf

EndWhile

END
' 2. alternative already with FOCUS

While 1=1

    WaitInput
    ' SKControl Buttons = 272 instead of 78 !

    If ((%Message = 32) OR (%Message = 78))

        active_button% = %GetFocus
        Print "Handle: ";active_button%;" Text: ";GetText$(active_button%)
        SetFocus(%hWnd)' important whom Fokus zurückzusetzen
        active_button% = 0

    EndIf

EndWhile


Regards
 
TC-Programming [...] 
XProfan 8.0 - 10.0 - X2 - X3 - X4

06/11/20  
 




Jörg
Sellmeyer
I collecting with such opportunities The Handles the begot Buttons in of/ one list and can then with %getfocus search, which the are.
with GetHandle(%ItemID) come You too very well on the jeweilige lever.
 
XProfan X4
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
06/11/20  
 




Georg
Teles
Hi, quasi in a list collect and evaluate

in my concrete drop do I the too, at create collecting I The Handles in a Grid where to that ButtonHandle yet the suitable Program, the launched becomes as well as which way and Zusatzparameter come.

The Auswertung the variables spar I me and greife directly the lever How You

Regards
 
XProfan X2
TC-Programming [...] 
XProfan 8.0 - 10.0 - X2 - X3 - X4

06/12/20  
 



And then there yet gwl_userData and gwl_wndProc!
 
10/30/20  
 




Michael
W.
from the nothing upcoming?
How comes one there heran.
 
Alle Sprachen
System: Windows 8/10, XProfan X4
Programmieren, das spannendste Detektivspiel der Welt.
10/31/20  
 



Perhaps have I the trouble wrong understood.

what I meant was sooner, that one one Control z.B. with gwl_userData likewise with Information slip can The to %getFocus read go could.
 
10/31/20  
 




Michael
W.
Ah, ok.

P.s.:
gwl_userData and gwl_wndProc
supplying Yes a true repository on ideas.
Buttons in Taskbar, Subclassing, ...

is for later note...
thanks
 
System: Windows 8/10, XProfan X4
Programmieren, das spannendste Detektivspiel der Welt.
10/31/20  
 



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

5.395 Views

Untitledvor 0 min.
Georg Teles08/29/24
Stephan Sonneborn03/21/22
ByteAttack01/21/21
p.specht01/04/21
More...

Themeninformationen



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