Category Archives: Delphi

Delphi. UniGUI. Как узнать высоту текста в uniHTMLFrame?

Выстраивал высоту элементов, возник вопрос с определением высоты текста в UniHTMLFrame. Способ №1 от Delphi Developer

Способ №2 Мой способ, менее эффективный, с оборачиванием в div, но тоже рабочий. Решил так. Сначала обернем наш HTML в div c известным … Continue reading →

Posted in Delphi, UniGui | Comments Off on Delphi. UniGUI. Как узнать высоту текста в uniHTMLFrame?

Delphi. UniGUI. Делаем товары месяца

Вот что у нас получится. Левая и правая панельки нужны для листания вправо и влево. Листание происходит за счет смещения на 1 плитку в ту или иную сторону. Стартовое размещение плиток при загрузке. 

Posted in Delphi | Comments Off on Delphi. UniGUI. Делаем товары месяца

Delphi. UniGUI. Делаем витрину. Алгоритм выкладывания плиток

Здесь будет код из проекта и идеи алгоритма по шагам.  Вот какой будет результат в конце. Оттолкнувшись от него, можно будет сделать в своем проекте аналогичное выкладывание плиток ШАГ 0 – рисуем на бумаге

Posted in Delphi | Comments Off on Delphi. UniGUI. Делаем витрину. Алгоритм выкладывания плиток

Delphi. MultiSelect. Gather field values

simple example….

 

Posted in Delphi | Comments Off on Delphi. MultiSelect. Gather field values

OmniThread and Exceptions

OmniThread and exceptions… Example # 48 is good… from demos of omni lib…

 

Posted in Delphi | Comments Off on OmniThread and Exceptions

Delphi. Omnithreads. ProgressBar with ForEach

Example with progress Bar on ForEach abstraction.

 

Posted in Delphi | Comments Off on Delphi. Omnithreads. ProgressBar with ForEach

Delphi.Omnithreads.Future – hunting the value in backGroundThread

Future is good  thread abstraction that hunts for the value in background thread.  We can ask backGround thread what is value now. Calling VCL from backGround is bad idea in that case.  For that pupose see http://www.thedelphigeek.com/2014/07/incrementing-progress-bar-from-foreach.html Below is example … Continue reading →

Posted in Delphi | Comments Off on Delphi.Omnithreads.Future – hunting the value in backGroundThread

Delphi. OmniThreads.Async – most simple example

hi, most simple example of OmniThread lib looks like

GUI is responsive during executing the code…  

Posted in Delphi | Comments Off on Delphi. OmniThreads.Async – most simple example

Delphi. UniGUI. Emulation of Pages using Frames

UniGUI is SPA – single page application, but, emulation is possible. One option – use frames.

Then call its in main like this

   

Posted in Delphi | Comments Off on Delphi. UniGUI. Emulation of Pages using Frames

RTTI Atributes

shows how to work with RTTI and attributes RTTI – Run Time Type Library – is approach that helps to manage code when program is running. Lets say we have code from someOne without docs. RTTI will help to find … Continue reading →

Posted in Delphi | Comments Off on RTTI Atributes