Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scrollbars not showing up
Message
 
 
À
22/05/2001 20:58:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00510150
Message ID:
00510157
Vues:
21
James,

Personally I dislike scrollable forms, but since you are building the form dynamically you have to make sure that you set the Form.ScrollBars property to enable them.

You also have a limit to how big the form can be (I think it's like 2*vertical display resolution) so you'll have to put some limits in place to keep your form from getting too big.

I put this code in a Form.Init() with ScrollBars = 3 and it works fine:
y = 10
x = 5

for i = 1 to 20
   lcName = "AddText" + transform( i )
   this.AddObject( lcName, "textbox" )
   loControl = eval( "this." + lcName )
   with loControl
      .Top = y
      .Left = x
      .Visible = .t.
      y = y + 30
      x = x + 20
   endwith
endfor
>I have a form that either prompts for a table or accepts the table as a parameter. Then for each field in the specified table it places a Textbox on the form, for data entry and stuff.
>
>If I run the form and let it prompt me for the file to use it works fine. The problem occurs when I pass it the file to use as a parameter. It goes about placing a textbox for each field but the forms scrollbars don't appear. There is no way to get to the fields below the bottom of the screen. If I resize the form I can see the fields below but it would be nice to have some scrollbars.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform