firemonkey

Can Delphi XE4 import iOS ObjC Class ? ( Static Library *.a )

。_饼干妹妹 提交于 2020-01-02 05:14:10
问题 Can Delphi XE4 import iOS ObjC Class ? ( Static Library *.a ) ObjC Code : test.a // test.h --------------------------------------------------------------- #import <Foundation/Foundation.h> @interface mycalc : NSObject { BOOL busy; } - (int) calc : (int) value; @end // test.m -------------------------------------------------------------- #import "test.h" @implementation mycalc -(int) calc:(int)value { busy = TRUE; return ( value + 1); } @end Delphi XE4 Code "Unit1.pas" for Testing Unit1;

Delphi Xe2 with Firemonkey : Can you have a non-client area that is painted in a style other than the default Windows nonclient paint style?

a 夏天 提交于 2020-01-02 00:49:32
问题 Here is a sample of a delphi application I am making using firemonkey + Delphi XE2. As you can see, you can use the visual style "stylebook" in Firemonkey to customize the appearance of most things inside the window frame. However the outside of the window frame is drawn using whatever style Windows decides. Now if I was using VCL instead of Firemonkey, I could apply "VCL Styles" and "skin" the whole VCL application in a dark color scheme. My guess is that this is NOT YET posssible with

GetKeyState in firemonkey

最后都变了- 提交于 2020-01-01 19:20:08
问题 In VCL (Delphi 2010) I used this function to check whether control key is pressed: function IsControlKeyPressed: Boolean; begin Result := GetKeyState(VK_CONTROL) < 0; end; GetKeyState is function in windows library that I do not want to include it into my project. How can I check if control or shift key is pressed in XE3 for firemonkey application? 回答1: If it helps for anyone else, this is my unit: unit uUtils; interface uses {$IFDEF MSWINDOWS} Winapi.Windows; {$ELSE} Macapi.AppKit; {$ENDIF}

Removing firemonkey from Windows taskbar

℡╲_俬逩灬. 提交于 2020-01-01 12:33:08
问题 Is there a way, to remove my firemonkey application form Windows XP/vista/7 taskbar? There is no info when i google. The problem: How to hide the form that is located in a dll from the Windows taskbar. 回答1: NB: Talibek answered his own question within the question, for clarity I have moved it here. You need to get your main form handle ( Form1.Handle ), because there is no Application.handle in firemonkey, then convert it with FmxHandleToHWND ( FMX.Platform.Win ) to normal window handle. From

Install font in firemonkey

老子叫甜甜 提交于 2019-12-31 07:04:45
问题 How Can I use embedded font or install new fonts in my firemonkey application? I tried this solution but WM_FONTCHANGE is not defined in FMX! I want to use custom font in my application, how I can do this? 回答1: I followed the instructions here, and they were of some help. I have a few extra hints that may help, The two inclusions that you will need to make this work is WinAPI.Windows and WinAPI.Messages. If you put these inclusions at the start of your "uses" clause, you're unlikely to have

Install font in firemonkey

青春壹個敷衍的年華 提交于 2019-12-31 07:04:10
问题 How Can I use embedded font or install new fonts in my firemonkey application? I tried this solution but WM_FONTCHANGE is not defined in FMX! I want to use custom font in my application, how I can do this? 回答1: I followed the instructions here, and they were of some help. I have a few extra hints that may help, The two inclusions that you will need to make this work is WinAPI.Windows and WinAPI.Messages. If you put these inclusions at the start of your "uses" clause, you're unlikely to have

Install font in firemonkey

一曲冷凌霜 提交于 2019-12-31 07:04:06
问题 How Can I use embedded font or install new fonts in my firemonkey application? I tried this solution but WM_FONTCHANGE is not defined in FMX! I want to use custom font in my application, how I can do this? 回答1: I followed the instructions here, and they were of some help. I have a few extra hints that may help, The two inclusions that you will need to make this work is WinAPI.Windows and WinAPI.Messages. If you put these inclusions at the start of your "uses" clause, you're unlikely to have

Move borderless form in Firemonkey

瘦欲@ 提交于 2019-12-31 05:34:13
问题 In VCL forms I use WM_SYSCOMMAND , but in firemonkey it is undeclared. I test this code: procedure TForm4.dragPanelMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Single); begin isDraging := true; X0 := X; Y0 := Y; end; procedure TForm4.dragPanelMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Single); begin if isDraging then begin Form4.Left := Trunc(Form4.Left + X - X0); Form4.Top := Trunc(Form4.Top + Y - Y0); end; end; procedure TForm4.dragPanelMouseUp(Sender

VirtualKeyboard not Show when focus Edit fields in Firemonkey project

旧街凉风 提交于 2019-12-31 05:14:53
问题 I have a Firemonkey multi device project in Delphi 10 Seattle where the user can get a screen at the start of the app. Here the user needs to fill in 2 fields. But when I click on the edit fields the Virtual Keyboard isn't shown. If I skip this screen at start and call it later then the Virtual Keyboard is shown. This is done in the same way too. I found sort of a solution: When i click on the edit fields i call show VirtualKeyboard myself. The only problem is that the cursor isn't shown in

Closing modal dialog in delphi firemonkey mobile application (Android)

最后都变了- 提交于 2019-12-31 00:45:06
问题 I am having the dandiest time trying to figure out why my modal form will not close! Using Delphi XE-5 and FireMonkey Mobile App (Android), i followed the the info "ShowModal Dialogs in FireMonkey Mobile Apps" for demo purposes, i created a new Firemonkey Mobile delphi application and added a secondary firemonkey mobile form. From the main form, i use the code from the article: procedure TForm1.Button1Click(Sender: TObject); var Form2: TForm2; begin Form2 := TForm2.Create(nil); Form2