Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox question
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01037824
Message ID:
01039514
Vues:
15
Try to set Column aligment. Leave textbox aligment default.
.Column3.Alignment = 1      && Middle Right justified
>
>I refer to my previous msgs about using a grid instead of a listbox to get a right aligned column of dates on a form.
>
>After setting up the form with the new grid and populating the grid from a cursor, I cannot believe that the dates are now being displayed centred rather than right justified.
>
>This is the abbreviated code in my eSetGrid() method:
>
>WITH THISFORM.eView.Page1.grdEvents
>   LOCAL nGridWidth
>   nGridWidth = .Width
>   .AllowCellSelection = .F.
>   .RecordSource = "events"
>   .RecordSourceType = 1
>
>   ...
>   .Column3.Header1.Caption = "Date"
>   .Column1.Header1.Alignment = 0    && left justified
>   .Column3.Text1.Alignment = 1      && right justified
>   .Column3.Width = INT((12.2 * nGridWidth) / 100)
>   .Column3.ControlSource = "date"
>   ...
>ENDWITH
>
>
>IF I comment out the ".Column3.Text1.Alignment = 1", the dates are left justified, if I use either 1 or 2 the dates are centered.
>
>Do you know of any reasons why this would be happening? If it's not fixable, I may as well go back to left padding the date column of the listbox.
>
>BTW, does it have anything to do with #56143 posted today by Neil Lewis?
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform