vintagedave / firemonkey-container

Automatically exported from code.google.com/p/firemonkey-container
92 stars 34 forks source link

fmx does not show ok #17

Open limelect opened 1 year ago

limelect commented 1 year ago

I put the zip program on the blog The screen does not show correctly

Screenshot - 29_01_2023 , 18_35_10 Screenshot - 29_01_2023 , 18_23_22

limelect commented 1 year ago

Ok, I found the answer. the container has to be on a pannel I did not see it mentioned.

limelect commented 1 year ago

No, it does not work. For a while it was OK then after a view compilation, it returns to not view properly.

limelect commented 1 year ago
  1. Make a very simple fmx project
  2. add 2 buttons on top left corner and buttom right corner
  3. Make a vcl project
  4. rename to different form
  5. add fmx form to uses an add FMX.Forms on top uses as first line.
  6. put container as a client
  7. add on container creat
  8. if not Assigned(Form) then Form := TForm1.Create(nil);
  9. compile and see NO 2 BUTTONS SHOWN the container should resize FMX according to the container
limelect commented 1 year ago

I was trying to solve the size position buttons without any success. I moved the right down button to find a screen fmx and could not find a position. every compilation container changed. It seems there is a variable not defined.

limelect commented 1 year ago
 This is the problem puting h,w fixe solve it but this is not the way

// WindowService.SetWindowRect(FFMXForm, RectF(0, 0, Width, Height)); WindowService.SetWindowRect(FFMXForm, RectF(0, 0, 600, 500));