Embarcadero delphi примеры программ

Delphi — это язык общего назначения, основанный на диалекте Object Pascal, корнем которого является Borland Turbo Pascal. Он поставляется с собственной IDE, разработанной для поддержки быстрой разработки приложений (RAD).

Он позволяет создавать кросс-платформенную разработку (скомпилированную) приложений из одной базы кода. В настоящее время поддерживаются платформы Windows, OSX, iOS и Android.

Он поставляется с двумя визуальными структурами:

  • VCL: Visual Component Library, специально разработанная для разработки Windows, обертывает собственные средства управления Windows и поддерживает создание пользовательских.
  • FMX: межплатформенная платформа FireMonkey для всех поддерживаемых платформ

Версии

Версия Цифровая версия Наименование товара Дата выхода
1 1,0 Borland Delphi 1995-02-14
2 2,0 Borland Delphi 2 1996-02-10
3 3.0 Borland Delphi 3 1997-08-05
4 4,0 Borland Delphi 4 1998-07-17
5 5.0 Borland Delphi 5 1999-08-10
6 6,0 Borland Delphi 6 2001-05-21
7 7,0 Borland Delphi 7 2002-08-09
8 8,0 Borland Delphi 8 для .NET 2003-12-22
2005 9,0 Borland Delphi 2005 2004-10-12
2006 10,0 Borland Delphi 2006 2005-11-23
2007 11,0 CodeGear Delphi 2007 2007-03-16
2009 12,0 CodeGear Delphi 2009 2008-08-25
2010 14,0 Embarcadero RAD Studio 2010 2009-08-15
XE 15,0 Embarcadero RAD Studio XE 2010-08-30
XE2 16,0 Embarcadero RAD Studio XE2 2011-09-02
XE3 17,0 Embarcadero RAD Studio XE3 2012-09-03
xe4 18,0 Embarcadero RAD Studio XE4 2013-04-22
xe5 19,0 Embarcadero RAD Studio XE5 2013-09-11
XE6 20,0 Embarcadero RAD Studio XE6 2014-04-15
XE7 21,0 Embarcadero RAD Studio XE7 2014-09-02
X Е8 22,0 Embarcadero RAD Studio XE8 2015-04-07
10 Сиэтл 23,0 Embarcadero RAD Studio 10 Сиэтл 2015-08-31
10.1 Берлин 24,0 Embarcadero RAD Studio 10.1 Берлин 2016-04-20
10.2 Токио 25,0 Embarcadero RAD Studio 10.2 Токио 2017-03-22

Привет, мир

Эта программа, сохраненная в файле HelloWorld.dpr , компилируется в консольное приложение, которое выводит «Hello World» на консоль:

program HelloWorld; begin WriteLn(‘Hello World’); end.

Покажите ‘Hello World’, используя VCL

Эта программа использует VCL, библиотеку компонентов интерфейса UI по умолчанию для Delphi, для печати «Hello World» в окне сообщения. VCL обертывает большинство используемых компонентов WinAPI.

Таким образом, их можно использовать намного проще, например, без необходимости работать с Window Handles.

Чтобы включить зависимость (например, Vcl.Dialogs в этом случае), добавьте блок uses включая список единиц, разделенных запятыми, заканчивающийся точкой с запятой.

program HelloWindows; uses Vcl.Dialogs; begin ShowMessage(‘Hello Windows’); end.

Показать «Hello World» с помощью WinAPI MessageBox

Эта программа использует Windows API (WinAPI) для печати «Hello World» в окне сообщения.

Читайте также:
Добавить разрешение экрана программа

Чтобы включить зависимость (например, Windows в этом случае), добавьте блок uses, включая список единиц, разделенных запятыми, заканчивающийся точкой с запятой.

program HelloWorld; uses Windows; begin MessageBox(0, ‘Hello World!’, ‘Hello World!’, 0); end.

Кросс-платформенный Hello World с использованием FireMonkey

program CrossPlatformHelloWorld; uses FMX.Dialogs; begin ShowMessage(‘Hello world!’); end.

Большинство поддерживаемых Delphi платформ (Win32 / Win64 / OSX32 / Android32 / iOS32 / iOS64) также поддерживают консоль, поэтому пример WriteLn подходит для них хорошо.

Для платформ, для которых требуется графический интерфейс (любое устройство iOS и некоторые устройства Android), приведенный выше пример FireMonkey работает хорошо.

Источник: learntutorials.net

Embarcadero delphi примеры программ

InterBase Driver for Python Released Подробнее

Delphi Solutions

Delphi 101-как быстро начать работу с RAD Studio 20230531

Embarcadero Delphi Обзор преимуществ / Установка / Удаление / Community Edition IDE / 2022 Бесплатно

  • Центр обновления и миграции
  • Web App Development
  • Multi-tier Development
  • Технические документы
  • Блоги
  • Партнеры Embarcadero
  • Партнеры
  • MVP Program
  • Success Stories
  • Application Showcase
  • Документация
  • Поддержка
  • Предыдущие версии
  • Вопросы и ответы

RAD Studio, Delphi and C++Builder 10.1 Berlin Android and iOS Code Samples

This page contains in-depth code samples and code snippets to help you get started building amazing apps with RAD Studio 10 Berlin.

Примеры кода

В состав RAD Studio входит широкий набор разнообразных полнофункциональных демонстраций продукта. В них показано проектирование пользовательского интерфейса, работа с датчиками и службами устройства, облачные возможности, службы Enterprise Mobility Services, параллельное программирование и другие возможности.

Облачные технологии

