Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox Object
Message
De
31/07/2006 16:06:25
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
31/07/2006 14:39:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP1
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01141855
Message ID:
01141919
Vues:
16
>>It's related with its width and font I think and the number varies, but it stops soon.
>
>Doesn't seem to care what the font is (keeping the size and style fixed). Try the below:
>
>
>DEFINE CLASS form1 AS FORM
>  AutoCenter=.T.
>  Height = 123
>  Width = 247
>  Caption = "Textbox Length Test"
>  Name = "Form1"
>
>  ADD OBJECT text1 AS textbox WITH ;
>    Height = 24, ;
>    Left = 10, ;
>    SelectOnEntry = .T., ;
>    Top = 29, ;
>    Width = 194, ;
>    Name = "Text1"
>
>  ADD OBJECT cmdchgfont AS commandbutton WITH ;
>    Height = 29, ;
>    Left = 62, ;
>    Top = 71, ;
>    Width = 124, ;
>    Caption = "Change Font", ;
>    Name = "cmdchgfont"
>
>  PROCEDURE cmdchgfont.Click
>    LOCAL lcFont AS String
>    lcFont = GETFONT(thisform.Text1.FontName)
>    IF !EMPTY(lcFont)
>       thisform.Text1.FontName = GETWORDNUM(lcFont,1,",")
>    ENDIF
>  ENDPROC
>ENDDEFINE
>
>
>On my PC (with VFP9 SP1), I can enter only 36 characters. Changing the font does not affect the length.

Yes,
It was a wild guess of the reason:)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform