Welcome! Log In Create A New Profile

Advanced

how to require entry field with yellow background under WINDEV

Posted by PETER ZHOU 
Hi,

How to make 'require' entry field with yellow background under WINDEV (for end-user to know it's required) ?
Cannot recall where i have seen this feature mentioned

Regards,

PETER ZHOU
Al
Re: how to require entry field with yellow background under WINDEV
May 06, 2026 04:26PM
Hello Peter,

If you want to hard code it in the field init() event.
MySelf..BrushColor = LightYellow  //Background colour
MySelf..Color = black //  or default   for the text colour

I have a process to enable users to create background and text colours for a variety of field attributes and these are set by running a global procedure in the init event of almost every field in my windows. The global process also writes the field name into an array that is used to test the data in the field using another global procedure in the field exit event.

The ..BrushColor has been replaced by ..BackgroundColor but old habits die hard.

Regards
Al
Re: how to require entry field with yellow background under WINDEV
May 06, 2026 11:35PM
I've used returntocapture() for this purpose.

Regards
Mike
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: