firemonkey

FM Mobile Destroy Form

本小妞迷上赌 提交于 2020-01-25 10:03:08
问题 How i can destroy form, I want: creatr Form1(start application), create Form 2, destroy Form1, working with form2, then create form 3, destroy form2. but I not know how to destroy form. If i call: procedure TFPressStartScreen.btn1Click(Sender: TObject); begin MainScreen.FMainScreen := MainScreen.TFMainScreen.Create(Application); MainScreen.FMainScreen.Show; DisposeOf; end; FPressStartScreen - 1 form, FMainScreen - 2 form, i create 2 form and need destroy 1. but i get access violation. 来源:

Button placed on selected TListItem in most cases doesn't receive click

℡╲_俬逩灬. 提交于 2020-01-25 09:23:07
问题 I have a Firemonkey TListBox in an Android app and in OnPaint I place 3 buttons on the selected TListBoxItem. They are being displayed and all have a OnClick event assigned. But when clicking them this event usually does not fire. Only seldom I get the button clicked. I guess the TListBox already received the click and declared it as handled. Is there any way otherwise? Can I register a tap in the form itsself and determine from the position of the tap which of the buttons must have been

Trying to compile iOS device 64-bit in Delphi

狂风中的少年 提交于 2020-01-25 08:27:04
问题 I'm using Delphi 10.2 Update 3, with an iOS target of 11.3 and an iPad running iOS 10.3.3. When I try to compile my project for a iOS device, this error occurs: [DCC Error] E2597 ld: warning: directory not found for option '-FC:\Users\gustavo.reinert\Documents\Embarcadero\Studio\SDKs\iPhoneOS11.3.sdk\System\Library\PrivateFrameworks' ld: warning: directory not found for option '-LC:\Users\Marcio.Amorim\Documents\Embarcadero\Studio\SDKs\MacOSX10.13.sdk\usr\lib\system' ld: file not found: /usr

Delphi TNotificationCenter Multiple Repeating Notifications has unexpected behaviour

狂风中的少年 提交于 2020-01-24 15:45:07
问题 lets say you want to create a Notification with a repeat interval so that it is recurring var MyNotification : TNotification; begin MyNotification := NotificationCenter1.CreateNotification; try MyNotification.Name := 'FirstNotification'; MyNotification.AlertBody := 'First Notification!'; MyNotification.FireDate := IncSecond(Now,15);// Note this fires 15 secs from NOW MyNotification.RepeatInterval := TRepeatInterval.Minute; Notificationcenter1.ScheduleNotification(MyNotification); finally

Delphi - How to save bitmap to BLOB field in SQLite database

亡梦爱人 提交于 2020-01-24 13:24:10
问题 I am trying to add an array of TBitmap images to different records of a ClientDataSet (in a ftBlob field) and then save those records to a SQLite database. The BLOB field (DocImage) is a required field in the database. However, my code does not seem to save the bitmaps to the blob field in the ClientDataSet at all... So when I call BdmMain.cdsTrxDoc.ApplyUpdates(0) , I get the error: "Field 'DocImage' must have a value." I have checked the size of my BlobStream (BlobStream.Size) before and

Prevent firing events while scrolling TVertScrollBox

喜你入骨 提交于 2020-01-23 12:36:26
问题 Normally, while scrolling the contents of a "scroll box", no event functions are fired from the sub-components of a scroll box, e. g. in native apps. But in FireMonkey, if a TVertScrollBox contains sub-elements like TRectangle (which I want to use as menu entries for a custom menu), scrolling the TVertScrollBox on Android with a finger sometimes triggers the event functions (like OnClick) of the sub-elements and this is very confusing for me and our customers - They don't want to tap a

Prevent firing events while scrolling TVertScrollBox

不问归期 提交于 2020-01-23 12:34:10
问题 Normally, while scrolling the contents of a "scroll box", no event functions are fired from the sub-components of a scroll box, e. g. in native apps. But in FireMonkey, if a TVertScrollBox contains sub-elements like TRectangle (which I want to use as menu entries for a custom menu), scrolling the TVertScrollBox on Android with a finger sometimes triggers the event functions (like OnClick) of the sub-elements and this is very confusing for me and our customers - They don't want to tap a

Prevent firing events while scrolling TVertScrollBox

主宰稳场 提交于 2020-01-23 12:34:05
问题 Normally, while scrolling the contents of a "scroll box", no event functions are fired from the sub-components of a scroll box, e. g. in native apps. But in FireMonkey, if a TVertScrollBox contains sub-elements like TRectangle (which I want to use as menu entries for a custom menu), scrolling the TVertScrollBox on Android with a finger sometimes triggers the event functions (like OnClick) of the sub-elements and this is very confusing for me and our customers - They don't want to tap a

Is there an FMX function to set a TImage's transparent color at runtime?

笑着哭i 提交于 2020-01-17 10:57:57
问题 I have a TImage on a form in FMX (FireMonkey). I want to load a bitmap into the TImage at runtime, where the bitmap should have a transparent background defined by the first pixel's color in the bitmap. This color might be different from bitmap to bitmap. I know how to do this at design time, by using the MultiResBitmap editor for a TImage. However, I can't find any examples of how to do this at runtime. Do I have to do this manually (get the color of the first pixel in the bitmap, then

Is there an FMX function to set a TImage's transparent color at runtime?

元气小坏坏 提交于 2020-01-17 10:54:52
问题 I have a TImage on a form in FMX (FireMonkey). I want to load a bitmap into the TImage at runtime, where the bitmap should have a transparent background defined by the first pixel's color in the bitmap. This color might be different from bitmap to bitmap. I know how to do this at design time, by using the MultiResBitmap editor for a TImage. However, I can't find any examples of how to do this at runtime. Do I have to do this manually (get the color of the first pixel in the bitmap, then