English
Forum

Toggle Button of Program set

 

Web
Scanner
The Toggel - Button - function have I in the XProfan 10 Help found.
Can whom Button too programmässig beforehand reindrücken?
I Have 8 Buttons on the Mainwindow, The I correspond to Edit wants.
should but not always any, separate a couple pressed go
CompileMarkSeparation
-Begin-----------------------------------------------------------------
-HeaderFiles---------------------------------------------------------
 $H Messages.ph
 $H Windows.ph
 $H CommCtrl.ph
-Constants-----------------------------------------------------------
Def &False 0
Def &True 1
-Variables-----------------------------------------------------------
Declare hWin&, hButton&
Declare Ende&
-Function ToggleButton-----------------------------------------------

Proc ToggleButton

    Parameters hButton&
    Declare btnStyle&, Result&
    btnStyle& = ~GetWindowLong(hButton&, ~GWL_STYLE)
    Result& = ~SetWindowLong(hButton&, ~GWL_STYLE, btnStyle& | $1003)

    If Result& = btnStyle&

        Return &True

    Else

        Return &False

    EndIf

EndProc

-Main----------------------------------------------------------------
hWin& = @Create("Window", %hWnd, "Bild im Button", 0, 0, 640, 480)
hButton& = @Create("Button", hWin&, "", 10, 10, 250, 100)
ToggleButton(hButton&)
-Loop--------------------------------------------------------------
Clear Ende&

Repeat

    WaitInput

    If %Key = 2

        Ende& = &True

    EndIf

Until Ende&

-End-------------------------------------------------------------------
./../funcion-referencias/XProfan/end/'>End

Regards

Web
 
Xprofan X3.1
Win7 auf AMDX6
08/01/08  
 




Jörg
Sellmeyer
a couple could difficult go. If only of/ one in a group his should, versuchs time with of/ one Groupbox drumherum.
otherwise must You to each Click whom status the Buttons inquire and properly settle. the goes even integrally simply with GetCheck/SetCheck.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/01/08  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.235 Views

Untitledvor 0 min.
Rainer Hoefs04/11/23
Pedro Miguel09/14/12
Julian Schmidt02/01/12
Andreas Miethe04/28/11

Themeninformationen

this Topic has 2 subscriber:

Jörg Sellmeyer (1x)
Web Scanner (1x)


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