Category : c++builder

I’m trying to install Odoo v13 dependencies, but it fail with the next error. pip install -r ..Odooodoorequirements.txt [Install odoo requirements][1] Seeing this, I tryed to install manually greenlet v0.4.10 (which is the version I need) And It says that the problem is with Microsoft Visual C++ Build Tools. I tryed to install It and ..

Read more

I want to measure text width of a TButton so that I can resize it when the text changes. If the button uses ParentFont, I can use the form Canvas to get the width: int GetButtonTextWidth(TForm* form, TButton* btn) { const int base = form->Canvas->TextWidth(btn->Caption); const int margin = 16; return base + margin; } ..

Read more

I built this example to quickly rotate images 90 degrees but I always get a cut of the image on the sides. After many tests, unfortunately I still don’t understand the cause of the problem. void rotate() { Graphics::TBitmap *SrcBitmap = new Graphics::TBitmap; Graphics::TBitmap *DestBitmap = new Graphics::TBitmap; SrcBitmap->LoadFromFile("Crayon.bmp"); DestBitmap->Width=SrcBitmap->Width; DestBitmap->Height=SrcBitmap->Height; SetGraphicsMode(DestBitmap->Canvas->Handle, GM_ADVANCED); double myangle ..

Read more