procedure TForm2.Button1Click(Sender: TObject); begin Close; end;
procedure TForm2.Panel1MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Single); begin if (ssLeft in Shift) then StartWindowDrag; end;
procedure TForm2.Panel1MouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Single); begin if (ssLeft in Shift) then ReleaseCapture; end;
end.
此帖子包含附件: 大小:26.0K
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
Color = NULL = NO COLOR!!! Color = Black = Black color.
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
If you don't ask the question correctly, you run the risk of getting the answer wrong.
for Android, try modify your AndroidManifest.Template.XML params:
from: section: <%uses-permission%> line: android:theme="%theme%" ------ to: line: android:theme="@android:style/Theme.Translucent.NoTitleBar"
by default, the transparent forms in Android is "black-color"
since Embarcadero RAD Studio 10.3 Rio RSP-22314: https://quality.embarcadero.com/browse/RSP-22314
"Marco Cantù added a comment - 03/Sep/20 7:31 AM Works as expected means this is the behavior by design, a design that in this case is due to external platform limitations.
Some internal info: "Since 10.3, we use SurfaceView as a base for our form. It allows us to render form using OpenGL ES and as result let us to use native controls. And only 2 SurfaceView instances are available for rendering for an Android app. There is an alternative implementation of forms via TextureView. But experiments have shown that speed of rendering slower in 2 times than SurfaceView."
Marco Cantù added a comment - 14/Sep/20 2:21 AM I'll be more than happy if you convince Google to change how Android works or optimize the TextureView. We need to live with the constraints of the OS, balancing different and conflicting requirements.
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3