Delphi

How To Make Superb Python GUI apps using DelphiVCL

Python and Delphi are both powerful programming languages. Delphi, for instance, provides easy-to-use features compared to other languages which make it ideal for most windows application development. Not just it provides clear syntax, but it also offers an easy drag-and-drop system that enables users to build GUI software relatively much faster. Python, on the other hand, is another powerful and clear object-oriented programming language but it suffers when it comes to creating Python GUI apps. Whether you are a long-time Delphi user or a Pythonista, it doesn’t necessarily mean that you have to stick to one language as you can freely combine them both to build a more powerful coding environment. How to get started with DelphiVCL for Python There are powerful features and libraries in Python that are not present in Delphi and there are libraries in Delphi that are not featured in Python. We were recently introduced to the Python4Delphi library that provides a set of free components that wrap up the Python DLL into Delphi which makes it very easy to use python as a scripting language for Delphi applications. However, if you are a Pythonista who wants to embrace some of Delphi’s powerful components, there are powerful Python modules that allow you to build graphical user interfaces with Python using Delphi’s GUI libraries. In this webinar hosted by Embarcadero MVP Jim McKeeth, we will learn more about these newly released free Python modules that bring the power and flexibility of Delphi’s mature GUI frameworks to Python. Delphi is known for its two powerful GUI frameworks including the VCL which focuses on native Windows development and FireMonkey which offers cross-platform GUI app development. These Python modules include DelphiVCL4Python and DelphiFMX4Python. Interestingly, these modules are based on the open-source Python4Delphi, the same technology that powers PyScripter. How to use DelphiVCL4Python module in Python This particular session will focus more on the DelphiVCL module. Generally, the primary focus of this Python module is to provide free Python modules/bindings of Delphi’s GUI libraries to Python developers. The idea is that it gives you the ability to take the powerful, mature GUI frameworks of Delphi’s VCL and use them in Python. DelphiVCL for Python is a native Python module. It is available via PyPi or you can simply download the source via GitHub. It is natively compiled for Win32 and Win64 and should work on Microsoft Windows 8 or newer. Mckeeth also provides some basic samples including the “Hello DelphiVCL Python Script” that is included in Embarcadero’s DelphiVCL4Python GitHub repository. This sample can be opened and explored via PyScripter or any other Python editor. Another sample includes the Activity Indicator (also from the same GitHub repository) which allows you to load up and change Styles in Python. There’s also the Form Exporter that allows users to design their UI in Delphi IDE and export the form in Python. To learn more about these powerful Python modules, feel free to watch the webinar below.

Read More

What Is The Best Windows UI Toolkit For Styles And Effects?

The Windows user interface has changed numerous times over the years, sometimes quite dramatically. The Windows design drastically evolved from the very simple outlines and colors of Windows 3.11 in 1993 to the gloriously advanced Windows UI toolkit of Windows 11. The latest version of Windows brought us the new Fluent Design System, a revamp of Windows Metro that includes guidelines for the designs and interactions used within software designed for all Windows 10 devices and platforms. In this webinar, Jim McKeeth will walk us through the evolution of Windows Design and will dive into the latest changes in Windows Fluent Design System. How did Windows design evolve over time? In this video, we will revisit all the five eras of windows UI starting with Windows Classic which includes Windows 3.11 which notably features a very simple set of outlines, very few colors with 16 to 256 color display. In Windows 95, we were introduced to shaded bevels for a slight 3D effect while Windows 98 introduced us to Gradient title bars. Windows Luna is the next era of Windows design that was introduced in Windows XP and provided us with gradients for a greater 3D rounded look. This is eventually followed by Windows Aero which came with Windows Vista which added transparency and glass effects. Next to it is the Windows Metro which is notable for its flat primary color designs, a UI that was also applied for Windows Phone and Xbox console. Developed in 2017 by Microsoft, the Windows Fluent Design System is considered to be a revamp of Metro that provides an evolution of all the UI systems of Windows. What are the latest updates with Windows Fluent UI? Interestingly, Fluent Design preserves the clean look and feel of Metro featuring its signature simple flat-esque design while renewing the visuals that Aero had including the blurred translucency, drop shadow, and highlighting effects of the mouse cursor. The video will also walk us through the new design principles of Windows 11 as well as the signature experiences including Geometry, Layering and Elevation, Color, Materials, Iconography and Typography, and Motion. McKeeth will also share with us how to make your applications look the best on the latest version of Windows 11. This includes the use of Windows VCL Styles. Delphi and C++ Builder included the new Windows 11 VCL styles that are available to GetIt Package manager which comes with a dark mode and light mode. Some useful components for Delphi were mentioned in this video including the Skia4Delphi which we’ve seen from the previous DelphiCon webinar. To know more about the latest Windows UI changes for Windows 11, feel free to watch the video below.

Read More

Why You Should Know About Test-Driven Development On Windows

Development is hard! Well, I should really say that good development, getting things to work properly, efficiently and reliably, is hard. Even the best developers make mistakes and introduce bugs or unexpected behavior. It doesn’t matter if you’re carrying out that software development on Windows with powerful IDE software which catches a lot of the mistakes before they reach your users – you can still get problems which seep through, potentially disastrously. Test-driven development is a technique which tries to stop that particular problem in its tracks by employing methods where the tests of the code’s desired behavior and functionality are written first and then the code created to make those tests pass. Developers who use test driven development say they find it leads to much improved quality of the code’s final product. In this video, Embarcadero Technology partner and MVP Serge Pilko talks to fellow MVP Jens Fudge about the pros and cons of test-driven development.

Read More

Why You Should Use TFrameStand In Your Cross Platform Apps

One of the hardest challenges when developing cross platform apps is making the navigation and presentation of the app’s screens work consistently. Each platform, whether desktop or mobile, seems to have a different way of making it work. Combine that with the challenges of scaling your wonderful app handiwork so that it looks great on the daunting array of screen sizes and available pixel resolutions, and it can really start to become burdensome. How does Delphi help with cross-platform app challenges? Luckily Delphi developers are blessed with a superb assortment of components and solutions to help them stay focused on the actual code features while the low-code component architecture abstracts all the complications sizing and scaling away from them, so they don’t have to trouble themselves with writing reams and reams of scaffolding code. This is the kind of “don’t write more code than you really have to” attitude to software development which attracted me to Delphi in the first place. What other solutions are available for cross platform application development with Delphi? But even the best auto-scaling and built-in native components can still benefit from the massive ecosystem of third-party components and code we get to benefit from thanks to Delphi’s longevity. In this video, Embarcadero Technology partner and MVP Serge Pilko talks to fellow MVP Andrea Magni about Andrea’s hugely popular TFrameStand component which elegantly solves lots of common problems coders can face when trying to implement navigation in their apps. I’m a big fan of Andrea’s and his TFramestand and it’s great to see Serge in discussion with him. You can also read and see more on TFrameStand on the Embarcadero blog.

Read More

8 Go-To Resources About Development On Windows

Alvin Toffler once wrote: “The illiterate of the 21st century will not be those who cannot read and write, but those who cannot learn, unlearn and relearn.” Ironically, we are in the 21st century, and Windows software development is not an exception. This perpetual process of learning and unlearning can be tedious without proper resources. Fortunately, tons of free and premium resources are available to make our journey pleasurable. Let us review the eight most essential resources for software development on Windows. 1. Do you know about Embarcadero Academy? Embarcadero Academy is a unique resource for Delphi certifications and professional courses. While the main focus is on Delphi and C++ Builder, many other languages and modern software development topics are available. In addition, while there are premium courses, many resources are entirely free. Four main areas of this site are as follows: Delphi Courses are available from Beginners to Advances and comprise of latest changes and updates. Topics included are Popular Frameworks like VCL(Windows Development), FireMonkey(Cross-Platform Development or FMX), Delphi Generics, Interfaces, Data Aware Apps, XML, REST, Android Clients, and up to Object Pascal. Delphi Certifications are available to certify knowledgeable programmers. Certificates require passing Exams that thoroughly test the programming knowledge of a Delphi Developer. Passing marks are 80%, and the certificate is valid for two years. Packages include a downloadable study guide, practice Exams, Official exams, and Exam Retakes. Upon passing, you will receive a certificate of achievement and a certified developer logo to distinguish yourself. Other languages: Besides Delphi, it has video courses on other popular languages like Java, JavaScript, C, C#, and C++. Courses range from introductory “Learn to program” to “Advanced Programming” and master-level programming. Online Sessions like Delphi Bootcamps, CodeRage sessions, Conferences, Webinars, Replays are available. Hundreds of hours of video courses are available. You can sign up for free to join Embarcadero Academy now. 2. How to get off to a flying start and quickly learn C++? C++ is a complex language if you don‘t access excellent learning resources. Fortunately, Learn C Plus Plus is a great free resource available for you to learn and apply C++ skills. The site currently contains: Content about C++ Syntax, Code snippets, language features, and articles related to C++11. Hundreds of hours of videos related to hot topics related to C++. A lot of content is about how to solve or do a particular task. This approach is advantageous in practical programming. The site also has a page offering free licenses of superb C++ development tools. Visit Learn C++ now. 3. Do you know what Delphi social networks are available? Joining a social network to get help from fellow programmers and experts is an excellent shortcut to problem-solving. The golden tip for getting help from a community is first to do your homework and then explain your problem in detail so that others can easily understand and help. There are many active Delphi communities and forums available. You can get help and showcase your development for free tips and improvement ideas. Some of these social networks are: Delphi Praxis and Delphi topics at Stack Overflow are vital Delphi resources. Delphi developer and C++Builder Developer might be interesting if you are an avid Facebook user. Delphi Reddit and many LinkedIn places available like Delphi Professionals Delphi And Pascal […]

Read More

The Next Big Thing in Native Windows Development

What, precisely, do we mean by native app development? What is a native user experience or native developer experience? What are the pros of native app development? Why has Native Windows development come storming back on center stage and become such a hot topic? We want to briefly talk about native app development and explain why you should get in with the In Crowd. What is a native app? Native applications are not only defined by the look and feel or fonts. Yes, if you follow these UI guidelines, it looks great and smooth. But if your app is running on Windows, it should behave like other native Windows applications, and if it is another platform, for example Android, it should behave like Android apps. The app needs to look visually cultivated it also needs to keep up with the users’ expectations of how it should behave and contain certain core functionality. It is a problem if it does not behave like the other apps, doesn’t comply with widely established system behaviors, or does not give the performance they need. Native apps are not just about look and feel, they need to be an all-round, first-class good citizen of the operating system environment.  Native user interface controls achieve compliance and help meet the users’ expectations because they follow the system and behave as it should be, largely by allowing the operating system to enable their functionality with minimal additional code on top. For instance, in our case, standard Win32 UI controls, like how they react to clicks and animations and how the shadows and fonts behave when there is a window resizing. We need this because users have subconscious anticipations – “muscle memory” – from the application. If it resizes and animates differently, you risk losing a star in an online review or, perhaps worse, having your application uninstalled and your reputation permanently dented which in turns creates a barrier to the adoption and success of any future applications you might develop. What other benefits are there to using native components in our applications? Now let’s see another side of native applications. Except for these UI/UX, native applications also utilize system functions and hardware technologies present on the target system or device. Native applications can access this hardware directly, which gives much higher performance than apps which use layers of abstraction and support code to achieve similar but inferior functionality. To really create native applications for Windows, your selected development tool should allow you to utilize the system-defined UI controls and libraries. For instance, Delphi with the Visual Component Library (VCL) is the easiest and most stable platform with maximum native power for Windows desktop app development. What is native app development? Now you know the meaning and benefits of native applications. The development process of native applications starts with selecting the proper framework or library. More than two decades ago, there was not much abstraction, variety, or choice of code libraries because the standard operating system APIs were basic and easy to work with them directly. This is no longer the case. Currently, we have Visual Component Library, FireMonkey, Universal Windows Platform, Window Forms, and others. These frameworks and libraries are handy because they have implemented layers of abstraction but making the right choice means picking ones which have a light touch without […]

Read More

The Ultimate Cheat Sheet On Windows 10 App Development