Samples that show you how to leverage REST APIs using the REST component framework and utilize cloud storage, push notification and more with Backend as a Service providers such as Parse, Kinvey and App42.

Датчики и службы устройства

Samples that show you how to access location data, display ads in your application, support in-app payments, connect to Bluetooth LE devices and add proximity awareness with beacons.

EMS

Samples that show you how to build applications using Enterprise Mobility Services Middleware.

Google Glass

Samples that show you how to access Google Glass sensors.

Мультимедиа

Samples that show you how to access on-device music files for playback and image files for editing and sharing.

Библиотека параллельного программирования

Samples that show you how to run application tasks in parallel, taking advantage of multiple CPUs.

Физика

Samples that show you how to add physics support to your applications.

Пользовательский интерфейс

Samples that show you how to add slide-in drawer support, work with list components, access custom keyboards, design setting screens, add tab slide transitions and more.

Фрагменты кода

Learn how to easily add functionality to your app in minutes with feature focused code snippets.

Device Sensors
Accelerometer
Gyroscope
Mесто
OrientationSensor
Database Storage
IBLite
SQLite
Native Controls
Custom Picker
Date Picker
Horizontal Scroll

Accelerometer

This snippet shows you how to use the accelerometer in order to obtain information about the acceleration, angular acceleration, motion and speed.
Designed for device only

Читайте также:
Как участвовать в программе дачный вопрос

Gyroscope

This snippet shows you how to use the Gyroscope in order to rotate a 3D cube when the device is tilted.
Designed for device only

Location

This code snippet shows you how to use the TLocationSensor component in order to read the GPS location of the device and display it realtime on the form. The snippet also shows you how to display Google Maps in a web browser in order to accurately pinpoint the location of the device on a real map.
Designed for device only

Orientation Sensor

This code snippet shows you how to use the TOrientationSensor component in order to get various compass related information such as three axis tilt, distance and heading, heading relative to magnetic north compensated and uncompensated and heading relative to true north compensated and uncompensated.
Designed for device only

Device Info

This code snippet shows you how to use obtain device information that includes OS version, OS name, and device type.
Designed for device only

Message Alerts

This application shows how to pop-up various alert messages both standard one button information box style, and multiple button input box styles that allows various confirmations.
Designed for device only

Notifications (Set/Reset Badge Number)

This code snippet shows you how to use the Notification API in order to set the badge number on the application icon to a specified value or to reset the badge number to 0.
Designed for device only

Phone Dialer

This application shows how to use the PhoneDialer API in order to make a phone call and to obtain the carrier information.
Designed for device only

Share Sheet

This snippet shows you how to use standard actions to open the Camera Application on your Android or iOS device to take a photo and display it on your FireMonkey form. Then, with another standard action, you will open the Share Sheet to share your image via email, post to Facebook and Twitter, print via AirPrint and more.
Designed for device only

Interactive Gestures — Image Rotation

This set of code snippets shows you how to rotate an image on an Android or iOS device.
Designed for device only

Sliding Tabs

This snippet shows you how to use a TabControl with TabPosition set to tpDots in order to enable scrolling of tab items on Android and iOS devices. The Application has 2 tab items each one containing a different image.
Designed for device only

IBLite Database

This snippet shows you how to populate a listview from an IBLite database using LiveBindings.

To deploy this snippet you need to use the IBLite license, following the instructions that were emailed along with the RAD Studio license (or trial license). For more information on deploying the license file along with the application, you can read: Tutorial: InterBase on iOS and Android
Designed for device only

Читайте также:
Веб сервер это программа

SQLite Database

This snippet shows you how to populate a list box from a SQLite database using LiveBindings.
Designed for device only

Custom Picker

This code snippet shows you how to use the TComboBox component in order to pick an item from it and display its Text on a label.
Designed for device only

Horizontal Scroll

This snippet shows you how to use the THorzScrollBox component in order to scroll through two identical pictures.
Designed for device only

Access Camera

This snippet shows you how to use standard actions in order to open the Camera Application on your Android or iOS device, take a picture and retrieve the taken image for displaying on your FireMonkey form.
Designed for device only

Camera Component

This code snippet shows you how to manipulate the Camera on your Android or iOS device. The snippet allows you to select either the front facing camera or the back facing camera. Also you can select whether to use the flash (always on or automatic) or not.
Designed for device only

Camera Roll

This snippet shows you how to use standard actions in order to open the Photo Library on your Android or iOS device and retrieve an image from the library for displaying on your FireMonkey form.
Designed for device only

Send or Cancel Notifications

This code snippets shows you how to use the Notification API in order to send a notification immediately or with a 10 second delay and how to cancel a scheduled notification or all notifications.
Designed for device only

Date Picker

This code snippet shows you how to use the TCalendarEdit component in order to pick dates from it and process them to use in your own applications.
Designed for device only

Interactive Gestures — Image Zoom

This set of code snippets shows you how to pinch and zoom an image on an Android or iOS device.
Designed for device only

Interactive Gestures — Tap and Hold

This set of code snippets shows you how to use tap and hold to display a message.
Designed for device only

Audio Recording and Playback

This code snippet shows you how to record some sound via the microphone and then playback using the device speakers or headphones.
Designed for device only

Web Browser

This code snippet shows you how to use a WebBrowser component on an Android or iOS device. The application consists of an edit box, a button and the web browser component. Type an address in the edit box and press the «GO» button in order to redirect the browser to your address.
Designed for device only

Play Audio File

This snippet shows you how to include an audio file for playback in your Android and iOS application.
Designed for device only

Источник: www.embarcadero.com

Рейтинг
( Пока оценок нет )
Загрузка ...
EFT-Soft.ru