2

How to move the close button at the right side in JvTabBar1 (JVCL component)?

In this component does not provide a choice of accommodation side.

screenshoot

Johan
  • 74,508
  • 24
  • 191
  • 319
mixalbl4
  • 3,507
  • 1
  • 30
  • 44
  • JvTabBar's look is driven by the assigned `Painter`. By default it's used the `TJvModernTabBarPainter`, which if you modify, can display the close buttons on the right side. If you include [`this class intercept`](http://pastebin.com/kxHuChuU) into your form code, if will show what you're asking (take it just as a proof). But better derive your own painter. – TLama Feb 09 '14 at 13:23
  • Why use that non standard control at all? – David Heffernan Feb 09 '14 at 13:28
  • 2
    @TLama, it`s work! Thanks! :) David Heffernan, Standard component has no function a close button – mixalbl4 Feb 09 '14 at 14:05
  • 1
    Fair enough. I had not realised that. There are various examples out there of how to owner draw the tab to achieve that. But using this control seems like a good option. – David Heffernan Feb 09 '14 at 14:35

1 Answers1

1

I created a modernized JvTabBar.pas which has this feature, and some others.

https://stackoverflow.com/a/21972495/2051938

Community
  • 1
  • 1
mixalbl4
  • 3,507
  • 1
  • 30
  • 44