Today is an exciting and dynamic time to be a developer. Technology advances seem to have accelerated and, with this, our software projects seem to paradoxically expand and shrink simultaneously. They expand because more devices and environments are becoming available to them. They shrink because we tend to use the same tools for developing all variants of our work. Past developers could have a single-minded focus on a particular environment or toolset. In contrast, today’s developers have to consider so many things before starting their Windows 10 App Development journey. So, let us discuss some of the crucial points along that voyage of development. What is the history of your IDE/Framework? Knowing about history is important because historical mistakes, missteps, and abject failures might repeat themselves. As a developer, we invest a lot of resources, both physical and emotional, in a project. If fundamental tools like programming language, IDE, or frameworks drastically change overnight, we must rebuild, almost from scratch, wasting almost all our investment. This repeated rebuilding can – and mostly likely will – increase costs for our clients too, and they won’t be happy either. Delphi has a great history in this regard. Upgrading older projects to newer ones is so straightforward that we can do it in no time. In less than a week, in my work, we recently upgraded a 2003 Windows (VCL) version project to 2022 multiplatform (FMX) project. Our customer was happy and surprised too. Unfortunately, most other tools do not follow the same policy, resulting a tragic graveyard of abandoned projects. If this is growth, then what is a disaster? It is wise to search for the backward compatibility history of a tool before devoting yourself to it. What sort of longevity does the tool provide? What stability does it give when moving from one version of the tool to another in terms of compatibility? It’s important to ask these questions, because if a company abandoned backward compatibility in the past, it would also happen with you in the future, and then it will be too late. Also, if your IDE has no history, ask yourself, is it wise to invest in it heavily? Nobody wants to be the pathfinder, the early adopter who is sacrificed to ensure those who come along later benefit from their trials and tribulations. Why does compilation speed matter? A finished software project is a compilation of hundreds or thousands of iterations of build, test, debug cycles. Pascal, in general, and Delphi, in particular, are famous for high-speed compilation. The specific structure of a Pascal program and multilevel optimizations applied by Delphi gives RAD studio an extreme edge in compilation speed and executable production process. For example, in one typical test, Delphi compiled one million lines of code in under 5 seconds. This super-fast compilation speed can be your friend in hard times of late-night iterative debugging and the seemingly common deadline congestions of a product release date. How to distinguish between Low-Code hype and the real thing? Like all new jargon, many companies misuse NoCode/LowCode words in the software industry. Fortunately, it is easy to distinguish between real and over-hyped tools. Every tool geared toward novice users and non-programmers is a lousy option. Ultimately, you have to write code to push things to their limits or customize […]

Read More

Everything You Need To Use AWS SES Natively In Your Apps

Email seems so old now when considering all the messaging options available. It is old, 50+ years old! It’s been the lifeblood of many business processes and is still as important today as it ever was. AWS has a plethora of great services, but they can be a little challenging for Windows app development. With that in mind, the next release of Appercept AWS SDK for Delphi 11.0 includes support for Amazon Simple Email Service (SES). Amazon SES is a reliable, scalable, and cost-effective email service and can be used for marketing campaigns, notifying users, or transactional emails. Let’s see how we can send a simple email… program SendEmail; {$APPTYPE CONSOLE} implementation uses AWS.SESV2; var Client: ISESV2Client; Destination: ISESV2Destination; EmailMessage: ISESV2Message; Request: ISESV2SendEmailRequest; Response: ISESV2SendEmailResponse; begin Destination := TSESV2Destination.Create; Destination.AddToAddress(‘world@example.com’); EmailMessage := TSESV2Message.Create(‘Announcing…’); EmailMessage.Body.Text := ‘Hello, World!’; Request := TSESV2SendEmailRequest.Create; Request.FromEmailAddress := ‘sender@example.com’; Request.Destination := Destination; Request.Content.Simple := EmailMessage; Client := TSESV2Client.Create; Client.SendEmail(Request); end. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 program SendEmail;   {$APPTYPE CONSOLE}   implementation   uses   AWS.SESV2;   var   Client: ISESV2Client;   Destination: ISESV2Destination;   EmailMessage: ISESV2Message;   Request: ISESV2SendEmailRequest;   Response: ISESV2SendEmailResponse;   begin   Destination := TSESV2Destination.Create;     EmailMessage := TSESV2Message.Create(‘Announcing…’);   EmailMessage.Body.Text := ‘Hello, World!’;     Request := TSESV2SendEmailRequest.Create;   Request.Destination := Destination;   Request.Content.Simple := EmailMessage;     Client := TSESV2Client.Create;   Client.SendEmail(Request); end. This is just the start. Why not start your next email marketing campaign with Amazon SES with tools written in Delphi? Or, seamlessly integrate email into your existing business applications built in Delphi? Appercept AWS SDK for Delphi is available exclusively with active Enterprise or Architect subscriptions for Embarcadero Delphi or RAD Studio. You can install the SDK through the GetIt Package Manager within Delphi or RAD Studio if you have an active subscription.

