Page 1 of 1

TabControls

Posted: Mon Jun 29, 2009 8:59 pm
by albert
How do you asign to a tabcontrol

dim mytab(4) as tabcontrol
dim mytext(4) as edit

for a = 0 to 3
     mytext(a).parent=mytab(a)
next

Why this doesn`t work !!!!!!!!

I keep getting error 109 : object mytab(0) not declared





TabControls

Posted: Tue Jun 30, 2009 6:30 am
by fred
I don`t think you want to use a array of tabcontrol objects but just one tabcontrol and more tabs to it using Tabs(index) = "title"
Take a look at tabtest.bas in the Example folder.

TabControls

Posted: Tue Jun 30, 2009 8:03 pm
by albert
I got it working its in my Cyph256V3 program on the files page under SillyCypher it the last item on the page.

I used 1 tabcontrol with 4 indexes and 4 panels

I setup an array of edits mytext(4,64) and assigned each page of edits to another panel parent. so each panel has 64 edits.