June 27, 2024, 08:41:16 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Force uppercase in @edit

Started by Andy, April 22, 2012, 12:11:49 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andy

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.

Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

ZeroDog


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


Andy

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.
:)


Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

ZeroDog

April 22, 2012, 05:10:14 AM #3 Last Edit: April 22, 2012, 05:17:36 AM by ZeroDog
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


Andy

Thank you so very much!!!!!!!!!
Andy.
:)
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

LarryMc

I'd be more lost than what I am without the API Viewer mentioned above.
I have to use it all the time.

LarryMc
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library