English
Source / code snippets

Checkboxauswahlkasten Groupbox

 

Julian
Schmidt

CompileMarkSeparation
Windowstyle 24
Windowtitle "Beispiel zum Erstellen einer Groupbox mit Checkbox"
Window 100,200-250,180
cls External("USER32","GetSysColor",15)
var gb&=Create("GroupBox",%hwnd,"",20,20,width(%hwnd)-40,height(%hwnd)-40)
Create("CheckBox",gb&,"Groupbox Text",10,3,115,18)

while 1

End
/a>
 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
08/16/11  
 




RudiB.
and there goes yet More....ifs time tight becomes on-screen, then even The Controls ineinander pack.
Windowstyle 24
Windowtitle "Beispiel to that create of/ one Groupbox with Checkbox"
Window 100,200-450,280
Declare x%,text&
x%=1
cls External("USER32","GetSysColor",15)
'Checkbox in Groupbox
var gb&=Create("GroupBox",%hwnd,"",20,20,width(%hwnd)-40,height(%hwnd)-40)
Create("CheckBox",gb&,"Group box Text",10,3,115,18)
'Button in Button
text&=Create("Text",%hwnd,"Button in Button.. the small Button exits Program,40,80,380,18)
Var test&=Create("Button",%hwnd,"      Test",100,100,160,30)
Var a&=Create("Button",test&,"1",10,4,22,22)
' Edit in Button
text&=Create("Text",%hwnd,"Checkbox in Edit and Edit in Button..goes....",40,130,380,18)
Var Test2&=Create("Button",%hwnd,"          Test 2",100,150,160,30)
Var b&=Create("Edit",Test2&,"An",5,4,50,22)
Var c&=Create("CHeckbox",b&,"",33,1,16,18)
' Button in Edit
text&=Create("Text",%hwnd,"...and Button in Edit goes too, but not so calm...",40,180,380,18)
Var edit&=Create("Edit",%hwnd,"Der Test",100,200,160,24)
Var d&=Create("Button",edit&,"HiHi",100,0,40,20)

while 1

    If x%>99

        x%=1
        settext a&,st$(x%)
        setfocus(%hwnd)

    Endif

    If Getfocus(a&)

        break

    EndIf

    If Getfocus(test&)

        settext b&,"An"
        setcheck c&,0
        inc x%
        settext a&,st$(x%)
        setfocus(%hwnd)

    EndIf

    If Getfocus(Test2&)

        If gettext$(b&)="An"

            settext b&,"Aus"
            setcheck c&,1

        EndIf

    EndIf

    If getfocus(d&)

        inc x%,10
        settext a&,st$(x%)
        setfocus(%hwnd)

    Endif

Endwhile


what there well yet so everything functions ????
 
XProfan X4
Xprofan X4
Rudolf Beske / München

Hardware: NB Intel I9 - 16GByte RAM
04/26/21  
 



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

2.489 Views

Untitledvor 0 min.
Gast.081510/03/24
Member 862464105/12/24
N.Art07/21/22
Ernst07/21/21
More...

Themeninformationen

this Topic has 2 subscriber:

RudiB. (1x)
Julian Schmidt (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