English
Forum

scrollarea.inc management

 
- Page 1 -



Manfred
Barei
Hello iF,

I have with your scrollareainc a couple Problems, could You time over the code look and me say I wrong make.
the Scrolling functions, however are The Edits and my scheduler to the up-scrolling and following down-scrolling not any more visible, The Edits go first again visible if man above drives. The scheduler but we how not any more visible.
The row 107 must I comment, there otherwise a Error Message comes.

for your Help already once in the advance Dankeeeeeeee............!!!!

Greeting
Manfred

4 kB
Hochgeladen:08/15/10
Downloadcounter541
Download
 
Zu wenig Wissen ist gefärlich, zu viel auch.(XProfan X4) | Win 10 Pro 64 | Win7 Ultimate 32/64 | AMD FX-8320, 16GB, GeForce GT 630 |
08/15/10  
 



« this Posting watts as Solution marked. »

Habs even tested and working but GetWindowRect is hold a API and if you without xpse work must You these hold define by Def or Header-File or ImportDLL ... or by external Call:
CompileMarkSeparation
cls
var wnd&=%hWnd
declare rect#
dim rect#,16
external("user32","GetWindowRect",wnd&,rect#)
print "x,y,xx,yy",long(rect#,0),long(rect#,4),long(rect#,8),long(rect#,12)
waitInp
- i'm these Aufrufform go ahead gammy or "zu blöd" with functions The eh in the system permanent famous are.
 
10/16/10  
 



Hello Manfred,

I write with the ScrollArea.Inc thats antiquated is and thats true - the goes "today" rather and plainer and I look to your Sourcecode strain on.
 
08/15/10  
 



with possible little Changes on the code would it vlt. something like:
CompileMarkSeparation
 {$cleq}
// $H Commctrl.ph
SET("ERRORLEVEL",0)
SET("TRUECOLOR",1)
DECLARE L#, STATUSBAR&
DECLARE GRIDBOX1&
DECLARE TabControl&, TabPage1&, TabPage2&, LastTab&
DECLARE TEXT1&, TEXT2&, TEXT3&
DECLARE MoEDIT1&, MoEDIT2&, MoEDIT3&, MoEDIT4&, MoEDIT5&, MoZeit1&, MoZeit2&, MoZeit3&, MoZeit4&, MoZeit5&, MoGesZeit&
Dim L#, 12
Long L#,0 = 200, 220, -1

Proc SetActiveTab

    Parameters hTab&, TabIndex&
    @SendMessage(hTab&, ~TCM_SETCURFOCUS, TabIndex&, 0)

EndProc

Proc Tabelle

    StartPaint TabPage1&
    UsePen 0,1,@RGB(0,0,0)
    Rectangle 010,010 - 045,028' Tabellenzeile Überschrift
    Rectangle 044,010 - 470,028' Tabellenzeile Überschrift
    Rectangle 469,010 - 520,028' Tabellenzeile Überschrift
    Rectangle 519,010 - 570,028' Tabellenzeile Überschrift
    Rectangle 010,027 - 045,152' Tabellenzeile Montag
    Rectangle 044,027 - 470,152' Tabellenzeile Montag
    Rectangle 469,027 - 520,152' Tabellenzeile Montag
    Rectangle 519,027 - 570,152' Tabellenzeile Montag
    Rectangle 010,151 - 045,276' Tabellenzeile Dienstag
    Rectangle 044,151 - 470,276' Tabellenzeile Dienstag
    Rectangle 469,151 - 520,276' Tabellenzeile Dienstag
    Rectangle 519,151 - 570,276' Tabellenzeile Dienstag
    EndPaint

endproc

WINDOWSTYLE 63
WINDOWTITLE "Neues Fenster"
WINDOW (%maxx/2 - 880/2),(%maxy/2 - 560/2) - 880,560
~SetClassLong(%hwnd, ~GCL_STYLE, (~GetClassLong(%hwnd, ~GCL_STYLE)- ~CS_HREDRAW - ~CS_VREDRAW))//flickerfreies hWnd bei Skalieren
DECLARE ENDE%
CLS GETSYSCOLOR(15)
USEFONT "MS Sans Serif",13,0,0,0,0
SETDIALOGFONT 1
STATUSBAR& = @Create("StatusWindow",%HWND,"",3,L#)
var MYAREA&=scrollControl(%hWnd,-1,width(%hWnd),height(%hWnd))
setWindowPos myArea&=0,0 - width(%hWnd),height(%hWnd)-height(STATUSBAR&)
GRIDBOX1& = create("GridBox",MYAREA&,"Eintrag 1;0;60;Eintrag 2;0;60;Eintrag 3;0;60",3,0022,0074,0185,0363)
TabControl& = CREATE("TABCTRL",MYAREA&,"Stunden",0220,0070,0625,0370)
TabPage1& = CONTROL("DIALOG","", $40081003,2,25,WIDTH(TabControl&)-10, HEIGHT(TabControl&)-30,TabControl&,0,%HINSTANCE)
SHOWWINDOW(TabPage1&,0)
@INSERTTAB(TabControl&,2,"Weiteres")
TabPage2& = CONTROL("DIALOG","", $40081003,2,25,WIDTH(TabControl&)-10, HEIGHT(TabControl&)-30,TabControl&,0,%HINSTANCE)
SHOWWINDOW(TabPage2&,0)
LastTab& = TabPage1&
SHOWWINDOW(LastTab&,1)
Tabelle
TEXT1& = CREATE("TEXT",TabPage1&,"Tag:",     013,012,030,014)
TEXT2& = CREATE("TEXT",TabPage1&,"Arbeiten:",230,012,045,014)
TEXT3& = CREATE("TEXT",TabPage1&,"Zeit:",    480,012,025,014)
MoEDIT1& = CREATE("EDIT",TabPage1&,"",050,040,0415,0020)
MoEDIT2& = CREATE("EDIT",TabPage1&,"",050,059,0415,0020)
MoEDIT3& = CREATE("EDIT",TabPage1&,"",050,078,0415,0020)
MoEDIT4& = CREATE("EDIT",TabPage1&,"",050,097,0415,0020)
MoEDIT5& = CREATE("EDIT",TabPage1&,"",050,116,0415,0020)
MoZeit1& = CREATE("EDIT",TabPage1&,"",475,040,0040,0020)
MoZeit2& = CREATE("EDIT",TabPage1&,"",475,059,0040,0020)
MoZeit3& = CREATE("EDIT",TabPage1&,"",475,078,0040,0020)
MoZeit4& = CREATE("EDIT",TabPage1&,"",475,097,0040,0020)
MoZeit5& = CREATE("EDIT",TabPage1&,"",475,116,0040,0020)
MoGesZeit&=CREATE("EDIT",TabPage1&,"",525,116,0040,0020)
SETFOCUS(%HWND)
REPAINT
USERMESSAGES $0010
SubClass %hWnd,1

WHILENOT ENDE%

    WAITINPUT

    SELECT %UMESSAGE

        CASEOF $0010

        BREAK

    ENDSELECT

    If %KEY=2

        ENDE%= 1

    ELSEIF %KEY=4

        SETWINDOWPOS STATUSBAR& = 0,0 - 0,0;0

    ELSEIF CLICKED(GRIDBOX1&)'GRIDBOX

    ElseIf @TABCHANGED(TabControl&)

        SHOWWINDOW(LastTab&,0)

        If GETACTIVETAB(TabControl&) = 0

            LastTab& = TabPage1&
            SHOWWINDOW(LastTab&,1)
            Tabelle
            else GETACTIVETAB(TabControl&) = 1
            LastTab& = TabPage2&
            SHOWWINDOW(LastTab&,1)

        EndIf

    ENDIF

ENDWHILE

end

subClassProc

    select %sMessage

        caseof $5,$214// wm_size,wm_sizing

        SETWINDOWPOS STATUSBAR& = 0,0 - 0,0;0
        setWindowPos MYAREA&=0,0 - width(%hWnd),height(%hWnd)-height(STATUSBAR&)

    endSelect

endProc

nproc test//mind. 1 nProc um den nativen Sprachschatz zu aktivieren (Funtkion ScrollControl  https://xp
com/xpse/funktionsreferenz.html#scrollcontrol ) endproc
- i'd but sooner yet The SubClassProc nativize and StartPaint on one Bitmap draw so it no Repaint-Problem thereby gives.

1.201 kB
Hochgeladen:08/15/10
Downloadcounter151
Download
 
08/15/10  
 



Hello Manfred,

konntest You with this Variante something begin?

Thanks the Canvassasse (or so) Gibts now too new Opportunities.
 
09/24/10  
 




Manfred
Barei
Hello iF,

unfortunately No, I need the Scrollarea on the Tabcontroll.
Related to the Canvassasse I will time try.

Greeting
Manfred
 
Zu wenig Wissen ist gefärlich, zu viel auch.(XProfan X4) | Win 10 Pro 64 | Win7 Ultimate 32/64 | AMD FX-8320, 16GB, GeForce GT 630 |
09/24/10  
 



look time, so runs the right super - now too with the Tabellenbild and everything fine flicker and neuzeichenproblemfrei ^^ :


5 kB
Hochgeladen:09/24/10
Downloadcounter420
Download
1.166 kB
Hochgeladen:09/24/10
Downloadcounter290
Download
13 kB
Hochgeladen:09/24/10
Downloadcounter144
Download
 
09/24/10  
 




Manfred
Barei
Hello iF,

I have whom Programmcode for me once abgeändert How I it need.
How greife I now but on each Tabs To, this is me not yet clear and
I have in the proc scheduler yet some Lines eingefügt The whom Tagesnamen really
circa 90 strain turned spend ought to see screenshot, what but not functions (Perhaps is the too take off Roland).



Greeting
Manfred

10 kB
Hochgeladen:09/26/10
Downloadcounter235
Download
64 kB
Hochgeladen:09/26/10
Downloadcounter161
Download
 
Zu wenig Wissen ist gefärlich, zu viel auch.(XProfan X4) | Win 10 Pro 64 | Win7 Ultimate 32/64 | AMD FX-8320, 16GB, GeForce GT 630 |
09/26/10  
 



Perhaps. something like...

(Arial has rotate let, MS Sans Serif is well one Bitmapfont...)


9 kB
Hochgeladen:09/26/10
Downloadcounter256
Download
11 kB
Hochgeladen:09/26/10
Downloadcounter140
Download
 
09/26/10  
 




Manfred
Barei
Hello iF,

thanks for response and with the the anwählen the Tabcontroll have I there get.

Greeting
 
Zu wenig Wissen ist gefärlich, zu viel auch.(XProfan X4) | Win 10 Pro 64 | Win7 Ultimate 32/64 | AMD FX-8320, 16GB, GeForce GT 630 |
09/26/10  
 




Thomas
Freier
I stand in the momentum before the trouble whom Linksklick abzufragen. take I "Getmessage" can I not any more scroll. at that "WaitInput" results only with Rechtsklick The Auswertung.
gives it a better Solution?

 
Gruß Thomas
Windows XP SP2, XProfan X2
09/30/10  
 



Füg still simply wm_lButtonDown as UserMessage hinzu instead of "nur" $10/ wm_close -
The ScrollControl-function however "benötigt" weder WaitInput yet GetMessage and functions always and charged the XProfan-Program properly not at all.
 
09/30/10  
 




Thomas
Freier
Yes, thanks, the war's.
 
Gruß Thomas
Windows XP SP2, XProfan X2
09/30/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

31.398 Views

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