<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi All!<br>
<br>
I'm not sure if the following is a new bug or whether it only occurs
in Lazarus for Windows<br>
1.4RC2 or RC3. <br>
<br>
I have been testing Lazarus 1.4RC2 and now Lazarus 1.4RC3 on Windows
7 and have encountered<br>
strange behavior with frames. I have simplified the code down to an
app that displays<br>
a very simple frame after a button push. There is only one <b>unusual</b>
factor in this app<br>
(but it is common to many programs I wrote in Delphi and Lazarus for
Linux). That is,<br>
I subclass TFrame to add functionality to all descendent frames, for
example:<br>
<br>
TFrameX = class(TFrame)<br>
<br>
public Print; virtual; // Now the main program can call
Print on a framex and<br>
// the frame-specific
printing occurs.<br>
<br>
constructor Create; override;<br>
end;<br>
<br>
the remainder of the frames in the apps are subclassed from TFrameX.<br>
<br>
TFrame1 = class(TFrameX) ...<br>
<br>
The issue is that when editing the MAIN program's appearance using
the Object Inspector,<br>
(specifically changing <b>Position</b>), the .lfm file for the
FRAME <i>occasionally</i> gets an entry<br>
for<b> Position</b>! (sometimes <b>TabOrder</b>, too.). I can't
pinpoint exactly the time at which<br>
this extraneous data appears, but it doing a series of normal
editing operations such as<br>
moving the windows, changing the properties of the MAIN or FRAME for
a few minutes <br>
(but not changing the code) will definitely cause it to happen.
Once it does, the object <br>
inspector for Frame1 has an entry for <b>Position</b> (and
sometimes <b>TabOrder</b>) which is not <br>
present when a frame is first created. After this appears,
reloading the Frame form<br>
will <i>sometimes</i> raise an exception in the IDE complaining
about the unknown property<br>
for the Frame.<br>
<br>
The intermittent (apparently) nature of this is puzzling.<br>
<br>
Subsequently, when I attempt to run the program, one of two possible
situations occur:<br>
<br>
1. Clicking on the button that displays the frame calls the code
but does not display<br>
the frame, or,<br>
2. Clicking on the button raises an exception describing the
extraneous entry in the<br>
.lfm file.<br>
<br>
I haven't been able to figure out why one or the other happens, but
for any given <br>
compilation the error remains the same.<br>
<br>
I have a simple app that demonstrates this problem if anyone would
like to try to<br>
replicate my troubles <span class="moz-smiley-s3"><span> ;-) </span></span>.<br>
<br>
Thanks,<br>
<br>
Don Ziesig<br>
</body>
</html>