Posts

Originally shared by Thomas Mueller (dummzeuch)

Originally shared by Thomas Mueller (dummzeuch) There are a lot of command line tools that are very useful, but have one flaw: They directly modify a file in place and do not allow you to specify an output file instead. So, if you e.g. want to compare the modified file to the original, you have to make… http://blog.dummzeuch.de/2018/10/07/inplaceexewrapper-for-those-tools-that-do-not-allow-specifying-an-output-file/

Senior Software Engineer seeks remote, contract or full time employment.

Senior Software Engineer seeks remote, contract or full time employment. I have over 20 years of Delphi development and management experience. My expertise covers life-safety product development, sensor data collection and analysis, database design, business apps, RF test and measurement - all using Delphi (D7-Tokyo) and other languages. For more information see: https://www.linkedin.com/in/kevingmccoy/ or write me at gplus@idk-inc.com for a copy of my resume.

Still some hours left for free Expert Delphi at Packt: https://www.packtpub.com/packt/offers/free-learning

Still some hours left for free Expert Delphi at Packt: https://www.packtpub.com/packt/offers/free-learning https://www.packtpub.com/packt/offers/free-learning

FmxLinux 1.33 just released. Now with new default style for Gnome Desktop (Fedora and CentOS Linux). Added few new features for creating RDP clients - see EventSim and Cursors examples.

Image
FmxLinux 1.33 just released. Now with new default style for Gnome Desktop (Fedora and CentOS Linux). Added few new features for creating RDP clients - see EventSim and Cursors examples. History at: https://fmxlinux.com/history.html More Info at: https://www.fmxlinux.com

JSON as an Application's File Format?

JSON as an Application's File Format? My mapping application can save a data file to disk (as do most applications). I simply stream the objects, compress the stream and save it to a file. The problem with this approach is the file format changes whenever I add a new field to an object. I can handle newer versions opening older formats but it's a pain when an older version cannot open a file created with the most recent version. My question is, would saving the data in a JSON format potentially solve this problem? As I understand it, JSON is a text format based around a flexible dictionary-type structure i.e. pairs of keys and values. Let's assume I initiate all objects with default values. As the file is parsed it will look for a key for each property and return the corresponding value. It doesn't seem as if it would be a problem if there was a key in the file that wasn't used by the (older) version of the application. This would provide forward and backward file c...

I am doing an experimental project which is made up of a lot of different screens.

I am doing an experimental project which is made up of a lot of different screens. Most of the examples a read are one form project... will it be possible to design an app that is made of different forms (for example in Android which is made up of different activity).

Hi. I would like to use firedac to connect to microsoft sql server but there is no MSSQL in my list of driver id. Does anyone knows why? It would be great if you can help me solve this, thanks!

Image
Hi. I would like to use firedac to connect to microsoft sql server but there is no MSSQL in my list of driver id. Does anyone knows why? It would be great if you can help me solve this, thanks!

I would have indented the chapter selection list, so it is clear that it belongs to the "Export Chapters" option rather than being a global selection. David Millington .

