delphi-xe6

GetAdaptersInfo not working on Delphi XE6

天大地大妈咪最大 提交于 2019-12-04 17:41:49
I finally bit the bullet and bought XE6 and as expected, the Unicode conversion is turning into a bit of a nightmare. So if anyone can enlighten me on why this simple Windows API call fails, it would be most appreciated. The function does not return an error, the first call gets the correct buffer length, the second call fills the record with garbage. This works fine under Delphi 2007 but fails on XE6 with unicode garbage in the pAdapterinfo return record even though it is explicitly declared with AnsiString in IpTypes.pas System is Win7(64) but compiling for 32 bits. uses iphlpapi, IpTypes;

Firemonkey TWebBrowser input alternative?

北战南征 提交于 2019-12-04 07:15:54
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 REST components, I'm able to open the login pages, but the keyboard is not functional on Android. So

How to simulate drop-down form in Delphi?

半城伤御伤魂 提交于 2019-12-03 02:27:25
问题 How can i create a "drop-down" window using Delphi? Everything beyond this point is research effort; and is in no way related to the answer. Research Effort Making a proper drop-down requires a lot of pieces to carefully work together. I assume people don't like the difficult question, and would rather i asked seven separate questions; each one addressing one tiny piece of the problem. Everything that follows is my research effort into solving the deceptively simple problem. Note the defining

Delphi internal error code: Delphi XE6 [dcc64 Fatal Error] .pas(): F2084 Internal Error: AV08F046D5-R00000000-0

淺唱寂寞╮ 提交于 2019-12-02 20:16:12
问题 Does anyone know what this is: Delphi XE6 [dcc64 Fatal Error] .pas(): F2084 Internal Error: AV08F046D5-R00000000-0 I get it if I try to compile a project in the project group (which includes a design time library, a non-visual library, and an executable). A build all on the project group makes it go away but I am concerned about what it might indicate, if anything... The application has to be Win64 compatible, but the libraries have to compile in Win32. Is it just that dcc64 is having trouble

How to simulate drop-down form in Delphi?

余生颓废 提交于 2019-12-02 15:57:27
How can i create a "drop-down" window using Delphi? Everything beyond this point is research effort; and is in no way related to the answer. Research Effort Making a proper drop-down requires a lot of pieces to carefully work together. I assume people don't like the difficult question, and would rather i asked seven separate questions; each one addressing one tiny piece of the problem. Everything that follows is my research effort into solving the deceptively simple problem. Note the defining characteristics of a drop-down window: 1. The drop-down extends outside it's "owner" window 2. The

Delphi internal error code: Delphi XE6 [dcc64 Fatal Error] .pas(): F2084 Internal Error: AV08F046D5-R00000000-0

送分小仙女□ 提交于 2019-12-02 09:18:41
Does anyone know what this is: Delphi XE6 [dcc64 Fatal Error] .pas(): F2084 Internal Error: AV08F046D5-R00000000-0 I get it if I try to compile a project in the project group (which includes a design time library, a non-visual library, and an executable). A build all on the project group makes it go away but I am concerned about what it might indicate, if anything... The application has to be Win64 compatible, but the libraries have to compile in Win32. Is it just that dcc64 is having trouble with the 32 bit components - or something else in my options perhaps? That is an internal compiler

Delphi Firemonkey Cross Platform - Generic way to pass a Windows Handle

喜欢而已 提交于 2019-12-02 07:51:03
问题 I'm knee deep in my second Firemonkey app for Windows and OSX and slowly converting my library of functions to handle cross platform issues. I am trying to create a generic SelectDirectory function that will run platform specific code for Windows or OSX. I have SelectDirectory working great for both platforms called individually, but the Windows specific one requires a hwndparent handle to run. This is being run in a IFDEF MSWINDOWS directive (just as the OSX one is in its compiler directive)

Delphi Firemonkey Cross Platform - Generic way to pass a Windows Handle

你离开我真会死。 提交于 2019-12-02 06:14:51
I'm knee deep in my second Firemonkey app for Windows and OSX and slowly converting my library of functions to handle cross platform issues. I am trying to create a generic SelectDirectory function that will run platform specific code for Windows or OSX. I have SelectDirectory working great for both platforms called individually, but the Windows specific one requires a hwndparent handle to run. This is being run in a IFDEF MSWINDOWS directive (just as the OSX one is in its compiler directive). How can I pass a generic handle to this function or how can I reference Application.MainForm or

XE6 TListView column widths become zero if you read column.width

帅比萌擦擦* 提交于 2019-12-02 02:29:04
问题 There is a bug in TListView . Reading a column's Width can cause the listview to try to get the column width from the underlying Windows LISTVIEW control directly - before the Win32 control's columns have been initialized. Because the columns have not been initialized, the listview's LVM_GETCOLUMNWIDTH message fails, returning zero . The TListView takes this to mean that the width is zero, and makes all columns zero. This bug was introduced sometime after Delphi 5. Steps to reproduce Add a

XE6 TListView column widths become zero if you read column.width

泄露秘密 提交于 2019-12-02 01:13:05
There is a bug in TListView . Reading a column's Width can cause the listview to try to get the column width from the underlying Windows LISTVIEW control directly - before the Win32 control's columns have been initialized. Because the columns have not been initialized, the listview's LVM_GETCOLUMNWIDTH message fails, returning zero . The TListView takes this to mean that the width is zero, and makes all columns zero. This bug was introduced sometime after Delphi 5. Steps to reproduce Add a report style listview with three columns to a form: Add an OnResize event handler to the listview: