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 » Read-only cell with spinner Collapse All
Subject Author Date
Leland Dykes Jan 26, 2007 - 5:01 PM

Given a cell subclassed off CExtGridCellPercentage and with __EGCS_BUTTON_UPDOWN set, is it possible to make the text part of the cell read-only (or, better yet, non-editable) without losing the spinner?

Leland Dykes Jan 29, 2007 - 12:19 PM

__EGCS_READ_ONLY disables the up/down buttons, but __EGCS_NO_INPLACE_CONTROL gives me what I want: a non-editable field with input by means of the up/down buttons. Thank you.

Suhai Gyorgy Jan 29, 2007 - 1:40 AM

When initializing the cells, call ModifyStyle for each cell of CExtGridCellPercentage to add style __EGCS_READ_ONLY or __EGCS_NO_INPLACE_CONTROL. With readonly style, in-place editor is created but text cannot be modified in it. The other style suppresses the activation (and thereby creation) of the in-place editor altogether.