Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox question
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01037824
Message ID:
01039508
Views:
15
Hello Sergay,

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?

Regards...Rex
Rex Toomey
ISD Port Macquarie NSW
Australia

'Inside every older person is a younger person wondering what happened.'
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform