WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: JTaylor on October 09, 2020, 05:17:53 PM

Title: Dialog Extender with EditBox Masking
Post by: JTaylor on October 09, 2020, 05:17:53 PM
Let's try this again...

I have renamed my CommControl Extender to DialogEx Extender.    Why?   Just because I guess but maybe a little less ambiguous.   In any event....

I converted it from C to C++ and brought it up to the latest version of the SDK....might have published C++ version before???

I removed the DatePicker functions because they are no longer needed.

I added ebMask() and ebMaskClean() functions.   ebMask() is for masking text in an editbox so you can do things like only allow Uppercase letters or set the format for phone numbers (xxx) xxx-xxxx and other such things.    ebMaskClean() retrieves the text with various options for keeping or removing the masking literals and separators.

I broke out a version with just the editbox functions so if one isn't interested in overloading their function map with over 100 other functions you can just used the Editbox ones.   The Help is for the main extender.  Just look up the EditBox functions.

http://www.jtdata.com/anonymous/dialogex.zip

http://www.jtdata.com/anonymous/ebmask.zip

Jim
Title: Re: Dialog Extender with EditBox Masking
Post by: oradba4u on October 11, 2020, 04:08:35 PM
Is there any reason why I get nothing viewable in the .chm file of ebmask.zip?
Title: Re: Dialog Extender with EditBox Masking
Post by: JTaylor on October 11, 2020, 05:43:42 PM
Very common issue with CHMs.   Right-click on it in File Explorer and unblock it.   It is a windows security thing.

Jim
Title: Re: Dialog Extender with EditBox Masking
Post by: JTaylor on October 12, 2020, 08:49:41 AM
Just realized I didn't make one thing clear and which may not be obviously apparent.

    ebMask() should be placed in the Dynamic Dialog EditBox Event for the control being masked.


Jim
Title: Re: Dialog Extender with EditBox Masking
Post by: kdmoyers on October 12, 2020, 11:39:49 AM
Quote from: JTaylor on October 11, 2020, 05:43:42 PM
Very common issue with CHMs.   Right-click on it in File Explorer and unblock it.   It is a windows security thing.
Jim
I found the CHM didn't work unless it was located on my C drive, not on a network drive.  Not sure why.
-K
Title: Re: Dialog Extender with EditBox Masking
Post by: JTaylor on October 12, 2020, 11:44:23 AM
Windows Security thing.   That is expected behavior, from what I remember.   Sorry, didn't think to mention that too.   Not sure why the security is so tight on those things but assume they have the ability to really mess things up???

Jim