Recent

Author Topic: ATFlatControls  (Read 19967 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: ATFlatControls
« Reply #15 on: November 08, 2017, 05:27:37 pm »
Update#2:
ATStatusbar supports IDE form designer, can set panels via Panels collection.

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: ATFlatControls
« Reply #16 on: January 15, 2018, 01:44:21 pm »
Update

ATStatusbar: for cells, added props
- AutoSize (adjust width of cell to icon +text),
- AutoStretch (stretch cell to fill entire statusbar width).

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: ATFlatControls
« Reply #17 on: January 16, 2018, 03:30:47 pm »
Change:
renamed class (and its file) TATButtonsToolbar to TATFlatToolbar (it is nicer name, sorry, you must rename type too).

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: ATFlatControls
« Reply #18 on: January 16, 2018, 06:20:10 pm »
Update in ATButton + ATFlatToolbar

a) button: prop Kind has new value, abuTextChoice. If it's used, you must also set to button Items (stringlist) and ItemIndex. Button is painted as combobox, and button click auto creates/shows menu with items.

b) toolbar: added method AddChoice which adds button with new Kind value.

it was inspired by screenshot of Visual Studio Code app. it has such combobox in its toolbar. now ATFlatToolbar has it too. and i copied look: combobox on toolbar paints always with a border.
demo_buttons shows this combobox.
« Last Edit: January 16, 2018, 06:22:33 pm by Alextp »

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: ATFlatControls
« Reply #19 on: April 12, 2018, 07:35:04 pm »
Update of ATStatusbar:
added Hint to each panel (to TATStatusData type).
added Hints[index] property.
for captions, used type TCaption.

Fai

  • New Member
  • *
  • Posts: 24
Re: ATFlatControls
« Reply #20 on: May 06, 2018, 02:11:37 am »
Is it possible to set different theme (colors, font size, etc) on different ATButton on the same unit/form?

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: ATFlatControls
« Reply #21 on: May 06, 2018, 07:46:49 am »
Nope, it's like themed engine: one theme for all controls. Why such is needed?

Josh

  • Hero Member
  • *****
  • Posts: 1270
Re: ATFlatControls
« Reply #22 on: May 06, 2018, 08:06:13 am »
This would be handy for Emphasizing a Particular Control over others, or if you were grouping similar controls that echoed those of a hardware device that color coded its controls. Much like most VST plugins do to indicate the section a particular control belongs to.
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: ATFlatControls
« Reply #23 on: May 06, 2018, 09:05:04 am »
Ok; changed.
Now ATButton has Theme prop of type ^TATButtonTheme. See example of usage in demo_buttons for "colors" button.

Fai

  • New Member
  • *
  • Posts: 24
Re: ATFlatControls
« Reply #24 on: May 06, 2018, 09:29:24 am »
Thank you very much Alex, that's what I need  :D

Josh

  • Hero Member
  • *****
  • Posts: 1270
Re: ATFlatControls
« Reply #25 on: May 24, 2018, 04:17:39 pm »
TATListBox..

Hi

Placed COmpnent on form..
Could not find a way to add string items, so added in oncreate event of form
Atlistbox1.items.add('a');
etc.

STill nothing shows,
FOund that font size defaults to 0 so set this to 24
Still nothing shows..
Changed atscroll color to clnavy, and font color to clwhite
Still Nothing shows.

What am I missing?
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: ATFlatControls
« Reply #26 on: May 24, 2018, 06:16:44 pm »
ATListbox is virtual.
- set ItemCount to some value
- add OnDrawItem

see demo in the "app" folder in ATFlatcontrols.

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: ATFlatControls
« Reply #27 on: June 08, 2018, 09:36:12 pm »
To solve issue above [weird usage of ItemCount], made update

2018.06.08
+ ATListbox: added props VirtualMode, VirtualItemCount
    If VirtualMode=false, listbox uses item count from Items prop.
    If true, listbox uses item count from VirtualItemCount prop.
+ ATListbox: prop ItemCount gets count for all modes, and is read-only

Listbox demo shows how to use them. it adds 4 real items (to Items prop) and 21 virtual items (setting VirtualItemCount). and allows to switch VirtualMode: show real items or virtual items.
« Last Edit: June 08, 2018, 09:44:21 pm by Alextp »

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: ATFlatControls
« Reply #28 on: July 20, 2018, 08:47:54 pm »
+ ATListbox: added props:
    --- HotTrack
    --- HotTrackIndex (public)
    --- ColorHotTrackBack
+ ATListbox: added props IndentLeft, IndentTop 

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: ATFlatControls
« Reply #29 on: June 21, 2019, 09:33:34 pm »
ATFlatControls support Delphi now (10.3 at least).

 

TinyPortal © 2005-2018