Custom Tab Panel For Retina

what do i need to remove then???

@Richard Duke: you remove the script and set HiDPI Support to on.

Here is the updated version: http://www.mothsoftware.com/downloads/trixistabsheets.zip

Vertical drawing is still on the to-do list.

The Image Editor could do with a couple of improvements:

<https://xojo.com/issue/46227>: Draw icons in image editor with original aspect ratio
<https://xojo.com/issue/46228>: Difference between + and - buttons for non-HiDPI icons
<https://xojo.com/issue/46229>: Add + and - icons to Image Editor

“Convert to image” converts each icon individually to an image. But wouldn’t I want to convert 2 icons to a single image? My main project has hundreds of icons. Not looking forward to sorting this out.

[quote=302667:@Beatrix Willius]Here is the updated version: http://www.mothsoftware.com/downloads/trixistabsheets.zip

Vertical drawing is still on the to-do list.

The Image Editor could do with a couple of improvements:

<https://xojo.com/issue/46227>: Draw icons in image editor with original aspect ratio
<https://xojo.com/issue/46228>: Difference between + and - buttons for non-HiDPI icons
<https://xojo.com/issue/46229>: Add + and - icons to Image Editor

“Convert to image” converts each icon individually to an image. But wouldn’t I want to convert 2 icons to a single image? My main project has hundreds of icons. Not looking forward to sorting this out.[/quote]

nice working.

[quote=302667:@Beatrix Willius]Here is the updated version: http://www.mothsoftware.com/downloads/trixistabsheets.zip

Vertical drawing is still on the to-do list.

The Image Editor could do with a couple of improvements:

<https://xojo.com/issue/46227>: Draw icons in image editor with original aspect ratio
<https://xojo.com/issue/46228>: Difference between + and - buttons for non-HiDPI icons
<https://xojo.com/issue/46229>: Add + and - icons to Image Editor

“Convert to image” converts each icon individually to an image. But wouldn’t I want to convert 2 icons to a single image? My main project has hundreds of icons. Not looking forward to sorting this out.[/quote]

working great now

And these tabs enlarge automatically when a window is maximized?

Download it. Try it. Let us know.

The tabs are as wide as the canvas is. There are 2 sizes: normal and small.

Boo.

He will have to download it anyway to see it fits his requirements. So why be his personal assistant?

I like to help. But I draw the line at supporting laziness.

OK I downloaded it on my Windows machine and when I run it I get:

PlatformNotSupported Exception on this line:

FinalPicture = new Picture(OriginalPicture.Width, OriginalPicture.Height)

And I was not talking about the width of the tabs but the height… does the height and the font sizes get bigger if I maximize my window and it contains the tabs.

@Tim Turner: I’ll try to check in the afternoon.

And no, the size doesn’t change if the window gets bigger.

OK well that’s the problem I’m trying to solve… window gets maximized and tab panel gets bigger in proportion with all the other items on the window.

Soooo… you don’t need to look into the platformnotsupportedexception for me anyway. I will have to look for something else.

Thought this might have been a solution to a problem I had… too bad it relies on MBS

The MBS plugin is used for 2 things:

  • font metrics
  • horizontal mirroring

The first one is a declare that you can surely do yourself. For the horizontal mirroring you could use the ImagePlay library.

No offense Beatrix… but anything that pops up with “MBS” immediately is deleted…
I’m sure it is a fine control, as evidenced by other things of yours I have seen…

as for a declare I could do myself…

  • certainly… if i knew what the declare hidden inside the MBS might be
  • so no worries, for this project I will most likely create a bevel button based tabbar

Reinvent the wheel to avoid a little research. Nice.

No… expend my considerable knowledge about my project and its requirements in the most effective way possible.
I am not going to try and figure out what/how/why Christian did what he did in MBS, nor why Beatrix decided to use MBS for this control, and without a working version of the control, I cannot even assess if it is compliant with (or could easily be made compilant) with my requirements…

So instead of expending my resources trying to determine if it would work for me, I will expend those resources in building something I know will be.

In case you hadn’t figured it out… I am a staunch opponent of most (if not all) 3rd party “plugins”

some people are. I am not judging you doing so. I have seen more and more people getting away from that mentality.

So here is MY version of the “wheel”… fits my needs :slight_smile:

  • unlimited number of tabs (scroll arrows appear as required)
  • tabs can be : Text Only, Text/Icon or Icon Only
  • works on a “dictionary” principle… each tab has a unique key, adding a new tab with same key updates the existing, otherwise a new tab is added
  • tabs can be removed by index or key
  • exposed events : TabAdded, TabRemoved, TabPressed (each event returns Key and Index of tab involved)

I will post the source code with a demo sometime next week for anyone interested