TabControls

In this category you can exchange your programming questions and solutions.
Post Reply
albert
Posts: 24
Joined: Wed Jun 24, 2009 12:39 am

TabControls

Post: # 447Post albert
Mon Jun 29, 2009 8:59 pm

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





fred
Posts: 54
Joined: Thu Apr 23, 2009 10:08 am

TabControls

Post: # 448Post fred
Tue Jun 30, 2009 6:30 am

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.

albert
Posts: 24
Joined: Wed Jun 24, 2009 12:39 am

TabControls

Post: # 449Post albert
Tue Jun 30, 2009 8:03 pm

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.




Post Reply