SSTab question/ creating controls


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: SSTab question/ creating controls

  1. #1
    Join Date
    Aug 2009
    Location
    Indiana
    Posts
    2

    SSTab question/ creating controls

    Background:
    This entire program is a POS (Point of Sale) program for invoicing/inventory control.

    The SSTab control is being used in a module for receiving trade-in/purchased items from customers.

    Application:
    The user will enter the item data in the SSTab. If there is more than one item purchased/traded-in, then additional tabs are needed.

    Problem:
    After creating the next tab, the textboxes, labels or any other control created (load ....) will not display. I don't know if it is showing up in the SSTab control or elsewhere or not at all.

    Here is a small segment of the code I use to add the next tab and create controls.

    Private Sub cmdAddItem_Click()
    Dim tTabs As Integer 'This will be used to hold the # of tabs, etc
    tTabs = SSTab1.Tabs
    SSTab1.Tabs = tTabs + 1

    'this will put us on the newly created tab
    SSTab1.Tab = tTabs

    Load Text6(tTabs)
    Text6(tTabs).Left = Text6(0).Left
    Text6(tTabs).Width = Text6(0).Width
    Text6(tTabs).Top = Text6(0).Top
    Text6(tTabs).Height = Text6(0).Height
    Text6(tTabs).Visible = True

    . . . . . . etc......

    Help!

  2. #2
    Join Date
    Mar 2009
    Location
    Italy - Breganze (VI)
    Posts
    120
    - start a new project, add SSTAB control
    - set SSTab1.Tabs = 1 (remove last two):
    - add a Text1(0) control in Tab1
    - add a Command1 to a form

    Paste below code:

    Code:
     Private Sub Command1_Click()
        Dim idx As Integer
        
        SSTab1.TabsPerRow = 8
        SSTab1.Tabs = SSTab1.Tabs + 1
        idx = SSTab1.Tabs - 1
            
        SSTab1.Tab = idx
        
        Load Text1(idx)
        Text1(idx).Move 500, 500, 1200, 285
        Text1(idx).Text = "Text1 - " & idx
        Text1(idx).Visible = True
        
    End Sub

  3. #3
    Join Date
    Aug 2009
    Location
    Indiana
    Posts
    2
    thanks for the help!

Similar Threads

  1. Creating controls at run time
    By Narayan_Uvce in forum VB Classic
    Replies: 2
    Last Post: 02-14-2006, 01:17 PM
  2. Question about creating Certificates?
    By Sean Woods in forum VB Classic
    Replies: 0
    Last Post: 12-10-2001, 10:20 AM
  3. Creating Controls On-the-Fly
    By Jamie Schatte in forum ASP.NET
    Replies: 0
    Last Post: 06-28-2001, 11:06 AM
  4. Replies: 2
    Last Post: 01-18-2001, 12:44 PM
  5. Creating Controls with APIs
    By Duncan Campbell in forum VB Classic
    Replies: 2
    Last Post: 05-23-2000, 05:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center