Board index » cppbuilder » Dynamically Insertion and Removing of Frames in ScrollBox

Dynamically Insertion and Removing of Frames in ScrollBox

Hello,
I want to build a software where I have a Form some Inputfields and a
ScrollBox.
When I hit on an OK-Button the content of the inputfields will be assembled
to
a RichText and a Frame with an RichTextEditField (readonly) and a
DeleteButton
will be inserted into the ScrollBox.
So far no Problem. But now: When the User hits the DeleteButton in one of
the
inserted Frames, the Frame shall be removed from the ScrollBox (and some
other
bookeeping action shall be done).

I am not able to remove the Frames in a clear way without be confronted with
sporadic exceptions "Abstrakter Fehler" (abstract error) or even
Accessviolations.

Any Hints for me?
Thanks a lot
  Matthias

 

Re:Dynamically Insertion and Removing of Frames in ScrollBox


Quote
Matthias Stolt wrote:

> I am not able to remove the Frames in a clear way without be confronted with
> sporadic exceptions "Abstrakter Fehler" (abstract error) or even
> Accessviolations.

As you did not provide any sample code until now, I think that you can
apply the same TTimer solution as with the removal of your at runtime
created TButton.

Hans.

Re:Dynamically Insertion and Removing of Frames in ScrollBox


"Hans Galema" <j.m.gal...@maartens.nl> schrieb im Newsbeitrag
<news:3CEE8DD5.1C8D6F4B@maartens.nl>...

Quote
> Matthias Stolt wrote:

> > I am not able to remove the Frames in a clear way without be confronted
with
> > sporadic exceptions "Abstrakter Fehler" (abstract error) or even
> > Accessviolations.

> As you did not provide any sample code until now, I think that you can
> apply the same TTimer solution as with the removal of your at runtime
> created TButton.

> Hans.

Yes you are rigth. Thats the reason for the thread "Component insertion and
removing from TForm".
There is the solution (three! :) of them).

Thanks

Matthias

Other Threads