English
Source / code snippets

Checkbox Window Haptfenster Verschiebbares

 

Source watts on the 15.07.2007 from the MMJ-Quellcodesammlung (Dietmar horn) in The Babyklappe on XProfan.Com stored:
Haptfenster: verschiebbares Window with CheckBox
def Capture Release(0) !USER32,Capture Release
def RoundRectRgn(6) !GDI32,CreateRoundRectRgn
def SetWindowRgn(3) !USER32,SetWindowRgn
Declare end%,Fenstert$,Ende&,CB&,Txt$,hFont%,Text$
Windowstyle 112
window 200,200 - 583,397
loadbmp _ground.bmp ,0,0;0** way adjust
SetWindowRgn(%hwnd, RoundRectRgn(0,0,width(%hwnd),height(%hwnd),18,18), 1)

Proc Controls

    Fenstert$ = here comes the Fenstertietel there
    Text Color RGB($FF, $00, $00),-1** Blauer Text
    USEFONT Arial,22,0,1,1,0** type
    DrawText 140,15,Fenstert$
    hFont% = @Create(Font,MS Sans Serif,13,0,0,0,0)** type
    Ende&=CREATE(BUTTON,%HWND,end,450,350,90,22)
    SetFont Ende&,hFont%** type for Button
    Text$ = I be the Checkbox Text
    CB&= CREATE(Checkbox,%HWND,,30,100,12,12)
    Text Color RGB($00,$00,$FF),-1** Blauer Text
    USEFONT MS Sans Serif,13,0,0,0,0** type
    DrawText 50,100,Text$

Endproc

Controls
** Hauptschleife
SETFOCUS(%HWND)

WHILENOT ENDE%

    WAITINPUT

    If %KEY=2

        ENDE%= 1

    ELSEIF %KEY=4

    ElseIf Equ(%message,$201) WM_LButtonDown

        UseCursor 5
        SendMessage(%hwnd,$112,$F012,0)
         $112: WM_SYSCOMMAND
         $F012: Undokumentierter worth: is rather as $0F010 (SC_MOVE)
        Capture Release() functions too without, is but rather so
        UseCursor 0

    ElseIf Equ(%message,$204) WM_RButtonDown

        Let end%=1

    ELSEIF GETFOCUS(Ende&)BUTTON

        ENDE%=1

    EndIf

Wend

End
 
07/15/07  
 



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

1.783 Views

Untitledvor 0 min.
Uwe Lang12/18/19

Themeninformationen

this Topic has 1 subscriber:

unbekannt (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