Commit Graph
4 Commits
Author SHA1 Message Date
Kacper Kasper 6c9edbb68c Extract subchild cleanup to a function.
* No functional change intended.
2018-04-20 22:27:03 +02:00
Kacper Kasper d9a9615de8 Extract YabTabView cleanup to a function.
* No functional change intended.
2018-04-20 22:26:40 +02:00
Kacper Kasper 076496e45d Fix crashes and mismatched tabs in TabView.
* Default BTab uses view's name property as tab label, so
  SetLabel changes that value. However, view names are important
  for yab and this would cause inconsistencies in view lists yab
  stores for referencing them by name. Views attached to tabs would
  not be removed because there is no name "Tab1" in the index
  (there is "Test1", which is the view's original name).
  Later, when asking for view with the same name created later yab
  could get wrong view (if lucky) or crash (if unlucky).
  This commit fixes that by storing original name in YabView
  property, and using that for removing views from the hierarchy.
* Fixes #5.
2018-04-15 17:48:44 +02:00
Kacper Kasper 3c7f07d931 Use native BTabView with slight modifications.
* Add "left" and "right" tabs orientation.
* Remove dependency on BControlLook which is private API.
2017-09-12 20:22:55 +02:00