True or false have the same affect. On August 19, 2021 12:05:26 PM EDT, Richard Kaye <rk...@invaluable.com> wrote: >How is sparse set? > >-- > >rk > >-----Original Message----- >From: ProfoxTech <profoxtech-boun...@leafe.com> On Behalf Of Tracy Pearson >Sent: Thursday, August 19, 2021 11:51 AM >To: profoxt...@leafe.com >Subject: Grid column text alignment shifts on first focus > >I have a grid in my application that allows users to edit some columns. >(Most of my grids don't allowCellSelection) There is 15 columns, the first two >do not allow editing, the rest do. >The 2nd column alignment appears as top left until it is clicked in at which >time it aligns middle left like the other read only column. >The other 13 columns are numeric and are all aligned middle right. >The first 3 columns are locked. (lockcolumns = 3) > >I have set the alignment to middle left on the column and the textbox, yet it >still wants to first appear top left. > >I have set this in the properties on the grid class and in the init event I >also set them in the grid class. >I have set this in the properties on the grid in the form and in the init >event of the form. >I have placed a button on the form that when clicked it sets these properties. >I have used the Grid.ActivateCell(1,2) to try to trick the grid. I set the >ReadOnly to false before I did. >The When event returns a value on the form to prevent focus. It was allowing >focus when I attempted the ActivateCell. > >The text in that column does not align correctly until a row in that column is >clicked. I also notice a white line (highlight?) around the inside of the cell >when the cell is clicked. Once focus moves from that cell the highlight goes >away. > >Has anyone seen this and discovered the trouble behind it? > >Thank you, >Tracy > > [excessive quoting removed by server]
_______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: https://leafe.com/archives This message: https://leafe.com/archives/byMID/f6ff5446-339a-47ab-8b9e-a38514699...@powerchurch.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.