[Gambas-user] Some confusion re TabStrip property settings

Bruce Bruen bbruen at ...2308...
Mon Nov 15 09:34:08 CET 2010


It appears to me (in Gambas 2) that some properties of TabStrip .Tab items, 
such as Caption, are only settable via code if the item is visible.

PUBLIC SUB Form_Open()
  DIM ix AS Integer

  TabStrip1.Count = 9

  FOR ix = 1  TO 9 
    TabStrip1[ix - 1].Text = ix
    IF ix > 6 THEN TabStrip1[ix - 1].Visible = FALSE
  NEXT 

  TabStrip1.Index = 2
  TabStrip1.Index = 8
  TabStrip1.Current.Text = "I am OK"
  TabStrip1[7].Caption = "I am not properly labelled!"

  FOR ix = 1  TO 9 
    TabStrip1[ix - 1].Visible=TRUE
  NEXT   
END

Is this expected behaviour?

-- 
best regards
Bruce Bruen




More information about the User mailing list