Pawel Glowacki: Delphi Programming

Paweł Głowacki works for Embarcadero Technologies (http://www.embarcadero.com) as European Technical Lead for Developer Tools. Previously, Paweł spent over 7 years working as a senior consultant and trainer for Delphi within Borland Education Services and CodeGear. As well as working with Embarcadero customers across the region, he also represents Embarcadero internationally as a conference and seminar speaker.


Posted by on in Blogs
Upcoming Wednesday's Delphi Developer Webinars I have been missing doing live developer webinars:-) The last two on migrating to RAD Server and on APPX development for Windows Store were almost one month ago, so it is high time to return to more systematic webinar schedule! Please book your agenda for upcoming Wednesday's Delphi Developer webinar this quarter. It is always Wednesday, take off at 11am Amsterdam time (10am UK). One hour of live demos and hopefully informative and useful content for all Delphi developers. Wednesday's Delphi Developer Webinars Upgrading to RAD Studio Enterprise, February 1st, Weds, 11am (GMT+1, Amsterdam)  This webinar is primarily aimed at developers still on "Professional" version of Delphi. I'...
Posted by on in Blogs
TCalendarView Custom Painting The latest version of RAD Studio 10.1 Berlin Anniversary Edition introduced among other things two brand new VCL controls: TCalendarView and TCalendarPicker. Now there is in total 7 different VCL controls in the "Windows 10" category in the Tool Palette. The best thing about these controls is that they do have Windows 10 look-and-feel, but they are pure VCL, so they do not depend on Windows 10 API and as such can be used for example on Windows 7. I really like to play with them and "TCalendarView" is one of my favorites. There is already quite some information on the Embarcadero Community site about its functionality Jim McKeeth has a post on TCalendarView with great graphics explainin...

Posted by on in Blogs
"WhileNotEof" or Anonymous Code in Real World One observation stroke me while looking though some existing database access code. There is code that opens a select SQL query, iterates through it while "EOF" flag is not true and then closes the query. FDQuery1.Open; try while not FDQuery1.Eof do begin // access fields in the current record here FDQuery1.Next; end; finally FDQuery1.Close; end; How such code could be parameterised to avoid repetitions and reduce the number of lines? The thing is that the code that accesses the fields in the current record is every time different, because there are different fields in different tables. What if we pass this code as anonymous code to a helper method defined on...
Making Win10 Calendar controls database-aware Programming is fun. Sometimes projects and apps are more serious, sometimes less. On my recent Delphi 10.1 Update 2 presentation two times I have been asked about data-aware versions of new VCL Win10 calendar controls. Here is the code. unit uDBCalendarView; interface uses System.Classes, Vcl.WinXCalendars, Data.DB, VCL.DBCtrls; type TDBCalendarView = class(TCalendarView) private FDataLink: TFieldDataLink; procedure DataChange(Sender: TObject); procedure SetDataField(const Value: string); procedure SetDataSource(const Value: TDataSource); function GetDataField: string; function GetDataSource: TDataSource; function GetField: TField; ...
Posted by on in Blogs
All about moving existing Delphi VCL "fat client" database applications to scalable client/server architectures with Embarcadero RAD Server. Over last few days I was preparing for today's Embarcadero developer "Migrating to RAD Server" webinar. The objective was to take an existing app and move it to modern, scalable, cloud-based REST API architectures! Join us for an encore presentation of this webinar on Tuesday, January 24, 2017. Register Now! As Delphi consultant, with many years of experience, I was involved in many serious migration projects, so there were many observations and best practices accumulated in my mind over time. Let's consider a well known "Marine Adventures" dem...

Posted by on in Blogs
Appx Development for Windows 10 Store One of the most interesting new features introduced in RAD Studio 10.1 Berlin Update 2 Anniversary Edition is the support for building Windows 10 APPX application packages. YouTube reply of EMEA Embarcadero developer webinar "Appx Development for Windows 10 Store" from December 14th, 2016, is available at https://youtu.be/hEOk3Ztm-8g APPX development in RAD Studio RAD Studio already provides built-in support for creating apps that can be distributed through Apple AppStore (iOS, Mac) and Google PlayStore (Android). Berlin Update 2 introduces support for the latest version of Windows 10 (Anniversary Update) completing the portfolio of all newest versions of supported operating sys...
Learn to Program in Delphi - Putting the Calculator Together Welcome to the last episode in the "Learn to Program with Starter" series. In the first four episodes we have covered "Introduction and Installation" of the free Delphi Starter edition, then we moved to IDE basics in "Building in Debugging". In "Architecture and Layers of Code" the key concepts of proper app structure were discussed and in the last episode we have started "Designing User Interfaces". There is also "Learn to Program in C++" series written by C++Builder Product Manager David Millington, who already has finished the series with the final blog post covering C++ operators and final application. Coding in C++ and Object Pascal is different. Initially I was tempted to implement t...
My Go Global with RAD Studio Live Events This Week What a busy week! I have been showing all cool features of the latest Berlin Update 2 Anniversary Edition to Delphi and C++Builder developers in different cities and countries. I'm happy to be back home;-) The naming scheme of Delphi is always changing. From going from 1 to 7 - that was easy - to years. From 2006 to 2010. Then from XE to XE8. And now from 10.0 Seattle, through 10.1 Berlin to 10.1 Berlin Update 2 Anniversary Edition. Numbering does not matter. RAD Studio matters! Just two weeks ago, during CodeRage XI virtual conference, the latest Delphi and C++Builder were released. I would say it feels like a major release, even though it is just version 10.1.2. Probably the most intrigu...

Posted by on in Blogs
Beacons and Delphi in Amsterdam It is the second day of CodeRage XI today! CodeRage is Embarcadero's annual online developer conference and I'm kicking off the Day 2 with my presentation about "Beacons and Delphi in Amsterdam". During the session I'm going to demonstrate how to build mobile apps with Delphi and C++Builder that are using beacons for accurate location information. I'm also going to show practical examples of using Delphi with Amsterdam Open Beacon Network and Amsterdam Open Data integration. Here are the slides from CodeRage XI Beacon Delphi and C++Builder sessions today. Enjoy! Beacons and Delphi in Amsterdam.pdf The session is divided into four parts: What are beacons? What is a beacon Beacon Bl...
Building Scalable REST APIs with RAD Server and RAD Studio You have this Delphi Windows database application and you are just not sure how to move it to the cloud, extend to multiple users, move to the web... Just few days Nick Hodges posted on his blog a real world RAD Server story that intrigued me. Good start for more technical stuff. I guess you know Delphi. You want to learn more about RAD Server? Please join me for the free developer webinar on November 10th (Thursday) where I'm going to talk about using Delphi and RAD Server for publishing your code via REST APIs in a super easy "Delphi" way. A lot of coding, practical demos, just going through the main features of building and consuming REST APIs with RAD Server and Delphi. Eas...

Check out more tips and tricks in this development video: