delphi-xe7

Set method of TPicture property doesn't get called when the form is created

我的未来我决定 提交于 2020-01-04 14:13:01
问题 Here's my component overall structure: My Component property Categories: TCollection (of TCategory) TCategory property Icon: TPicture read FIcon write SetIcon; property Example: Integer read FExample write SetExample; (Other category properties...) (Other properties...) In the Object Inspector of the IDE, I choose a picture and it gets serialized successfully (I checked it in form view as text). I set a breakpoint on SetIcon method and when I compile and run the application, it doesn't get

Delphi Login Form using App Tethering by Connecting to SQLite Database

余生长醉 提交于 2020-01-04 05:53:30
问题 Hi, EveryBody! I'm new to programming! I need your help plz. I've 2 project: 1. Project Login page. Using App Tethering and 2 buttons(Connect button =>connects to the server AND Login button=>Sends request to the Server to check Valid username and password). 2. Project Server page. In a Server Page using App tethering and FDQuery +( SQLite database test.db). When Client Connects to the Server and sends request to the Server to check valid username and password it gives wrong result. plz help

Delphi XE7 Android Fullscreen (hide softkeys)

感情迁移 提交于 2020-01-04 03:55:24
问题 How to Fullscreen in XE7, hiding both the top (title) and bottom (softkey) toolbar? In XE6 I could adjust the AndroidManifest to make my application go fullscreen and without the actionbar by writing in the application section: android:theme="@android:style/Theme.Holo.NoTitleBar.Fullscreen" > In XE7 this did no longer do the job, I found a Russian website with more information on the matter. Here is the first 'static' option: Suppose the situation: The application should always work in full

Delphi XE7: How to get native statusbar behavior in iOS 7?

二次信任 提交于 2020-01-02 23:00:12
问题 In iOS 7 the default behavior of the statusbar is to be transparent, but that seems impossible in Delphi XE7. The statusbar always get the same color as the mainform (which was the default behavior in iOS 6). The Mainform.borderstyle controls if the statusbar is shown or not, but I cannot find any way to set it transparent. I have tried setting UIViewControllerBasedStatusBarAppearance and UIStatusBarStyle in the info.plist and tried to call TUIApplication.wrap(TUIApplication.OCClass

How to send email with attachment using default Android email app - Delphi XE7

两盒软妹~` 提交于 2020-01-02 18:07:12
问题 Using code below which I found on another post, the email appears ready to send with the attachment, but when email is received, there is no attachment. Also, the email address has to be manually entered, it is not populated by the CreateEmail statement. I am sending from a gmail account. Anyone help please? procedure TForm1.CreateEmail(const Recipient, Subject, Content, Attachment: string); var Intent: JIntent; Uri: Jnet_Uri; AttachmentFile: JFile; begin Intent := TJIntent.Create; Intent

How to send email with attachment using default Android email app - Delphi XE7

帅比萌擦擦* 提交于 2020-01-02 18:07:10
问题 Using code below which I found on another post, the email appears ready to send with the attachment, but when email is received, there is no attachment. Also, the email address has to be manually entered, it is not populated by the CreateEmail statement. I am sending from a gmail account. Anyone help please? procedure TForm1.CreateEmail(const Recipient, Subject, Content, Attachment: string); var Intent: JIntent; Uri: Jnet_Uri; AttachmentFile: JFile; begin Intent := TJIntent.Create; Intent

How do I tell if TDBImage my has been erased/emptied?

时光总嘲笑我的痴心妄想 提交于 2019-12-25 18:35:34
问题 I have a TDBImage control on my form. Users can CTRL - V images in to it. They can also CTRL - X in the control to clear the image. When I later try to take the contents of that TDBImage as save it to my database I get memory access violations, in particular when I generate the memory stream. Naturally my first inclination is to see if the TDBImage is somehow empty before I do this (and clear the database field my self). But I can't seem to find a way to detect if the control has been CTRL -

How to show/hide a console window app?

这一生的挚爱 提交于 2019-12-25 07:46:55
问题 I have a small console app. I want to hide its window when it is called from my main program (with -hide as command line parameter) and show it when the user starts it (no command line param). This question suggests that using {$APPTYPE GUI} instead of {$APPTYPE CONSOLE} will hide the window. And indeed it works. But how do I make the window visible when ran by user? Purpose: I want my main program to interact with the console app silently in the background (console is invisible). So, when

On Redraw ListBox is not going to last entry

血红的双手。 提交于 2019-12-25 01:21:03
问题 I have a listbox Initially set up in LiveBindings which shows a Bitmap Image, some Text (First line of a house address) and the detail text is the Postcode. When I initially run the program everything is fine, all the addresses in the Database Table show in the listbox. I then add an address and it is added to the bottom of the list. I should say my program redraws the Listbox at runtime when I add an address. The added address is shown at the bottom of the listbox but I cannot access it. If

Why can't I debug a Delphi XE7 Android app on my device?

筅森魡賤 提交于 2019-12-24 11:53:38
问题 I am able to debug on an Android Emulator, but when I want to debug on ASUS Memorypad 7 it doesn't work. After I hit cancel it gives the following message: Unable to start gdbserver on port '64311'. Port is already in use. I have changed the port several times in the Run parameters, but it still gives the same message. 回答1: Try restarting everything first. Then follow Embarcadero`s guide: Unable to start gdbserver on port : Port is already in use where is the port number being used by the