Problem with OnActivate (etc.) with TEdit control
-
- Registered: Feb 07, 2008
- Last visit: Jan 30, 2011
- Posts: 19
When I create a new form, I add two labels.
I then add a TEdit box.
I create an OnActivate and OnDeactivate method for Form1. These simply increment a counter, and use IntToStr to convert the number and save that text into the Label1.Text and Label2.Text (for OnDeactivate).
With the TEdit dropped on the form, I get one instance of OnActivate. And no instances of OnDeactivate.
If I delete the TEdit control, the OnActivate and OnDeactivate work fine. The counters/labels are incremented as expected.
I'm thinking this is a bug on the product. Has anyone else seen this problem? Does anyone have a solution for this problem?
Thanks,
Mark
Regards, -
- Registered: Dec 04, 2006
- Last visit: Dec 29, 2011
- Posts: 89
Hello!
Can you send me the project. Perhaps I find the problem.
bye,
Wolfgang -
- Registered: Feb 07, 2008
- Last visit: Jan 30, 2011
- Posts: 19
How is it best to get these files to you?
In the sourcecode formum area, or directly here, or where?
I have planned to zip up the files and send you two different versions of the same project. One with the TEdit and one without the TEdit control.
This is a bit delayed because I read other forum areas and tried to update the SYSTEM.PAS file. And I tried to get the MakeRTL project compile everything. And it ran fine.
But now that I try to create the 2nd example of this project with the TEdit, it wants to compile FORMS.PAS (I made no changes to this file). And after adding the link to help the compiler find this source, it complains that it cannot find the CLASSES.PAS file. Even though that file is in the same folder as FORMS.PAS.
Now I'm looking to get the compileallpas program to work. But the three parms they want are not entirely intuitive for me to figure out. May I ask what the installer plugs into this for the OS/2 compile?
Also, it was mentioned that compileallrc exists too. I gather this one is for the resource compiler? Does it compile files separate from the compileallpas, or is there an overlap of files?
thanks,
-Mark
Regards, -
- Registered: Feb 07, 2008
- Last visit: Jan 30, 2011
- Posts: 19
Wolfgang,
I played around with specifying options to run the compileallpas program. I used the information in the existing log files to give me a starting point.
In the WDSybil\Tools\Output\OS2 directory, the compileallpas.exe program seems to take parms like:
Compile Path: I:\WDSibyl\bin\OS2\
Source Path : I:\WDSibyl\Library\Source\
Output Path : I:\WDSibyl\OS\OS2\Lib\
The resulting log file suggests everything recompiled OK.
I had thought to do the same with the Windows files, but I was not as lucky using:
Compile Path: I:\WDSibyl\bin\WIN32\
Source Path : I:\WDSibyl\Library\Source\
Output Path : I:\WDSibyl\OS\WIN32\Lib\
Using the compileallpas in the WIN32 directory gave me a run time error. (DosExecProgram error) THis suggests that this is not an OS/2 executable.
When I try to run the OS2\compileallpas with the WIN32 parms, I get the following error message:
Error: Parameter for OS is not correct !
This suggests that it is not possible to recompile a new set of binaries for the Win32 system, on an OS/2 box.
Is that true, or have I done something wrong?
I do not normally write Win32 programs, so it is not terribly important to get this accomplished. But for completeness sake, I was looking to get this task done too.
Your help in this would be appreciated.
On the original problem, with the new compiled OS2 files, I cannot seem to recreate the problem. If I do, I'll be back with the information you have requested.
Thanks,
Mark
edited by: Mark, Jan 27, 2009 - 09:17 PM
Regards, -
- Registered: Feb 07, 2008
- Last visit: Jan 30, 2011
- Posts: 19
A follow up on my WIN32 compiles. I believe I have been successful in getting these compiled. The parms I used were:
Compile Path: I:\WDSibyl\bin\OS2\
Source Path : I:\WDSibyl\Library\Source\
Output Path : I:\WDSibyl\OS\WIN32\Lib\
OS Switch : -Win32
It would appear that the switch for the OS is case sensitive. I had tried to use -WIN32 and it gave me the error noted above.
Does this look right to you?
Thanks,
Mark
Regards, -
- Registered: Feb 07, 2008
- Last visit: Jan 30, 2011
- Posts: 19
Wolfgang,
My problem still persists. I have a version of the project with and without the problem. I have zipped the files up and would like to send them to you.
Please let me know how I can get them to you.
Thanks,
Mark
Regards, -
- Registered: Dec 04, 2006
- Last visit: Dec 29, 2011
- Posts: 89
Hello!
The Zip-Files can you sene me on the E-Mail
wdsibyl@wdsibyl.org
To Compile the Pascal-Source:
For OS/2 on a OS/2-System:
Compile Path: I:\WDSibyl\bin\OS2\
Source Path : I:\WDSibyl\Library\Source\
Output Path : I:\WDSibyl\OS\OS2\Lib\
OS Switch : -OS2
For Win32 on a OS/2-System:
Compile Path: I:\WDSibyl\bin\OS2\
Source Path : I:\WDSibyl\Library\Source\
Output Path : I:\WDSibyl\OS\Win32\Lib\
OS Switch : -Win32
For OS/2 on a Win32-System:
Compile Path: I:\WDSibyl\bin\Win32\
Source Path : I:\WDSibyl\Library\Source\
Output Path : I:\WDSibyl\OS\OS2\Lib\
OS Switch : -OS2
For Win32 on a Win32-System:
Compile Path: I:\WDSibyl\bin\Win32\
Source Path : I:\WDSibyl\Library\Source\
Output Path : I:\WDSibyl\OS\Win32\Lib\
OS Switch : -Win32
bye,
Wolfgang
- Moderated by:
- Admins-Forum
Users on-line
- 0 users
This list is based on users active over the last 30 minutes.