Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Left align does not work for CExtGridCellUpDown contents. Collapse All
Subject Author Date
marc uchida Sep 27, 2006 - 2:07 PM

I have a grid with various cells types. Most cell’s contents I can left align with ModifyStyle(__EGCS_TA_HORZ_LEFT), but this doesn’t have the same affect on my CExtGridCellUpDown cells. It appears __EGCS_TA_HORZ_LEFT has the same affect as __EGCS_TA_HORZ_CENTER. The default is right alignment, and that certainly works. I do not desire the buttons to be left aligned, but only the number value.
Is this a bug?
thanks

marc uchida Sep 27, 2006 - 2:13 PM

Never mind me, just found the answer myself.
Using ModifyStyle( 0, __EGCS_TA_HORZ_MASK ) before calling ModifyStyle( __EGCS_TA_HORZ_LEFT ) does the trick.