delphi-xe6

Delphi XE6 “Error reading form”

别等时光非礼了梦想. 提交于 2019-12-11 05:50:39
问题 Been having an issue since the last few XE releases, after opening a project, if the first form I open in the IDE has a considerable amount of VCL, I get an error like this This also happens if the project had been saved with that form opened last time I closed it, then the error pops right as I restart Delphi and it automatically loads the last project or after loading the project. It happens only after the first time I open Delphi. If I close the project and then reopen it without closing

Image canvas drawing ends up on form instead

二次信任 提交于 2019-12-11 05:28:21
问题 I'm trying to draw some custom shapes on the canvas of a TImage, but the output ends up on the TImage parent form's canvas instead. It appears I have to convert my points from local to absolute to make this work, but that causes problems too. See example: Does anyone know why Image.Canvas.DrawArc (etc) draws relative to the parent form instead of relative to the Image? If I go through the trouble of .LocalToAbsolute... why does the arc look so different? The project is simple: Firemonkey HD

Why are there errors in my structure viewer pane but not when I compile?

南楼画角 提交于 2019-12-11 03:44:04
问题 I build my project, and there are no errors: That's because the build succeeded without any errors: This is a good thing. The application runs and everything! Except there are errors What the compiler doesn't tell me is that there are errors: I just happened to have this file open. And i just happened to have the Structure viewer open. And i just happened to see the errors. Is there a way for Delphi to report all error it encounters during a build? Is optimization on? No It's no big deal for

Delphi XE6 ARC on OSX releasing variables

痞子三分冷 提交于 2019-12-10 19:08:41
问题 I'm having a problem with NSObject instances being freed when I don't expect. I have a form variable of type NSNumber, in button1 I create an instance and set a value, in button2 I read the value. If I don't call retain in button 1 then the variable is freed and the app hangs when I click button2, adding a call to retain makes everything work. This is on OSX using Delphi XE6 with firemonkey. Here's some code Define a form variable of type NSNumber Fv : NSNumber; Now add a couple of buttons

IDE Insight quit working

橙三吉。 提交于 2019-12-10 12:56:01
问题 At some point, my IDE Insight function stopped working. I have checked both the XE5 and XE6 versions that I have on my system and neither work, so it must be environmental. When I click on the menu item, nothing pops up. There is no error given, just no IDE Insert screen. The same results happen when using the shortcut. I am running Windows 7, Delphi Professional XE5 and XE6. Anyone know how to fix this? 回答1: The IDE Insight window was removed in XE5. Instead, there's an edit box top right of

print a string directly to printer

我的梦境 提交于 2019-12-10 11:03:57
问题 i need to print a string directly into the printer i found this code by searching uses WinSpool, Printers type TDoc_Info_1 = record pDocName: pChar; pOutputFile: pChar; pDataType: pChar; end; procedure PrintSimpleText(sPrinter, sText: String); var sTitle: String; hPrinter: THandle; PrnDocInfo: TDoc_Info_1; lst: TStringList; i: Integer; n: Cardinal; sTextLine: String; bFound: Boolean; begin lst := TStringList.Create; try lst.Text := sText; //with CRLF //new doc sTitle := 'Raw print';

How to correctly have modeless form appear in taskbar

情到浓时终转凉″ 提交于 2019-12-08 17:00:02
问题 I am trying to achieve the age-old Delphi dream of having a modeless form appear in the taskbar. What is the correct way to have a modeless form appear in the taskbar? Research Effort These are my attempts to solve the problem. There are a lot of things needed to make it behave correctly - simply having a button appear on the taskbar is not a solution. Having a Windows application behave correctly as a Windows application should is my goal. For those who know me, and how deep my "shows

How to change the TTabItem's style

青春壹個敷衍的年華 提交于 2019-12-08 13:41:40
问题 Please take a look at the following picture: I need to modify color of blue bar at the TTabItem. But I did not find any place available for modification. Which attributes or styles can modify it? 回答1: to change look of tabitems you can design your custom style. Using TStyleBook component or Load an style to StyleBook and modify tabitemstyle on layout tree. You can watch this film to see how to manage styles properties. How to style buttons in Firemonkey with Delphi XE4 回答2: The answer by

How can I drag & drop a file from the shell? [duplicate]

无人久伴 提交于 2019-12-07 16:59:35
问题 This question already has answers here : Cross-application drag-and-drop in Delphi (2 answers) Closed 5 years ago . I am trying to drag and drop a video file (like .avi) from desktop But ı can not take it to the my program.But when ı try to drag and drop inside my program it works fine.For ex: I have an edittext and a listbox inside my pro and ı can move text that inside edittext to listbox.I could not get what is the difference ?? I take the video using openDialog.But ı wanna change it with

Delphi & Indy & utf8

ε祈祈猫儿з 提交于 2019-12-07 13:59:44
问题 i have a problem to access into websites whit utf8 charset, for example when i try to accesso at this www Click for example all utf8 characters are not correctly codified. This is my access routine: var Web : TIdHTTP; Sito : String; hIOHand : TIdSSLIOHandlerSocketOpenSSL; begin Url := TIdURI.URLEncode(Url); try Web := TIdHTTP.Create(nil); hIOHand := TIdSSLIOHandlerSocketOpenSSL.Create(nil); hIOHand.DefStringEncoding := IndyTextEncoding_UTF8; hIOHand.SSLOptions.SSLVersions := [sslvTLSv1