[OT] Re: about a problem with a image object

From: Arthur J. O'Dwyer (ajo_at_nospam.andrew.cmu.edu)
Date: 01/16/04


Date: Fri, 16 Jan 2004 16:37:17 -0500 (EST)


On Fri, 16 Jan 2004, Daniel Cortes wrote:
>
> hello. i'm program with borland c++ 6. i've got a problem with an class that
> im making and heredates

  "Inherits," not "heredates" (which is not a word in English).

> properties from TImage.

  You have not yet told us what 'TImage' is.

> [T]his object can be created and [I] can make the object appear in a
> form. The problem come[s] when [I] try to resize the form... if [I]
> make the form [smaller] there are no problem[s], but when [I make]
> the form grow.. my object doesn't grow... [I have] this function that
> is called when the form repaints:
>
> void TGraficoTD::Repintar(int arg_ancho, int arg_largo)
> {
> this->ClientWidth=arg_ancho;
> this->ClientHeight=arg_largo;
> Dibuja();
> }
>
> where this is my object (the image) and arg_largo & arg_ancho are the new
> Height and Width of the form. and Dibuja() is the function that make[s]
> things inside the image [able to] be resized. ([I]t cannot be the
> problem because it works, the things are [redimensioning] when resizing)
>
> [I] don't know if [more information than this is needed] [to] give me
> some solution, and sorry for my [E]nglish. [T]hanks

  Your code is perfectly well-formatted C++ code. The problem must be
in one of the parts of the program you haven't shown us. Maybe it has
something to do with this 'TImage' to which you referred. Maybe the
problem is inside 'Dibuja' or some other function entirely.
  I recommend you post your problem to a newsgroup dedicated to Borland
C++ programming, since you seem to be having difficulties with one or
more Borland-specific libraries. This newsgroup deals only with
platform-independent C and C++ issues, not Borland graphics libraries.

-Arthur