On Tue, 25 Jul 2006, Bisma Jayadi wrote:

Why don't you use a single paintbox to draw all your data on ?

This will requires a huge method for object drawing, keyboard detection, and mouse detection. I think it'll be harder to code and maintain.

Creating a separate GUI object for each object in your database is a very bad idea;

It depends on the class of the object. If we derive it from a not too complex class, for example table model is derived from TCustomListBox class, I think it wouldn't be THAT bad.

I worked with such programs, and at 250 tables in the model, such programs become incredibly slow. A redraw takes forever.

At the first time drawing, after load from the file for example, it is correct. But, we don't have to draw EVERY OBJECTS every time while we're working on the models. We only need to draw object which is needed to be redrawn.

I think, whatever approach we'll use, it'll takes time to draw hundreds of object anyway.

Better take a single paintbox or tcustompanel and draw everything on that.

I got your point, but I prefer my approach still. :)

No doubt ;-)

Let me add a final consideration: if you do the drawing yourself, then printing
or creating a bitmap from the model is just a switch of canvas. With your approach, printing is simply not an option: You'll have to do as I say anyway to do the printing...

But since you do the work, I'm not going to insist too much :)

Michael.

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to