English
Forum

nProc and Repaint - Messages

 
- Page 1 -



E.T.
even so noticed: Is my XProfan-Program in the nProc on the works, becomes it z.B. through "Neuzeichnen"  from the exit brought. "Neuzeichnen"  exit Yes always on, if the Prog-Window minimizes, covers or moved becomes (covers z.B. through Screen saver ).
After such one Event scheind my nProc unending so engage To his, the window new draw To want. and this forever, with the Eieruhr for utterly Auslastung. too The Messages on The beam-Show to achieve no effect More. self the system-Menu becomes muddy, to the nProc have I z.B. the [X] for "Programm schließen" deaktiviert, this is then again active.
as long as I the window not verdecke or shift, runs the nProc klaglos through, with the integrally normalen arrow as Cursor....

example of my nProc:
CompileMarkSeparation
nProc Vergleichen

    global Liste1&,  Liste2&, Liste4&, Zaehler1&, Zaehler2&, Status&, ProgressBar_3&, ProgressBar_4&
    Declare Verg_Dat_1$, Verg_Dat_2$, Vergl_Str1$, Vergl_Str2$, Vergl_Pass&, Pos_L1&

    WhileLoop 0,Zaehler1&

        Vergl_Str1$ = GetText.Listview(Liste1&, &loop, 0)
        Verg_Dat_1$ = GetText.Listview(Liste1&, &loop, 1)

        WhileLoop 0,Zaehler2&

            Vergl_Str2$ = GetText.Listview(Liste2&, &loop, 0)

            If Vergl_Str1$ = Vergl_Str2$

                Verg_Dat_2$ = GetText.Listview(Liste2&, &loop, 1)

                IfNot Verg_Dat_1$ = Verg_Dat_2$

                    Inc Vergl_Pass&
                    AddString(Liste4&, Verg_Dat_1$ + "|" + Verg_Dat_2$)

                EndIF

            EndIf

            Sendmessage(ProgressBar_4&,$0400+2,int(100.0/Float(Zaehler1&)*Float(&loop)),0)

        EndWhile

        Sendmessage(ProgressBar_4&,$0400+2,0,0)
        Sendmessage(ProgressBar_3&,$0400+2,int(100.0/Float(Zaehler1&)*Float(&loop)),0)

    EndWhile

ENDPROC


is Yes hold no so komplizierter code, solely the vergleichen vieler Strings on Übereinstimmung (runs hold still as nProc vieeel faster as in XProfan..)
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
11/12/10  
 



« this Posting watts as Solution marked. »

goes still How in the example*:
CompileMarkSeparation
'URL: https://xprofan.com/intl/de/xpse/nproc-und-neuzeichnen-messages/#bottom
 {$cleq}
cls
long myThread=createThread(0,0,procAddr(eineProc),hWnd,0,0),b
print "fertig"

while 1

    waitinput 1000
    getExitCodeThread(myThread,addr(b))
    case b==123456 : break

wend

print "allesfertig"
end

nProc eineProc(long some)

    whileLoop 2

        setText(some,str$(getTickCount))
        sleep(1000)

    wend

    return 123456//oder exitThread(123456) wenn an beliebiger Stelle Thread abgewürgt werden soll wie "end 123456"

endProc


*XP-tested - Have here only XP.
 
11/13/10  
 



Sorry, what? I could yet never so yummy Repaint How with nProcs (see canvas etc)

one ought to at Repaint naturally not for care, that same again neugezeichnet go wants - then Gibts naturally NEN windows-Unendlichloop - here helps z.B. validaterect "im" wm_paint.

For which very need an example?
 
11/12/10  
 



here again iF...

mist, with ueber 250 fractures always the Handyinternet together...

I faith I know now what you mean...

gleiches behaviour can You with sleep 10000 bverursachen... if one Thread operates then can it not Redraw... this is but voellig normal.
 
11/12/10  
 



hehe Berlin ... Coswig ... 22 minutes gg ... is How nProc...
 
