Previous Thread

8/15/2006 1:32:01 AM    Property "ReplaceAfterLookup" on DialogField
Hello, 
 
I need to build some Dialog with the Field, that I use as the Range. For 
 
this Field would be fine to set the Property "ReplaceOnLookup". But for the 
 
Type DialogField is that not possible. 
 
Has anyone Idea? 
 
Thanx 
 
Radek



8/18/2006 4:42:10 PM    Re: Property "ReplaceAfterLookup" on DialogField
You would have to extend the DialogField class. I once did this. Two methods to add/change 
 
new: 
 
void cbsReplaceOnlookup(NoYes replaceOnLookup) 
 
{ 
 
// cbs/mf 2004/04/30 begin 
 
if (properties) 
 
dialog::setProp(properties, #PropertyReplaceonlookup, replaceOnLookup); 
 
else 
 
this.fieldControl().replaceOnLookup(replaceOnLookup); 
 
// cbs/mf 2004/04/30 end 
 
} 
 
changed: in unpack add the following to the switch 
 
// cbs/mf 2004/04/30 begin 
 
case #PropertyReplaceonlookup: 
 
this.cbsReplaceOnlookup(unpackedProperties.valueIndex(i)); 
 
break; 
 
// cbs/mf 2004/04/30 end 
 
Mike