delphi-xe8

Debugging the XE8 IDE as an application

旧时模样 提交于 2019-12-24 00:29:22
问题 I've been having an intermittent show-stopping problem with the XE8 IDE ever since I first installed it. Every few times I click the File | Open button, there is a brief pause, then the entire IDE shuts down and vanishes. There's no warning, no OS error message and nothing is recorded in the Windows event log (this is on a system upgraded from Win7 to Win10Pro 64-bit since I installed XE8, btw). Sometimes this happens when the only action I take in the IDE is to click File | Open straight

Clear Firemonkey TListView search text

无人久伴 提交于 2019-12-22 12:40:49
问题 ListView1.items.filter := nil; I understand that the above will clear the filter of a listview however if the Search is visible for the listview and something is typed into it, is there anyway of clearing the text from it? 回答1: for I := 0 to ListView1.Controls.Count-1 do if ListView1.Controls[I] is TSearchBox then begin TSearchBox(ListView1.Controls[I]).Text := ''; end; (based on DocWiki!) 回答2: Thanks @Dsm, by answer. I will just suggest a trick to get TSearchBox just one time and store in a

SOAP message - Add authentication in http header

徘徊边缘 提交于 2019-12-22 09:57:07
问题 I have to send a SOAP message to a WebService that needs basic authentication in the http request, but I can't find a way to do it. After searching I found some solutions and workarounds, but none of them worked. Here's my code: procedure TMyForm.HTTPRIOHTTPWebNode1BeforePost( const HTTPReqResp: THTTPReqResp; Data: Pointer); var UserName: string; PassWord: string; begin UserName := 'aaa'; Password := 'bbb'; if not InternetSetOption(Data, INTERNET_OPTION_USERNAME, PChar(UserName), Length

Using GetMem for Allocation of Multidimensional arrays [closed]

99封情书 提交于 2019-12-22 01:43:43
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 4 years ago . How can I to create multidimensional(2D, 3D, 4D) arrays using GetMem and PointerMath ? 回答1: GetMem() only knows about 1-dimensional memory - you specify a byte count, it allocates that many bytes. Period. You would have to divide that memory up into sub-sections to handle them as multi-dimensional

¿How can I send and recieve strings from tidtcpclient and tidtcpserver and to create a chat?

♀尐吖头ヾ 提交于 2019-12-20 06:34:21
问题 im new at delphi languaje and im using Rad Studio to make apps work on every device with oune single programming. Right now Im supposed to make a chat using sockets, I made a chat for windows only using tclientsocket and tserversocket using the next code, what Im trying to do is make the exact thing but using tidtcpclient and tidtcpserver instead of tclientsocket and tserversocket Server: unit Server; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System

Does interface delegation of an inherited interface require a wrapper class?

混江龙づ霸主 提交于 2019-12-20 01:43:49
问题 Delphi allows for interface delegation using the implements keyword. For example IIndep1 = interface function foo2: integer; end; IIndep2 = interface function goo2: integer; end; TIndep1And2 = class(TInterfacedObject, IIndep1, IIndep2) private FNested : IIndep1; //e.g. passed via constructor or internally created (not shown here) public Constructor Create(AIndep1: IIndep1); function goo2: integer; property AsIndep1 : IIndep1 read FNested implements IIndep1; end; That works well, but not for

Best strategy for too many Elements in FireMoneky TListView Item [duplicate]

佐手、 提交于 2019-12-18 05:24:27
问题 This question already has an answer here : Create a customized Item Appearance for ListView Delphi XE7 (1 answer) Closed 4 years ago . Believe me I did my homework before reaching out for help. I spent last 3 days searching and reading but I couldn't come to a solution. So any help will be highly appreciated. My task is to have a ListView connected to a Dataset where the ListView Item is of the following structure: Bear in mind that Elements 4, 6, & 8 are of fixed values & Color (i.e. labels)

How can I disable Castalia in XE8?

落花浮王杯 提交于 2019-12-17 18:48:20
问题 Suppose that I wish to disable the newly integrated Castalia that is introduced in XE8. How do I go about doing that in a clean way? I cannot see anything on the Castalia menu that allows me to disable it by setting one single option. Reasons why one might wish to disable Castalia include: How can I configure the new Delphi XE8 Editor begin-end visual cues? It interacts poorly with the Bookmarks plugin's animations. Castalia has been known to render the IDE unstable. 回答1: You have 2 options 1

Accessing private fields from a Class Helper

核能气质少年 提交于 2019-12-14 02:17:56
问题 Given type TMyClass = class private FPrivateInt : Integer; protected FProtectedInt : Integer; public FPublicInt : Integer; end; in one unit and type TMyHelper = class helper for TMyClass function Sum : Integer; end; [...] function TMyHelper.Sum: Integer; begin Result := 0; Result := Result + FPublicInt; Result := Result + FProtectedInt; Result := Result + FPrivateInt; // <- compiler error here end; in another, the XE8 compiler reports error "E2003 undeclared identifier 'FPrivateInt'. This is

How to use App Tethering with internet connection?

故事扮演 提交于 2019-12-13 07:24:26
问题 I'm using Embarcadero RAD Studio Delphi XE8. Multi-Device Application app tethering components are designed for traditional WiFi and Bluetooth coupling. Does it support also Internet connections? I would like to try to make small p2p app. I'm using App tethering via Wifi but I would like to connect App tethering via internet connection. how to do that ? 回答1: Yes, TCP/IP (LAN and Internet) is also supported. This is clearly explained in the documentation. Using App Tethering The app tethering