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 General Discussion » Read Only Property Value (should not get selected)... how Collapse All
Subject Author Date
Nitesh Singh Sep 15, 2006 - 4:29 AM

Hi...

I have a query regarding ReadOnly PropertyValues...

I was using
        pValue->ModifyStyle( __EGCS_READ_ONLY); to make a property readonly.
the effect comes is... that I is displayed in a different color..

But when I click in that cell the text gets selected and Cursor also changed to edit mode. (though I can not type anything but still)

What I want is that the text "must not" get selected and also the cursor should not change it shape. How to achieve that.. Thanks for your help.


Nitesh Singh Sep 15, 2006 - 10:06 PM

thanks this is exactly what I wanted...... So to make it in diffrent color.. I am adding..
pValue->ModifyStyle( __EGCS_READ_ONLY);

and to disable cell editing I am adding
pValue->ModifyStyle( __EGCS_NO_INPLACE_CONTROL );

Technical Support Sep 15, 2006 - 11:00 AM

You can entirely disable cell editing by applying the __EGCS_NO_INPLACE_CONTROL cell style:

pValue->ModifyStyle( __EGCS_NO_INPLACE_CONTROL );


Nitesh Singh Sep 15, 2006 - 5:33 AM

Please note about the cursor shape change.. (sorry the sentence used is wrong)

I mean that...
Activation of the in-place editor with left button mouse double click should not happen.. also also the text sould not be highlighted or selected... when that perticular cell is readonly..

thank you...