Read More

View From The Tap – Bulgarian Firm Supports Country’s Market Leaders With Delphi And InterBase (Case Study)

Using InterBase and Delphi, Bulgarian software company Bonev Soft (BSoft) has made financial management and tax payments painless for the country’s industry leaders for over 20 years. BSoft’s flagship software, AJUR®, is an integrated management system for Windows very popular with government and non-government organizations in Bulgaria and around the world, across a number of vertical industries – from manufacturing and financial services through to power generation. More than 5,000 BSoft customers use AJUR to provide financial reports to tax authorities and various other stakeholders, and closely manage their supply chains. Among them are many of Bulgaria’s industry leaders. The View From The Tap Case Study explores how BSoft solved its scaling and efficiency challenges using a highly effective combination of Delphi and InterBase. Read The Case Study

Read More

Are You Getting The Most Out Of Your Windows App Development?

Windows 11 marks a visual evolution of the Windows operating system. As Windows moves forward, customers set a higher bar for desktop applications and massive demand for Windows app development. These customer expectations can be: Good performance on the low-cost app Native app user experience Complete matching with the latest design principles Support for modern window features like window snaps Support for shell integration or other native features support Easy to distribute on Microsoft Store Easy access to Windows App SDK or any other native libraries Great applications always meet these requirements.  Embarcadero Delphi Are you taking the right steps to build visually appealing modern Windows 11 Apps? While there are dozens of different technologies to build Windows applications, only a few of them offers all these capabilities built-in. For instance, Microsoft offers tools to make modern Windows apps with all the recent updates and features. But there is one more leading technology that has been thriving in Windows desktop development for more than 27 years now by providing the latest and freshest features and a unique graphical user interface development platform. It is Embarcadero Delphi! Since the beginning of Delphi with its Visual Component Library, it has been thriving in the Windows desktop app development industry. It offers hundreds of visual and non-visual components to build apps 5x or 10x faster than other GUI development tools. Delphi Cross-Platform Native App Development Are you using the latest Common Controls for Windows app development? Windows 11 brings beautiful UI innovations. By using new standard controls, you get the benefits of compatibility and accessibility for free. With Delphi and Visual Component Library, you can efficiently utilize modern controls. There are dozens of styles to quickly turn your futuristic UI to Windows 11 UI or even something unique. 2D & 3D Game Development with Delphi Why should you select Delphi for Windows app development? Delphi and its RAD Studio IDE profoundly improve developer productivity and product time-to-market. Not only that, developing one codebase to reach every desktop and mobile platform streamlines successive escapes and product maintenance. Delphi with Visual Component Library and FireMonkey framework gives you the best environment to quickly build any application, not only for Windows app development but also for cross-platform to Macs, iPhones, iPads, Linux computers and more.  WPF with the .NET framework offers small teams native entry to Windows applications and solid IDE but struggles to match Delphi’s productivity, IP security, and performance. Also, when you compare Electron, it gives a free alternative to Delphi and WPF and cross-platform capability like Delphi. Still, when it comes to productivity and security, it misses Delphi. Find out which is the best technology for Desktop Platform Moreover, according to that research paper, Delphi’s build time is better than Electron and WPF .NET for database connectivity. Besides, there is a clear indication that Delphi’s FireDAC database engine and network tools abstract layers of operations better than NodeJS, reducing developer effort and opportunities for error. Figure 2 – Delphi, WPF, and Electron comparison Are you using the best UI framework for Windows 11 Development? Compared to Microsoft’s technology stack, like C# WPF, or UWP, going with Delphi FireMonkey is one of the most reliable ones. It is not that they are unreliable, but they have a different approach to building the blocks and […]

Read More