English
Forum

TabCtrl and HScroll

 

Thomas
Zielinski
hello everyone together,
During low of my Bastelein, pushed I on a hässlichen Anzeigefehler. If itself on one TabCtrl one HScroll (vlt. too VScroll was To rotten to that debug) and one whom small Schieberegler with the mouse shift, so vanish any tab the TabCtrl. too shining me the at all everything neugezeichnet becomes, what itself on the TabCtrl brfindet. Zumindist flackert it short.
Getestet under Win7 HomePremium 64bit with XProfan 11.2
How schaff I the whole remedy?
CompileMarkSeparation
 {$iq}
cls
var tab& = Create("TabCtrl",%HWnd,"eins",0,0,300,150)
InsertTab(tab&, 1, "zwei")
InsertTab(tab&, 2, "drei")
var hscroll& = Create("HScroll",tab&,"",20,100,100,20)
var ende& = Create("Button",%HWnd,"Ende",20,200,100,25)
var e% = 0

While e% = 0

    WaitInput

    If GetFocus(ende&)

        e% = 1

    EndIf

EndWhile

End

Greeting Thomas
 
XProfan X4; Win10 x64
Der Kuchen ist eine lüge!
06/22/10  
 




Thomas
Zielinski
Nachtrag:
Have a little bit rumprobiert, and VScroll happens me the whole not.
Greeting Thomas
 
XProfan X4; Win10 x64
Der Kuchen ist eine lüge!
06/22/10  
 




Dieter
Zornow
the HScroll reacted indeed not correctly., that is it jumping by me always immediate into Ausgangsstellung back.
If you it on %Hwnd setting is everything ok
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
06/22/10  
 



Hello Thomas, circa Window/ dialogs etc scrollable To make, simply The ScrollControl-function  [...]  use.
 
06/22/10  
 




Thomas
Freier
it erschließt itself me simply not:
what should the hscroll& = Create("HScroll",tab &,"",20,100,100, 20) on the Create("TabCtrl",%HW nd,"eins",0,0,300,15 0) ?
hscroll& would then on all TABs his.
 
Gruß Thomas
Windows XP SP2, XProfan X2
06/22/10  
 




Thomas
Zielinski
Hello Dieter,
indeed this is me noticed having it only not erwähnt.
well then To iF:
I must confess that I simply, crept and ergreifend To thick be around the anzuwenden

but if need be building I me my own TabCtrl. or what ähnliches

and To letzt Thomas:
I want me The request in the minimalbsp just save...
 
XProfan X4; Win10 x64
Der Kuchen ist eine lüge!
06/22/10  
 




Thomas
Freier
so far me famous, GEHTS not directly on the TAB-Control.
CompileMarkSeparation
cls
var tab& = Create("TabCtrl",%HWnd,"eins",0,0,300,150)
InsertTab(tab&, 1, "zwei")
InsertTab(tab&, 2, "drei")
var ELEMENT1&=Control("DIALOG","",$54001100,0,22,300,150,tab&,0,%hinstance,$0)
var ELEMENT2&=Control("DIALOG","",$54001100,0,22,300,150,tab&,0,%hinstance,$0)
var ELEMENT3&=Control("DIALOG","",$54001100,0,22,300,150,tab&,0,%hinstance,$0)
var hscroll& = Create("HScroll",ELEMENT1&,"",20,100,100,20)
var hscroll2& = Create("VScroll",ELEMENT2&,"",260,20,20,100)
var ende& = Create("Button",ELEMENT3&,"Ende",20,100,100,25)
var e% = 0
var hsc& = Create("Button",tab&,"Test und Ende",20,40,160,20)  direkt auf tab&
Showwindow(Element1&,1)
Showwindow(Element2&,0)
Showwindow(Element3&,0)

While e% = 0

    WaitInput

    If GetFocus(ende&)

        e% = 1

    elseif GetFocus(hsc&)

        DrawText 10,200, "Test"
        BREAK

    EndIf

    IF TABCHANGED(Tab&)

        IF GetActiveTab(Tab&) = 0

            Showwindow(Element1&,1)
            Showwindow(Element2&,0)
            Showwindow(Element3&,0)

        ELSEIF GetActiveTab(Tab&) = 1

            Showwindow(Element1&,0)
            Showwindow(Element2&,1)
            Showwindow(Element3&,0)

        ELSEIF GetActiveTab(Tab&) = 2

            Showwindow(Element1&,0)
            Showwindow(Element2&,0)
            Showwindow(Element3&,1)

        ENDIF

    EndIf

EndWhile

='./../../Function-References/XProfan/end/'>End
 
Gruß Thomas
Windows XP SP2, XProfan X2
06/22/10  
 




Thomas
Zielinski
Ah okay! means simply yet what other drunderpappen. so should it klappen.
Thanks you!
Greeting Thomas

Nachtrag: Klappt wonderful. (on something like Simples had one too self come can)
 
XProfan X4; Win10 x64
Der Kuchen ist eine lüge!
06/22/10  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

8.717 Views

Untitledvor 0 min.
RudiB.09/27/22
Georg Teles10/26/21
p.specht12/15/20
kustg11/27/19
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