Tag : delphi , By : platformNomad
Date : March 29 2020, 07:55 AM
it should still fix some issue Keyboard Input seems not to work on TPopup. An easy solution is to use a TForm as popup form: unit Popup;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls, FMX.Edit;
type
TfmPopup = class(TForm)
Edit1: TEdit;
Panel1: TPanel;
procedure FormDeactivate(Sender: TObject);
procedure FormKeyDown(Sender: TObject; var Key: Word; var KeyChar: Char; Shift: TShiftState);
private
protected
public
end;
var
fmPopup: TfmPopup;
implementation
{$R *.fmx}
procedure TfmPopup.FormDeactivate(Sender: TObject);
begin
Close;
end;
procedure TfmPopup.FormKeyDown(Sender: TObject; var Key: Word; var KeyChar: Char; Shift: TShiftState);
begin
if Key = vkEscape then begin
Close;
end;
end;
end.
object fmPopup: TfmPopup
Left = 0
Top = 0
BorderStyle = None
Caption = 'Form1'
ClientHeight = 94
ClientWidth = 142
FormFactor.Width = 320
FormFactor.Height = 480
FormFactor.Devices = [Desktop, iPhone, iPad]
OnDeactivate = FormDeactivate
OnKeyDown = FormKeyDown
DesignerMobile = False
DesignerWidth = 0
DesignerHeight = 0
DesignerDeviceName = ''
DesignerOrientation = 0
DesignerOSVersion = ''
object Panel1: TPanel
Align = Client
Height = 94.000000000000000000
Width = 142.000000000000000000
TabOrder = 1
object Edit1: TEdit
Touch.InteractiveGestures = [LongTap, DoubleTap]
TabOrder = 1
Position.X = 20.000000000000000000
Position.Y = 32.000000000000000000
Width = 100.000000000000000000
Height = 22.000000000000000000
end
end
end
TfmMyPopup = class(TfmPopup)
Edit1: TEdit;
private
protected
public
end;
|
How to adjust Font Size according text viewable in a TButton.Text using Firemonkey?
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , I don't know if you're programming for an Android/iOS app, but you can't change the fontsize of a button. I've had the same problem, my solution was to make an abbreviation of the words. And then i put labels above it to explain the abbreviations.
|
Default Firemonkey style sheet (file) for Delphi XE-6 Firemonkey Desktop Application?
Date : March 29 2020, 07:55 AM
Hope this helps Right click on the component (eg. Grid) and choose "Edit Style..." or "Edit Default Style" (can't remember which menu was in XE6). This will reveal the style elements of the component. Then you can save them to a .style file.
|
How to rotate text in haskell so that only the individual words rotate not that whole text?
Tag : haskell , By : Denis Chaykovskiy
Date : March 29 2020, 07:55 AM
|
How do I detect / handle a screen rotate using FireMonkey for Delphi XE5
Date : March 29 2020, 07:55 AM
|