Forum > Databases

My new unfinished DB admin app in Lazarus

<< < (6/6)

Fantablup:
I have now re-done how the grid add the images and buttons. Adding components to the cells used way too much memory, and it crashed if it used too much.
I have removed all components like TImage and TPicture.
It only draw visually from a TImageList instead in each cell.

Now, the grid is only using a little tbitmap. It only draws all the rest and the tbitmap on the canvas. It only checks where the user is clicking, and execute the stuff instead of having real buttons.
The grid is now working very good, and using normal memory.
It also keeps only the 50 images from the top row, and frees the images before this.
It does the some with images below the visible results.
So, only 50 small images from the beginning and only 50 images after the visible list. With thousand of lines it will not have more images at any time.

The image is a tiny bitmap that is resized from the bigger image, and is in one array.

Clicking the images loads the original image from the database, and shows it in a bigger widow.

This way, i can keep the memory use very low, and just use one tiny bitmap, and one small array for the row and col.

But it has been allot of thinking and trying. Not done easily.
I also created two extra functions that i just call when drawing items to the cells using only X and Y position in rect and size i want it to be, and it automatically draws it and resize it.
It's working very well, and fast too.


valdir.marcos:

--- Quote from: Fantablup on July 04, 2021, 12:04:04 pm ---Thanks guys.

I,m not sure about opensource it. Because i have never earned a dime on all my free programs.
I had a free invoice system made in Delphi, and over 1000 company used it, but only got some small unuseful shit in the mail as thanks from some of them. It could be a small ice fishing kit that cost 5 bucks.

I stopped developing it, and removed it from web after over 10 years.
I have re-programmed it for the web with Javascript and Node js, and it is completed. I used 4 years on it. It run on any OS and the web.
I'm planning to replace the Node js with a web server i create in Lazarus, for the desktop version.
But right now i'm developing this DB admin app in Lazarus.

So, i'm not sure of opensource. I need to earn money.
--- End quote ---
@Martin_fr
I don't have anything against paid products.
This topic smells only as a click bait and propaganda of a future paid product.
So, I think this topic should be moved to "Third party" section (Third party announcements).
Thanks.

Fantablup:
Sorry for if it seems that way.
Not my intention.
Place it where you want. I don't care about that.

I'm just honest about what i do.
Just trying to show the progress of the grid. And also answering questions.

Maybe it's better to only show progress on the grid instead. It's only that it is now only working in the app.

Well, i'm just honest about what i do. All i can say.

Navigation

[0] Message Index

[*] Previous page

Go to full version