Consultor Eletrônico



Kbase P8424: How to create a FILL-IN widget that looks like a native Windows one.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Unverified

GOAL:

How to create a dynamic FILL-IN widget that looks like a native Windows one.

FACT(s) (Environment):

Windows

FIX:

You must set the SUBTYPE attribute to "NATIVE". For example:

CREATE FILL-IN hFillIn
ASSIGN ROW = 10
COLUMN = 1
SUBTYPE = "NATIVE"
FRAME = FRAME myFrame:HANDLE
.....

Please keep in mind that the SUBTYPE attribute can only be set before the widget has been realized, and that setting some widget attributes (e.g. the FRAME attribute) force the widget to be realized. Therefore the following would not work:

CREATE FILL-IN hFillIn
ASSIGN ROW = 10
COLUMN = 1
FRAME = FRAME myFrame:HANDLE /* Here the FILL-IN is realized. */
SUBTYPE = "NATIVE" /* This fails. */
.....