What's New:
Code:
* Now you can feed media files (Audio/Video) to ChatGPT.
- Supported formats: *.m4a, *.mp3, *.webm, *.mp4, *.mpga, *.wav, *.mpeg
* Added HTML Texts.
Code:
HTML Text Syntax:
Link = <a:"https://google.com/">Click Here</a>
Spoiler = <spoiler:UniqueName>Text</spoiler> and
<sdetail:name>Expanded text when the spoiler link is clicked.</sdetail>
Bold = <b>Hello World</b>
Italic = <i>Hello World</i>
Strike = <s>Hello World</s>
Underline = <u>Hello World</u>
FontName = <fn:Segoe UI Bold>Hello World</fn>
FontSize = <fs:18>Hello World</fs>
FontColor = <fc:claRed>Hello World</fc>
= <fc:$FFFFFF>Hello World</fc>
> claRed = Red Color (FMX)
BackgroundColor = <bc:claBlack>Hello World</bc>
= <bc:$FF4563>Hello World</bc>
Line Break = <br> , Ex: Hello <br> World
Prevent line break after #13#10 sequence
= <nbr> , Ex: <nbr>Hello World
Line spacing = <LS:Height>Text</LS> , Ex: <LS:14>Hello</LS>
Align Left = <L>Text</L>
Align Center = <C>Text</C>
Align Right = <R>Text</R>
Tab = <t:30>Text
Tab with aligned break = <tf:30>Text
Unordered list = <UL></UL>
Ordered list = <OL></OL>
List item = <LI></LI>
Float = <float:X,Y,Width>Text</float>
Ex: <float:20,10,120>Hello World</float>
Code:
HTML Text Example:
S := 'The <fs:20><spoiler:bf-link-01>FireMonkey framework</spoiler></fs>' +
'<sdetail:bf-link-01> Developed by <b>Embarcadero Technologies</b></sdetail>' +
' is the <u>app development</u> and <u>runtime platform</u> behind' +
'<br><br>' +
'<fc:claPurple><b>RAD Studio</b></fc>, <fc:claPurple><b>Delphi</b></fc>, <fc:claRed><fs:14><s><b>.Net</fs></b></s></fc> and <fc:claPurple><b>C++Builder</b></fc>. ' +
' <b><i><bc:claYellow>FireMonkey</bc></i></b> is designed for teams building <br><i>multi-device</i>, <i>true native apps</i> for' +
' <fs:15><fc:claLightSeaGreen>Windows</fc></fs>, <fs:15><fc:claLightSeaGreen>OS X</fc></fs>, <fs:15><fc:claLightSeaGreen>Android</fc></fs> and <fs:15><fc:claLightSeaGreen>iOS</fc></fs>,' +
'<br>' +
'and getting them to app stores and enterprises fast.' +
'<br><br><br>' +
'<ul><fs:15><fc:claOrangered>' +
'<li>Item 01</li>' +
'<li>Item 02</li>' +
'</fc>' +
'<ol><fc:claSienna>' +
'<li>Sub Item 2.1</li>' +
'<li>Sub Item 2.2</li>' +
'</fc></ol>' +
'<fc:claOrangered>' +
'<li>Item 03</li>' +
'</fc>' +
'</fs></ul>';
Code:
HTMLText.FCreate(FMXForm.Handle, S);
HTMLText.AutoWidth(True);
HTMLText.AutoHeight(True);
HTMLText.Left(30);
HTMLText.Top(100);