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 » Bug in CExtGridCellUpDown alignmnet Collapse All
Subject Author Date
Offer Har Aug 25, 2006 - 2:30 PM

Hi,

I have a property grid with a CExtGridCellUpDown cell I create.
I would like the etxt top be aligned to the left, so i call on the cell this line:
    pValue->ModifyStyle(__EGCS_TA_HORZ_LEFT);
The text moves to the center... tried all other values, none of them moves the number to the left side.

Please rectify.

Regards,

Offer

Technical Support Aug 26, 2006 - 7:06 AM

You can change the alignment in two steps. First, remove any applied by default styles:

    pGridCellUpDown->ModifyStyle( 0, __EGCS_TA_HORZ_MASK );
Second, apply the desired alignment:
    pGridCellUpDown->ModifyStyle( __EGCS_TA_HORZ_LEFT );


Offer Har Aug 26, 2006 - 8:08 AM

Thanks. That does it.