Note: the title of this topic was changed in order that I will include new implemented components here.
Component list:| TTabSet | Almost completed |
| TBackstageTabSet | Almost completed |
| TNewScrollbar | Completed |
| TToolBar | Making implementations for TActionToolBar looking |
| TControlBar | Half-done |
| TCategoryButtons | Planned |
TTabSet - Since Lazarus has no TTabSet, I created my own months ago, I'm rewriting the code(including some events like "OnDrawTab", so the user could customize the drawing). Currently, this is how the component looks like:
[TTabSet Screenshot]Features:
- Focus, with implementation on the KeyDown procedure, so the user can navigate between the tabs using the keyboard.
- Currently, the tabs can contain one icon/button on the right side, but I will improve it, probably there will be a collection of items, each item will represent a icon/button.
- The scroll buttons are images that you select from a TImageList - you have option to choose the image when the scroll button is down, highlighted and normal.
- Still need to implement the vertical orientation of the tabset.
TBackstageTabSet - If you don't know what backstage is, it is the lateral bar on the left side of this image:
[Office 2010 Backstage interface]Here is a screenshot of the TBackstageTabSet:
[TBackstageTabSet screenshot]Features:
- The backstage have a orientation: to top, to botom, to left, to right. Note the arrow in the selected tabs.
- You can use a TImageList. Also can define if the image will be displayed on the top, left, right or bottom side of the text.
- The text(and the image) can be aligned. If the backstage orientation is to top/bottom, the you can align the text and image to the corner of top, bottom or center, but if the orientation if to left/right, then you can align to left, right or center. Note that the items of the left backstage on the screenshot is aligned to left.
- Event OnDrawTab, with informations of the position of each item: rectangle of the tab, and position where the text and image should be displayed.
- Focus, you can navigate using the keyboard - like the TTabSet.
Implementation of the TToolBar - I'm including the feature to draw a gradient background, and if the user choose the gradient background, then the buttons will have a flat drawing, like this:
http://i.stack.imgur.com/UkuXD.gifThey are almost done, when they get completed, I will publish.