Results 1 to 3 of 3

Thread: tabstrip dinamicly

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Mar 2005
    Posts
    2,943

    tabstrip dinamicly

    I don know if is possible:-)

    I have in form a tabstrip with one element with a teeview.
    Now in access table have:
    100
    200
    354
    ...
    999

    I dont know how many record can have in filed table (is dinamic the number of record)

    Now:

    1) in event load of form is possible to add a new tabstrip based the number of record in filed and named each new tabstrip with the name of rset, similar:
    tabstrip 1 name 100, tabstrip 2 name 200 tabstrip 3 name 354... tabstrip N name 999?

    2) naturally, is possible to use the same treeview for each tabstrip and assign automaticlyy the refrence to the new tabstrip?

    I hope i am clear...

    tks.

  2. #2
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: tabstrip dinamicly

    1) yes, it's possible, you need to loop recodaset creating new TabStrips, but you can't use just numbers as tabstrips names, at least use something like: "a200", "a300", etc.. this controls would be added dinamically by code.
    2) yes, using TreeView.Container = Tabstripname.

    It's not very common creating one Tabstrip for each record, creating tabs in a TabStrip per record sounds more logical, but if that is your need you would need to assign new coordinates in the Form for each new Tabstrip, so they don't overlap each other.

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Mar 2005
    Posts
    2,943

    Re: tabstrip dinamicly

    Quote Originally Posted by jcis View Post
    1) yes, it's possible, you need to loop recodaset creating new TabStrips, but you can't use just numbers as tabstrips names, at least use something like: "a200", "a300", etc.. this controls would be added dinamically by code.
    2) yes, using TreeView.Container = Tabstripname.

    It's not very common creating one Tabstrip for each record, creating tabs in a TabStrip per record sounds more logical, but if that is your need you would need to assign new coordinates in the Form for each new Tabstrip, so they don't overlap each other.

    tks for reply...
    but the records in field are max from 1 to 5

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width