Hi friends.
Today I worked upon bitmap object to implement some ideas.
To explore these ideas I have updated my "experiment" and HMG4 with the same code, but the results are different.
In a form I have defined a bitmap (but is like label) with this code
Code: Select all
WITH OBJECT Bitmap():New( "image1" )
:Row := 10
:Col := 10
:Width := 780
:Height := 585
:Picture := ':FANTASY'
:BackColor := { 0 , 255 , 0 }
END WITH
The differences.
Fig.1 with Hmg4 library. This is wrong because there isn't the green background color between menu and image.
This problem is caused by the lack of this code "::oQTObject:setAutoFillBackground( .T. )" within label.prg. If I activate the line, you will see the green color.
- hmg4 lib no fill background
- Hmg4-NoFillBack.jpg (15.81 KiB) Viewed 2502 times
Fig.2 with Hmg4 library. As you can see there is the green color but.... the label covers the menu. Yes, it's wrong.
- hmg4 with fill backgrond
- Hmg4.jpg (13.75 KiB) Viewed 2502 times
Fig.3 with my "experiment".
- l3w experiment
- Lqt.jpg (16.48 KiB) Viewed 2502 times
As you can see there aren't problems and the source code into the program it's the same. Why? Where is the difference.
I think because I'm using centralwidget. Always, by default, I define the central widget for every form and every (not always) object has its parent with the central widget.
I think we must use the centralwidget as MrDuck writes.
Best regards.