11/12/10  
 




E.T.
only versteh I now not, where the windows-Unendlichloop  hekommt. it should Yes only then neugezeichnet go, if too must. means z.B. if the window of minimizes restored becomes. in the nProc bleibts very there (unending) hang, the Redraw comes not at all first at Window on (remaining white).
the same Proc in XProfan has this trouble not, there XProfan itself Yes around the Repaint kümmert .
Can not the nProc too procure ??
or remaining The Repaint-invitation in the nProc forever stand, so the therefore the windows-Unendlichloop  arise ???
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
11/12/10  
 



Wiederda...

give me Please one complete example on the I one bestimmtes behaviour understand (and then ggf. too explain) can. ^^
 
11/12/10  
 



Bekommste there?
 
11/13/10  
 




E.T.
in the momentum werd I it first so let, the the window to veränderung (move etc.) not any more updated becomes. Have attempts, The wm-pain - Message ans Haupfenster in the nProc "rauszufiltern", what but with kommentarlosem discontinue end...

Eigendlich I will Yes only, the in the obigen Bsp. the wm_paint at Mainwindow ankommt. One waitinput 1  would there to the internal Loop ggf. Perhaps already help, goes Yes hold but Nich.
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
11/13/10  
 



E.T. (13.11.10)
Eigendlich I will Yes only, the in the obigen Bsp. the wm_paint at Mainwindow ankommt.


clear, if your UI-Thread operates - z.B. with Sleep 10000 or a Loop in a nProc; or in a API - even only not of/ one XProfan-Loop - then jumping the UI-Thread not simply at a single blow in a wProc circa wm_paint to execute separate even first then if z.B. GetMessage/ WaitApis of Progger _angewiesen go.
 
11/13/10  
 



but what You with "Unendlichschleife" mean or How You such obig beget can I not understand.
 
11/13/10  
 




E.T.
iF (13.11.10)
but what You with "Unendlichschleife" mean or How You such obig beget can I not understand.


That the Unenlich-Loop has clarified, if the nProc "durch" is, GEHTS integrally normal in the Prog moreover (not long enough waited ).

[OFFTOPIC]If one new mail (How even from you) eintrifft, During low one in this Tread yet on the reading is, so becomes this andersfarbig dargestell (sure so pseudo), but drunter missing the Quote  etc., only The Uhrzeit standing there



[/OFFTOPIC]

1.jpg  
12 kB
Hochgeladen:11/13/10
Downloadcounter106
Download
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
11/13/10  
 



E.T. (13.11.10)
iF (13.11.10)
but what You with "Unendlichschleife" mean or How You such obig beget can I not understand.


That the Unenlich-Loop has clarified, if the nProc "durch" is, GEHTS integrally normal in the Prog moreover (not long enough waited ).


Well very, so is the too "richtig" - one should Yes whom UI-Thread not andauernden releases blockieren separate then even NEN extra Thread keep busy. by the "Ehrlichkeit" of/ one nProc falls this umsomehr on. ^^

[OFFTOPIC]
E.T. (13.11.10)
[OFFTOPIC]If one new mail (How even from you) eintrifft, During low one in this Tread yet on the reading is, so becomes this andersfarbig dargestell (sure so pseudo), but drunter missing the Quote  etc., only The Uhrzeit standing there [/OFFTOPIC]




this is "korrekt" so or. behave itself How program - The "nachgeschobenen" "Live-Postings" are sogesehen no Vollwertigen and show z.B. too no Dateianhänge etc. are sooner "nützliche Notes on möglicherweise-useful Beiträge" and make possible but at least a Livekonversation. [/offtopic]
 
11/13/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

24.424 Views

Untitledvor 0 min.
iF12/05/18
p.specht01/07/18
Ernst05/07/16
funkheld04/28/16
More...

Themeninformationen

this Topic has 3 subscriber:

iF (15x)
E.T. (10x)
unbekannt (2x)


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