main logo
Subject: Menu builder, menu pad builder
Author: James Sayer
Posted: 2001/03/23 17:24:13
 
View Entire Thread
New Search


Greetings All,

If you are using the oo menus and you want to use the builders... look at your builder classes and determine if you could benefit from these enhancements.

1) menuPadBldr.vcx - MenuPadbuilder.pgf.txtCaption
set the property .lEditMode to default value (.F.).
This appears to be an old property that should be set .F. always. The text box is still active and making interactive changes are written to the property. But when the textbox is initialized the .Value (and the property in the property sheet) is set to blank if .T.

It appears that the .ReadOnly property is the new and improved flag in the builders when you want to make a textbox not editable.

2) the ProgrammaticChange() method simply refreshes the imputMask property, but could do more. Sometimes the programmed/calculated values are not diplayed in the builder text box. Here's what I've done to
BuilderB.vcx - BuilderTextBox.ProgrammaticChange()

LOCAL lcProperty, luValue
lcProperty= this.cProperty
luValue= this.Value

IF ISNULL( luValue);
OR TYPE( 'luValue') <> 'C' ;
OR ISNULL( lcProperty) ;
OR EMPTY( lcProperty) ;
OR NOT this.lUpdateOnChange ;
OR NOT this.Valid()

RETURN
ENDIF

thisform.lObjectUpdated= .T.
this.RefreshPropertyValue()
this.RefreshInputMask()
RETURN

James Sayer
 
©2001 James Sayer
<-- Prior Message New Search Next Message -->