English
Source / code snippets

Control tab tab Vertikal

 
Author: Stefan quick

Hello Community,
here a Possibility, The tab (TabCtrl) left Mouse and Sprite and under horizontal anzuordnen.
Greeting
Stefan
CompileMarkSeparation
-Begin----------------------------------------------------------- ------
 $H Windows.ph
 $H CommCtrl.ph
Def &False 0
Def &True 1
Declare hWin&, hTab&, Quit&, ActiveTab&
hWin& = @Create("Window", %hWnd, "TabStrip", 0, 0, 320, 225)

If hWin&

    hTab& = @Create("TabCtrl", hWin&, "1", 10, 10, 300, 175)
    @InsertTab(hTab&, 99, "2")
    @InsertTab(hTab&, 99, "3")
    -Anordnung unten---------------------------------------------------
    ~SetWindowLong(hTab&, ~GWL_STYLE,
    ~GetWindowLong(hTab&, ~GWL_STYLE) | ~TCS_BOTTOM)
    -Anordnung links---------------------------------------------------
    ~SetWindowLong(hTab&, ~GWL_STYLE,
    ~GetWindowLong(hTab&, ~GWL_STYLE) | ~TCS_VERTICAL)
    -Main--------------------------------------------------------------
    Quit& = &False

    Repeat

        ActiveTab& = @GetActiveTab(hTab&)
        WaitInput

        If %Key = 2

            Quit& = &True

        ElseIf ActiveTab& <> @GetActiveTab(hTab&)

            If @GetActiveTab(hTab&) = 0

                @MessageBox("1", "TabChanged", 0)

            ElseIf @GetActiveTab(hTab&) = 1

                @MessageBox("2", "TabChanged", 0)

            ElseIf @GetActiveTab(hTab&) = 2

                @MessageBox("3", "TabChanged", 0)

            EndIf

        EndIf

    Until Quit& = &True

EndIf

-End-------------------------------------------------------------------
/../../function-references/XProfan/end/'>End
 
12/19/05  
 



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.493 Views

Themeninformationen

this Topic has 1 subscriber:

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