delphi-xe5

How do you do both blending and transparency using just pure VCL on bitmapped images?

做~自己de王妃 提交于 2020-01-16 04:31:38
问题 Similar to this question I would like to both blend colors, and bitmaps (png or bmp, but in my case I'm using a png) while preserving transparency. As with the linked question, I would like to (a) not use third party libraries, (b) use VCL built in techniques where possible but with recourse to the Win32 GDI APIs where needed, and (c) not use GDI+. This simple code, based on the code in the linked question I see that the color blending works but the PNG file's transparency is not preserved,

Delphi XE5 FireMonkey TstringGrid cells don't accept keyboard input

旧街凉风 提交于 2020-01-15 15:57:30
问题 I am using a TStringGrid which is placed on a popup (TPopup). when the user click a button the popup will appear with the stringGrid. user will then insert some data in the cells then clicking an apply button on the popup which will update a data array. the popup is used as a metro style flyout as per firemonkey sample. the problem is that the string grid appears put when trying to edit a cell it doesn't accept any input from the key board. Any idea how to solve this problem. I am using

Where can I specify an output folder for DLLs?

痴心易碎 提交于 2020-01-14 10:33:47
问题 I am confused a bit with a new RAD Studio version! Where can I specify a folder to put my output DLL files? 回答1: It is under Project | Options | Delphi Compiler. The option you are looking for is named Output Directory . The documentation says: Specifies where the compiler should put the executable file. You need to be careful about the various different targets. It's easy to modify the options for the release build, go back to the IDE, compile a debug build, and then wonder why your setting

How to animate a spinner while performing a workload via threading

一笑奈何 提交于 2020-01-13 06:37:07
问题 I am having troubles using multiple threads in my Delphi xe5 application for an iOS device. My goal is to perform 'some work' (SQL query), while having a TAniIndicator is spinning. I have tried using Applicaiton.ProcessMessages(), but that doesn't keep the spinner loading smoothly, if spinning at all sometimes. Here is my current code for a btn.OnClick begin if btnLogin.Text = 'Login' then begin aThread := TMyThread.Create(True); aThread.FreeOnTerminate := true; aThread.Start; while Mode1 = 0

Select and load txt file to android application (Delphi-XE5)

北城以北 提交于 2020-01-06 13:59:10
问题 I would like to browse SD card, select dir and file and load txt file to my Android application created by Delphi XE5. Is any standart component or methods for this ? Like OpedFileDialog ? 回答1: There is no equivalent for TOpenFileDialog on Android. It's not part of the operating system, and is not available from the Component Palette when targeting Android. You can see this by viewing the form in the designer, and then checking the Dialogs tab in the Component Palette; all of the components

make tcp server socket class for android with Delphi Xe5

我的梦境 提交于 2020-01-06 12:40:10
问题 project files on: https://drive.google.com/file/d/0BxODt2IJsmR8cUQ4cVltbWFzYUk/edit?usp=sharing here is the my running codes ........... try soket1:=TJServerSoket.JavaClass.init((8090)); //adres:=soket1.iNetAdres.ip; memo1.Lines.Add('Port: '+inttostr(soket1.Port)); except on E:Exception do memo1.Lines.Add('Port Açılamadı: '+E.Message); end; try memo1.Lines.Add('ip: '+jstringtostring((soket1.iNetAdres.Host))); except on E:Exception do memo1.Lines.Add('ip bigisi alınamadı: '+E.Message); end; ..

make tcp server socket class for android with Delphi Xe5

对着背影说爱祢 提交于 2020-01-06 12:38:32
问题 project files on: https://drive.google.com/file/d/0BxODt2IJsmR8cUQ4cVltbWFzYUk/edit?usp=sharing here is the my running codes ........... try soket1:=TJServerSoket.JavaClass.init((8090)); //adres:=soket1.iNetAdres.ip; memo1.Lines.Add('Port: '+inttostr(soket1.Port)); except on E:Exception do memo1.Lines.Add('Port Açılamadı: '+E.Message); end; try memo1.Lines.Add('ip: '+jstringtostring((soket1.iNetAdres.Host))); except on E:Exception do memo1.Lines.Add('ip bigisi alınamadı: '+E.Message); end; ..

Is DateTimeToString in Delphi XE5 doesn't work?

五迷三道 提交于 2020-01-03 05:29:10
问题 I have small piece of code: DateTimeToString(DiffString, 't.zzz', TDT); ShowMessage('TDT: ' + DateTimeToStr(TDT)); ShowMessage('DiffString: ' + DiffString); which result with first ShowMessage gives random nice DateTime TDT value... second where DiffString is exacly 00:00.000 Could anyone check it in other IDE? 回答1: In fact DateTimeToString works just fine and is behaving exactly as designed. It is doing precisely what you asked it to. Here is the SSCCE that you should have provided: {

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

Use UIDocumentInteractionController in Delphi XE

人走茶凉 提交于 2019-12-30 11:49:09
问题 I have a Delphi XE5 app which downloads and stores PDFs locally on the device. I have a TWebBrowser on the form to view the PDFs and it works perfectly. I now wish to share the PDF with other applications (eg Safari, Mail, etc) but am really struggling! I have looked at the TShowShareAction action (on the Action List control) but this caters for a Bitmap (photo) to be shared. I have seen a lot of posts explaining that one should use UIDocumentInteractionController but I cannot find examples