do not thank. Deliver component ApplicationEvents and on it event onMessage
idx: = IndexIArray (Msg.hwnd, [Button1.Handle, Button2.Handle;
Button3.Handle, SButton. Handle]);
[dcc32 Error] Main_Module.pas (166): E2010 Incompatible types: ' System. TArray <System. Integer> ' and ' Set '!!!
Probably I am not right, Njashik , and your procedure through itself will pass all Events Windows?
Can for the beginning it is necessary was to catch left mouse button pushing (WM_LBUTTONDOWN), and then to analyze - whether instead of by the necessary button the user? Or from WM_COMMAND it is possible at once for Hendl of the button to learn?!
I do not sneer at all, is simple in these affairs a little while I understand! Therefore - convincingly I ask, check the code before the publication and it is desirable with compilation - it would not be desirable to search for errors in another's creations!
By the way - you resulted an event handler and what will do at this time a main loop in Osn.protsedure? I about here it meant:
while True do
for i: = 0 to 10 do
I so understand that at it all is twisted in one flow and it needs somehow ' to adhere ' operation of the code before pushing buttons which are on the form.
Gallantly!!! Exactly! I like and explained, without going into details, even the Test code approached to the real played back!
Only small specification! - not "to adhere operation", and after a choice the user - to continue performance on algorithm, to pass its part or to quit with saving of the result received for this time.
it is necessary to consider something. Then to stop the account, to wait responses of pushing to the button to the same form where there is a calculation, and further to continue, it is possible depending on that pushed. If ' calculation ' fast enough, that, I think, it is possible to try to manage the main flow.
And here - your crystal full-sphere correctly predicted!.)))
in general - we wait while for that normal description that is necessary. Otherwise it is possible to guess long.
Already also I do not know how to simplify "the Job" description, what not to load the superfluous information!? Well not all procedure here real to copy?
There is a sentence - give I will try to formulate once again the task, but let it will be Already new topic for this sounds as "Handling of pushing of three buttons in a parallel flow", and about flows like as any more we do not speak!
Moderators can be perturbed!
Or here to continue?