firemonkey-container icon indicating copy to clipboard operation
firemonkey-container copied to clipboard

fmx does not show ok

Open limelect opened this issue 2 years ago • 5 comments

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 avatar Jan 29 '23 16:01 limelect

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

limelect avatar Jan 31 '23 16:01 limelect

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

limelect avatar Jan 31 '23 18:01 limelect

  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 avatar Feb 03 '23 17:02 limelect

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 avatar Feb 04 '23 17:02 limelect

 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));

limelect avatar Feb 04 '23 17:02 limelect