I would have indented the chapter selection list, so it is clear that it belongs to the "Export Chapters" option rather than being a global selection. David Millington . And also, I would probably have a Group Box around the Export radio buttons and the check list box + associated buttons. Apart from that I like the post. I have seen too many badly designed user interfaces (Yes, Microsoft, I am looking at you.), so maybe this will improve some (but probably not for Microsoft programs). (Also see my rant about "Building less annoying user interfaces" https://blog.dummzeuch.de/2018/08/18/building-less-annoying-user-interfaces-part-1/ ) Some questions remain (maybe to be answered in the next blog post): * What happens if I click on the Maximize or Minimize button of the dialog? * What happens if I click the close button? * Is the dialog sizeable? If not, why not? What happens if I resize it? Does it have a minimum size? Do the controls get moved and resized in a sensi...

Is there any way for an IDE plugin to get the strings displayed in the message window? The control is a virtual tree view, so there is no easy way through the control's properties any more (that was possible up to Delphi 7). Also I am not aware of a working notifier in the OTA for reading these or tracking them as they are being added.

Is there any way for an IDE plugin to get the strings displayed in the message window? The control is a virtual tree view, so there is no easy way through the control's properties any more (that was possible up to Delphi 7). Also I am not aware of a working notifier in the OTA for reading these or tracking them as they are being added. I'm only interested in the messages from the compiler, in particular those about unknown identifiers, if that makes it easier.

Understanding the IDE you're running in...

Understanding the IDE you're running in... http://www.davidghoyle.co.uk/WordPress/?p=2026 http://www.davidghoyle.co.uk/WordPress/?p=2026
Is it safe to upgrade to Delphi 10.2.3 for Android development? I've been using Berlin for the past year and based on messages here and other places it seemed like there were some major issues with apps targeting Android, but it seems like maybe those have been addressed? Anyone here have experience migrating an Android app from Berlin to Tokyo? I'm about to start a new project and would prefer to use the latest version of Delphi if possible. Thanks!
Is there anyone that use x-dbdata ? can help me to get started with this component? thanks

Setting Vcl.Clipbrd.Clipboard.AsText content is *thread-safe*, because internally it calls the GlobalAlloc/GlobalUnlock statements in the SetBuffer method. Is it correct?

Setting Vcl.Clipbrd.Clipboard.AsText content is *thread-safe* , because internally it calls the GlobalAlloc/GlobalUnlock statements in the SetBuffer method. Is it correct?
#FBMC the new MVVM 2.5?

What hotkey do people use in Delphi Berlin to match delimeters ?

What hotkey do people use in Delphi Berlin to match delimeters ? I mean things like begin end, parentheses, brackets. I am surprised I didn't found anything that works without install any plugin. I found this http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Default_Keyboard_Shortcuts Alt+[ / Ctrl+Q+[ Finds the forward matching delimiter. Alt+] / Ctrl+Q+] Finds the backward matching delimiter. That doesn't work or I misunderstood the keys to press... http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Default_Keyboard_Shortcuts

Hello. I need a help on how to develop a simple paint application using multi device application in delphi.

Hello. I need a help on how to develop a simple paint application using multi device application in delphi. I cannot find any tutorials on how to do the application so if you guys have any do mind to share. Thanks.

TPrinter - Read Write Edit and View Documents

TPrinter - Read Write Edit and View Documents REQUEST FOR COMMENTS RFC: OPDC-Printer-2018-10-01-0000-0001 Open Printer and Document Consortium (OPDC) J. Hecht Code4Sale, LLC 121 Louise Dr, Crestview, FL 32636 U.S.A. https://code4sale.com/opdc Reply at: https://code4sale.com/email/OPDC Open DocumentPrinter and PageCanvas API Specification 1.0 Copyright ©2018 by Joe C. Hecht - All rights reserved. Introduction A language independent open API for Virtual Printer and Canvas objects, for the general purpose of reading, writing, editing, conversion, and viewing of most document formats. History OPDC-Printer-2018-10-01-0000-0001 : Initial draft proposal Overview The printer and canvas objects and APIs (as used by developers) have served well at the job of encapsulating the chore of printing. Given the common drawing API used by a printer canvas, in today's world of virtual printers (such as print to PDF), these 'write only' objects can be easily extended to have both 'read...

If I pass records using the Var (by reference) keyword, does it pass the whole record, or just a reference (pointer) to them? This is purely a stack issue. Our records are huge, and we have issues with C# programs (ASP.NET) running out of stack when they call our DLL.

If I pass records using the Var (by reference) keyword, does it pass the whole record, or just a reference (pointer) to them? This is purely a stack issue. Our records are huge, and we have issues with C# programs ( ASP.NET ) running out of stack when they call our DLL.

Here we go with a blast from the past request again:

Here we go with a blast from the past request again: Maaaaaaaaaaaaaaaany years ago, if I remember correctly, the Delphi IDE allowed developers to open two instances of the same file. I am not 100% sure I remember correctly, but 99% yes. Does anyone know if it's still possible and, if so, how to do it? A

Fellow Delphi Developers!

Image
Fellow Delphi Developers! We are glad to announce that StyleControls VCL v.4.05 just released! Key features of StyleControls: - Unique solution to create UWP-like applications (you can fully customize form, enable DWM shadow with hit test for it) - Excellent support of system Themes and VCL Styles - Improves VCL Styles on Forms, Menus and Common Dialogs (and for High-DPI systems) - All controls work fine, faster, without any flickers, have the same functionality with system Themes or with VCL Styles - All controls have support of High-DPI systems with any DPI (no limitations and with VCL Styles) - Complex solution to scale images in controls on High-DPI systems (icons, backgrounds and many more) - A lot of advanced controls to create really modern application - A lot of controls has multi-theme (style) adjustments (for example, one button can looks and works as push button, tool button, spin button and many more) - Additional collection of controls, which use GDI+ (edits, m...

How to unload app from memory when closing the app.

How to unload app from memory when closing the app. After confirming that the user wants to exit the app, I call "close". The app remains in memory as shown in the list of recent apps. I can then switch to it and it is in the same state as it was when it closed. Application. Terminate does the same thing. I want my app to completely unload. Can someone tell me how to do this? Delphi CE, Android SDK 25.2.5 Thanks...Dan'l.

how to add data packet to data set in VCL form. In a sample code I see persistdatapacket binary value for TClientdataset :

how to add data packet to data set in VCL form. In a sample code I see persistdatapacket binary value for TClientdataset : PersistDataPacket.Data = { BF0000009619E0BD010000001800000006000000000003000000BF000743455F......} how to add them, my dataset is used to manually populate data in the code, no data provider in VCL form. The dataset is to used in a data grid, when trying set field, get error: clientdataset missing dataprovider or data packet. Thanks.

I’ve just read Sarina’s post about the Beta 10.3 programme having started and I have an active Update Subscription but haven’t had an invite email yet. I really want to help test the beta so keen to get access.

I’ve just read Sarina’s post about the Beta 10.3 programme having started and I have an active Update Subscription but haven’t had an invite email yet. I really want to help test the beta so keen to get access. Sarina mentions contacting my sales rep if I’ve not had the email but I bought through a U.K. third party so not sure if that’s the correct route. Has anyone else had to do this and if so, how did you request an invite? Is there a specific email address or link to contact the correct team?

FmxLinux 1.32 just released. FmxLinux runtime now embedded to executable, no more extra files.

Image
FmxLinux 1.32 just released. FmxLinux runtime now embedded to executable, no more extra files. History at: https://fmxlinux.com/history.html More Info at: https://fmxlinux.com

Originally shared by Thomas Mueller (dummzeuch)

Originally shared by Thomas Mueller (dummzeuch) Using Application.ProcessMessages is being frowned upon by many because often it means that your program design is flawed. These people usually suggest you should use multi-threading instead, which then opens another can of worms. First of all, let me… http://blog.dummzeuch.de/2018/09/29/calling-application-processmessages-in-a-delphi-program/

Trying to get the text entered in an Android dialog

Trying to get the text entered in an Android dialog I found an example for this here: https://forums.embarcadero.com/thread.jspa?messageID=862688 ASyncService.InputQueryAsync( 'How Many', ['0'], [st], procedure (const AResult : TModalResult; const AValues : array of string) begin case AResult of mrOk: st := avalues[0]; end; end ); How do I implement a callback to capture the entered text? Thanks...Dan'l https://forums.embarcadero.com/thread.jspa?messageID=862688

on calling EncodeString('abc/12345'), declared in unit Soap.EncdDecd, parameter is passed as string

on calling EncodeString('abc/12345'), declared in unit  Soap.EncdDecd, parameter is passed as string I receive the following error message in Delphi XE 10 Seattle " no mapping for the unicode character exists in the target multi-byte code page" any clue please as to what causes this cryptic error?

Small recap of my Smart Mobile Studio presentation in Oslo yesterday

Small recap of my Smart Mobile Studio presentation in Oslo yesterday https://jonlennartaasenden.wordpress.com/2018/09/28/smart-mobile-studio-presentation-in-oslo/

It's time for another demo competition! And boy do I have some prizes in store for you! You have a whole month to flex your coding muscles! Get your freak on show the world who's boss!

It's time for another demo competition! And boy do I have some prizes in store for you! You have a whole month to flex your coding muscles! Get your freak on show the world who's boss! https://jonlennartaasenden.wordpress.com/2018/09/28/delphi-developer-competition/

request for unicode litteral strings like "this" and Ansi strings like 'that'

request for unicode litteral strings like "this" and Ansi strings like 'that' https://quality.embarcadero.com/browse/RSP-21337 https://quality.embarcadero.com/browse/RSP-21337