IonicWind Software

IWBasic => General Questions => Topic started by: Andy on April 22, 2012, 12:11:49 AM

Title: Force uppercase in @edit
Post by: Andy on April 22, 2012, 12:11:49 AM
Hi,

Silly simple question time again!

I have a screen with an edit box which I allow letters and numbers.

CONTROL dy,@EDIT,"",140,65,65,25,@CTEDITCENTER,EDIT_1

How do I force the letters entered to be in capitals?

Simply can't find it in the help file.

Thanks,
Andy.

Title: Re: Force uppercase in @edit
Post by: ZeroDog on April 22, 2012, 01:44:12 AM

Add the ES_UPPERCASE (0x8)  flag to the edit control:


CONST ES_UPPERCASE = 0x8
CONTROL dy,@EDIT,"",140,65,65,25,@CTEDITCENTER | ES_UPPERCASE ,EDIT_1

Title: Re: Force uppercase in @edit
Post by: Andy on April 22, 2012, 04:24:08 AM
Thank you!!!

Is ES_UPPERCASE a 'built in' word or just something you called it?

and 0x8 why that value - I must be missing something from the help file?

Is there anywhere I can find out these values and 'extra' keywords?

Anyway thanks again!

Andy.
:)


Title: Re: Force uppercase in @edit
Post by: ZeroDog on April 22, 2012, 05:10:14 AM
Its not in the help file.  They're part of the windows flags.

ES - Stands for Edit Style, and there are a handful of them.  Some have been added to IWBasic's list of constants, such as @CTEDITNUMBER (which is ES_NUMBER),  and @CTEDITCENTER (which is ES_CENTER).

You can search through MSDN for all the various flags (which is annoying if you dont have the old offline MSDN CD's to use locally).

However, there are two programs that I would highly suggest for anyone coding.

API Guide <-- Tons of info on all kinds of windows API's that you can use
API Viewer <-- All kinds of API related info, such as declares, constants (such as the ES styles you're looking for) and UDT's (required by many API functions).

Once you start using those two programs, you will wonder how you ever lived without them...

You can find them both here:
http://allapi.mentalis.org/agnet/apiviewer.shtml

Title: Re: Force uppercase in @edit
Post by: Andy on April 22, 2012, 05:44:12 AM
Thank you so very much!!!!!!!!!
Andy.
:)
Title: Re: Force uppercase in @edit
Post by: LarryMc on April 22, 2012, 05:51:44 AM
I'd be more lost than what I am without the API Viewer mentioned above.
I have to use it all the time.

LarryMc