firemonkey

Delphi XE2: Is it possible to create Mac GUI applications without FireMonkey?

北城余情 提交于 2019-12-17 15:55:15
问题 Using Delphi XE2, is it possible to create a Mac GUI application without using FireMonkey for the GUI? If so, what could be used and how would one go about it? 回答1: In principle, it is possible. But you'd need to translate the Objective-C headers and classes exposed by Apple. That is a huge task, part of which has already been done by the FreePascal people or the Objective-Pascal people. But nothing prevents you from translating the (missing) headers yourself. You can call methods of a class

Create a customized Item Appearance for ListView Delphi XE7

僤鯓⒐⒋嵵緔 提交于 2019-12-17 12:38:22
问题 Im having a lot of trouble trying to create a customized item appearance for the TListView firemonkey control for Delphi XE7. What I want is to define my own "design" for what an item should be and use that item. For example : I would like to have an item with a Title(on top) - A Description(Middle) - A Date (Bottom) - Button(Right). I could not find any good documentation about this but i got some samples of how to create an TListView with muti details, but the problem is : that sample is

Create a customized Item Appearance for ListView Delphi XE7

烂漫一生 提交于 2019-12-17 12:38:12
问题 Im having a lot of trouble trying to create a customized item appearance for the TListView firemonkey control for Delphi XE7. What I want is to define my own "design" for what an item should be and use that item. For example : I would like to have an item with a Title(on top) - A Description(Middle) - A Date (Bottom) - Button(Right). I could not find any good documentation about this but i got some samples of how to create an TListView with muti details, but the problem is : that sample is

How to restrict minimum form's width in FireMonkey?

痞子三分冷 提交于 2019-12-14 03:41:11
问题 How do I restrict a minimum form's width in FireMonkey? It used to be so easy in VCL - it just had Max and Min constraints in forms properties. 回答1: Note for future readers: This will only work for versions below XE3 because the Fmx::Platform::TPlatform class was removed in XE3. Thanks to @Alain Thiffault for pointing it out in the comments. Original Post: Here's a more complicated (but more elegant) alternative solution, defining an entirely custom Form class from which you can inherit your

Firemonkey: Setting TLabel Text causes String Index out of Range Exception

强颜欢笑 提交于 2019-12-13 20:30:55
问题 I have a method which builds a help message and then sets a TLabel 's text property to that help message. However, whenever I attempt to set the text of the label, I get the following exception: 'String index out of range. (-1) Must be >=0 and <=42' The method is as follows: void __fastcall TPasswordChangeForm::BuildHelpMessage() { String HelpMsg = ""; if( NewPassEdit->Text.Length() < MinPasswordLength ) { HelpMsg += "Password length too short."; } else { HelpMsg += "Password length OK."; }

How to drag a borderless FMX form on the screen through another object?

南楼画角 提交于 2019-12-13 19:15:46
问题 I am trying to make a form draggable on the screen, i.e. that I could grab it and move it around the screen. Its transparent and has no borders, however an image serves to be the background for other controls. I want to use the image's events to control dragging of the form. How can I do that? I have found the DragEnter, DragLeave, DragStart methods which have this TDragObject argument, I don't know about. Can somebody help? 回答1: Basically you have to do it manually. Here's some delphi

Start app when device turn on (on boot completed) firemonkey

谁说我不能喝 提交于 2019-12-13 19:02:24
问题 I am trying from the article Auto start Delphi XE5 Android App after boot to build a Android FireMonkey app that starts on boot, but always got the error INSTALL_FAILED_UID_CHANGED Quoting from the article: How to use a broadcast receiver to automatically start a Delphi XE5 App after BOOT_COMPLETED on an Android device. In good ol’ DOS days we could start an application after boot by adding it to autoexec.bat. Under Windows you can add a program to startup using the registry or view startup

Why i get an exception argument out of range?

风流意气都作罢 提交于 2019-12-13 18:12:37
问题 Can someone can explain me why i receive sometime an Exception "Argument out of range" under the ios simulator when i execute the code below? on android i never get any error. I use Delphi berlin. the functions where the error appear : {**********************************************************************} procedure Twin_WorkerThreadPool.Enqueue(const Value: Twin_WorkerThread); begin Tmonitor.Enter(fPool); try fPool.Add(Value); fSignal.SetEvent; finally Tmonitor.Exit(fPool); end; end; {*****

How can I prevent duplication of sub components in Firemonkey compound component?

房东的猫 提交于 2019-12-13 17:17:04
问题 I am trying to write a compound component which is derived from TDummy. The component source is: TMyObjectType=(otCube,otSphere); TMyGameObject=class(TDummy) private FObj:TCustomMesh; FMyObjectType: TMyObjectType; procedure SetMyObjectType(const Value: TMyObjectType); public constructor Create(AOwner:TComponent);override; destructor Destroy;override; property MyObjectType:TMyObjectType read FMyObjectType write SetMyObjectType; end; { TMyGameObject } constructor TMyGameObject.Create(AOwner:

What control should I use to create this UI in Delphi Firemonkey

隐身守侯 提交于 2019-12-13 15:09:04
问题 I am developing an application for mobile (android and ios) by Delphi xe5. I am willing to create this UI: I tried TListBox but image on left and right cant be set. I tried TListView but same problem as TListBox I tried TGrid with custom column , The problem of texts and images is solved but I can't create headers of each rows (it hasn't something like colspan) What I need is to create a custom control and repeat it. What is the best solution? Any solution or guide line will be appreciated.