Quantcast
Channel: Sarina DuPont, Product Manager RAD Studio
Viewing all articles
Browse latest Browse all 132

Using the WinRT Globalization API

$
0
0

With RAD Studio 10 Seattle, developers can rapidly update their VCL and FMX applications to take full advantage of the Windows 10 wave. Support includes Windows 10 and native WinRT/UWP components and APIs, Windows 10 VCL User Experience controls, and updated Windows 10 FMX support.

We have a great demo that shows you how to use the ICalendar interface to show the current date of the system in the different calendar systems, as well as specific information from the four calendar systems.
The sample displays the calendar information in a TMemo. TCalendarIdentifiers is used to set the different calendar systems:

- Gregorian
- Japanese
- Hebrew
- Hijri

The main units used in this sample are:

- Winapi.Globalization.pas
- Winapi.WinRT.pas
- Winapi.Foundation.Collections.pas

http://docwiki.embarcadero.com/Libraries/Seattle/en/Winapi 

You can download the demo here: http://sourceforge.net/p/radstudiodemos/code/HEAD/tree/branches/RADStudio_Seattle/Object%20Pascal/VCL/Windows%2010%20Calendar 

 

You can access the API information here:

https://msdn.microsoft.com/en-us/library/windows/apps/hh969150.aspx 
https://msdn.microsoft.com/en-us/library/windows/apps/windows.globalization.calendar.aspx

Calendar1

Calendar2


Viewing all articles
Browse latest Browse all 132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>