[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gambas-bugtracker] Bug #3041: Width of TabStrip-Tabs remain at its minimum width, resp. shrink to its minimum width when moving with the mouse over it


http://gambaswiki.org/bugtracker/edit?object=BUG.3041&from=L21haW4-

Comment #6 by Claus DIETRICH:

I am not doing anything special with the captions and it worked for over 12 years up to 3.20.2: 

  TabStripChannels.count = 5
  For i = 0 To TabStripChannels.Count - 1
    TabStripChannels.index = i
    TabStripChannels.Text = "Ch " & Str(i + 1)
    ... 'filling the tab with user a control
    ... 'configuring the user control
  Next
  TabStripChannels.index = 0

Since 3.20.3 it shows the malfunction under GTK and this is independent from the OS. It happens even when the captions are not set at all. The captions then show Tab1 ...Tab2... and the width of the tabs also zip down to its minimum size when I move the mouse cursor over the tabs. 

Since days I am trying to find a fix myself and to reproduce it in a demo - without the slightest progress. But I noticed that you worked on the TabStrip (new property NoAnimation since 3.20). I couldn't find an according commit.

BTW: The warning displayed in conjunction with the count property of the TabStrip is hard understand:

Quote:

Warning...
Setting this value in the IDE will auto-name the tabs as Tab 1, Tab 2, Tab 3, etc
But setting it by code may not so you should supply the titles yourself.
If you do not the tabs could have no text so will be very small and impossible to see.
Ie..
  TabPanel1.Count = 2
  TabPanel1[0].Text = "Tab 1"
  TabPanel1[1].Text = "Tab 2"

Unquote

However, I even tried this suggestion - without any change.

As this status is an overkill for my app I will continue to search for conditions causing this bug. So I suggest to keep the bug open. 

Best regards, Claus


----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----