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 » PropertyValueMixed gives problem Collapse All
Subject Author Date
Nitesh Singh Sep 15, 2006 - 10:50 PM

Hi.......

I have a problem with propertyValueMixed...... ::Apply()

Suppose I have a PropertyValue (cell type as CExtGridCellString ) named as Color:
for object-1 the Color = "red"
for object-2 the Color = "green"

now if both are selected then by virtue of propertyValueMixed the corresponding cell shows empty... {neighter red nor green}.. that is fine.

but suppose when I click inside that cell
and then go out of the cell ( click some other cells)
then it takes that string value "".... which is string of length zero... i.e. pValueString->TextGet( str); // value of str returned is ""

Actually I want to disable it.. I want that when string value is "" then It should not come at the function Apply(). In not a single case I will be considering a zero length string. .. I hope you understood my problem..
please suggest me what to do...... thank you.

Technical Support Sep 18, 2006 - 1:44 AM

We do not see any problem with invocation of the Apply() method. You can simply assume an empty string or any other incorrectly formatted string to be having an invalid color value and not invoke the method of the parent class.