English
Forum

Done: Completed: User Message in SubClassProc

 

Uwe
''Pascal''
Niemeier
Hi people!

following situation:
within a SubClassProc  becomes - once one bestimmtes incident recognized becomes - a selbstdefinierte User Message ans Mainwindow skillful.
The object is, on these point Parameter into Eingabeschleife the Hauptprogrammes einzubringen.
Also is ensured, that WaitInput  durchbrochen becomes.
(Anwendungsbeispiel TreeView or GridBOX: Change the selection by Cursortasten z.B. becomes of WaitInput  not recognized)

The problem is, that the Message evident only once gesendet becomes, but in the Eingabeschleife twice(!) ankommt:
CompileMarkSeparation
window 600,600
print Bitte Leertaste  drücken!
 $H Messages.ph
 $H commctrl.ph
subclassproc---------------------------------------------

if subclassmessage(%hwnd,~WM_KEYDOWN)

    if &swparam=32

        sendmessage(%hwnd,5000,11,22)
        print Gesendet!

    endif

endif

endproc--------------------------------------------------
usermessages 5000
subclass %hwnd,1

while 1

    waitinput
    print Empfangen: ,%umessage,&uwparam,&ulparam

endwhile


naturally can itself the whole somehow hinbiegen (Timer, globale variables etc.), but really ought to the still functions?

BTW: with Using the 11.2ß shows itself moreover, that %UMessage  of course reset becomes, not but &UlParam  + &UwParam . solid?

SeeYou
Pascal
 
03/18/09  
 



sure that not a further others Message the Waitinput additional breaks?
 
03/18/09  
 




Uwe
''Pascal''
Niemeier
Hi iF!

in the 11.2ß becomes %UMessage  durch WaitInput  wieder reset ; differently said: %UMessage  ist only then <> 0, if too a User Message receive watts (so have I it anyway understood). there becomes this effect yet deutlicher.
 
03/18/09  
 



is correct!
 
03/18/09  
 




RGH
Uwe Pascal Niemeier
The problem is, that the Message evident only once gesendet becomes, but in the Eingabeschleife twice(!) ankommt


Yes, the can since 10.0 occur. The reason lying therein, that since 10.0 The Userrmessages gestackt are, what moreover led, that they objectively only Waitinput ausgewertet get. though never vorgesehen funktionierten The User Messages before but too without Waitinput, what some now fehlte. The attempt, the again hinzubekommen, has evident in designed situations Nebeneffekte.

for dienächste Version Try I here a others Solution.

Uwe Pascal Niemeier
BTW: with Using the 11.2ß shows itself moreover, that %UMessage  of course reset becomes, not but &UlParam  + &UwParam . solid?


Yes, the was always so. The both System-Variables keep ihren worth, To a new User Message it changed. The values are means only then validly, if %UMessage mismatched 0 is.

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
03/19/09  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

934 Views

Untitledvor 0 min.
H.Brill06/06/21
Rainer Hoefs06/12/19
AndreasS11/29/18
Ernst04/28/16
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