delphi-xe5

Links to games created by Windows when delphi projects create exes with specific names

对着背影说爱祢 提交于 2019-12-06 20:05:55
问题 I have a Delphi project called VR that produces an executable named VR.exe. To my dismay I discovered Windows (I am running Window 7 64 bit Ultimate) has added links to the start menu and under games: Search & Rescue: Vietnam MED+EVAC. The icons for the links are the default delphi app icon. Did a bit of research and I found this post: http://social.technet.microsoft.com/Forums/windows/en-US/a5919fc1-db3d-4f13-b241-d059df2bf11f/renaming-a-file-into-vrexe How can I prevent windows from doing

Firemonkey Android Access Calendar and Events

空扰寡人 提交于 2019-12-06 10:09:29
问题 How do I access the Calendar and Events on Android using Delphi XE5. 回答1: To access the calendar you can use the Calendar class which is represented by the JCalendar class in Delphi. You can find a set of samples here And this is a Delphi sample uses Androidapi.JNI.GraphicsContentViewText, FMX.Helpers.Android, Androidapi.JNI.JavaTypes; procedure TForm1.Button1Click(Sender: TObject); var Intent: JIntent; Calendar: JCalendar; begin Calendar := TJCalendar.JavaClass.getInstance; Intent :=

Livebinding JSON objects and arrays

三世轮回 提交于 2019-12-06 08:40:04
Good evening all. I'm currently trying to get to grips with livebindings in Delphi as I'd like to refresh one of my current projects (complete rework from the base for the purpose of pushing to other platforms, optimizing performance and minimizing the code). I'm working with a web API which returns JSON data. The returned JSON format for one example call would look like this; { "response": { "ips": [ { "ip": "111.222.333.444", "classification": "regular", "hits": 134, "latitude": 0.0000, "longitude": 0.0000, "zone_name": "example.com" }, { "ip": "555.666.777.888", "classification": "regular",

FireMonkey XE5 - Livebinding - TGrid - Cell text aligment

放肆的年华 提交于 2019-12-06 08:00:44
I have a Firemonkey Desktop Application for Windows. I have a TGrid which I populate through a visual livebinding TBindSourceDB component. I want some columns to have text aligned to the right, as they are numerical values. I have tried through: onPainting event getting the TTextCell control by number of ColumnxRow typecasting it and setting TextAlignt property to the right None of those measures align the text to the right. I have tried to set it at runtime, unsuccessfully though, getting the TStyledControl and assigning procedures to the onApplyStyleLookup of the TTextCell . Any ideas on it?

Is PascalScript compatible with Delphi XE5 to create Android/iOS/Windows applications?

不打扰是莪最后的温柔 提交于 2019-12-06 07:42:14
I want to create an application that will draw simple forms based on JSON data. I need to have a script to put intelligence on that. Is Pascal Script from RemObjects a solution for that? Is is compatible to generate application with the same source code for Android, iOS and Windows? EDIT: Extending to better understand the need: I have a delphi program that draws a form (pretty much like a dfm file, as a descriptor) and fill it with data from a database. However there is a need for inteligence to validate the data entered. Since the form and data and the validation rules are done by the user

Delphi xe5 exec root command conversion

别来无恙 提交于 2019-12-06 05:39:44
i tried to covert Runtime and Process to send shell command to the rooted phone i don't understand why i had segmentation fault. On internet i found java code like: Runtime.getRuntime().exec(new String[]{"/system/bin/su","-c","reboot now"});` for reboot of the phone or `Runtime.getRuntime().exec("su"); for linux root privileges. I tried only to send the "su" command with a function after the conversion but i think i wrong something... I think that one possible problem can be the array of Jstring conversion from java type. unit Androidapi.JNI.Root; interface procedure AskRoot; implementation

FireMonkey TListview Search Reload Issue

偶尔善良 提交于 2019-12-06 04:02:43
问题 TListview is not reloading properly when you do a search, clear the search and then reload the listview. Using XE5. Steps are: After project is running enter text into search. Clear search either clicking on "Clear" button or deleting the search text or clicking on the search "X" button. Press the "Reload" button. Nothing appears. You can step through the reload procedure and see that each item is added. However, the resulting list count is "0"!!! However, if you add the search text back the

Firemonkey TWebBrowser input alternative?

我的未来我决定 提交于 2019-12-06 03:32:38
问题 As Embarcadero said : " WebBrowser Does Not Accept Keyboard Input on Android On Android devices, the on-screen keyboard is not available in a TWebBrowser control. This means that a user cannot complete a web form, for example. The TWebBrowser control should be used for displaying information or documents. User interaction should be performed with FireMonkey controls. " Link This is very annoying if we have to use Clouds identification pages like Dropbox or Google Drive. Using Delphi XE5 with

How to stretch image in Firemonkey?

霸气de小男生 提交于 2019-12-06 00:42:05
I would like to resize an image to a predefined bitmap of 64 * 64, regardless of its current dimensions and aspect ratio. I tried Bitmap.ReSize but that keeps the aspect ratio. I tried TImage and set the WrapMode to iwStretch . That works to a certain extent in that it indeed rescales the image as I want it, but I can't find a way to get that image out of the TImage . The Bitmap property of TImage still contains the original bitmap. Does anybody know how to fetch the Image from a TImage as it is shown on the screen? Or even better: point me to a function that does this kind of resizing and

How to find Resolution under Delphi XE5

纵然是瞬间 提交于 2019-12-05 23:33:02
问题 I started to develop a game under Delphi XE5 for iOS. I have problem with the Resolution feature of the Firemonkey. When I open the screen and I check resolution on the iPhone I get 320x480. But the native resolution of the iPhone 4 and 5 is doubled. I found at official Delphi pages that FireMonkey is recalculating the screen by "Resolution" which is for Retina display 2. I think this is cool feature for regular apps, but when you start to do game and you want to manipulate with images by