Re: Dialog questions


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Brian Levantine on September 12, 2005 at 21:35:56:

In Reply to: Re: Dialog questions posted by Grant Foraker on September 08, 2005 at 11:54:23:

Hi Grant. The NE attributes are NOT part of the MS development environment. I'm using some code I found at another web site to handle the numeric and masked editing. If something doesn't work I'll check into it when I have some extra time.

To right justify your edit control set the "Right Align Text" property for the control in VS. ES.RIGHT is the actual style you'd specify if building the control on the fly.

FlushEvents is need in certain cases to handle the case where your code is using LOSTFOCUS events to trigger validation. If an error occurs and you diaplay a error dialog, you may cause more lost focus message to be generated. My fix for this is to flush any pending events prior to returning from the error handler. If you are not validating in this manner then you should not run into this problem.

I realize that BN.CLICKED is often the only message sent by a control and thus would allow you to not bother checking in your command handler. My code is for learning purposes and as such I like to should how the code should be structured. Feel free to hack away!

The framework is really nothing more than a bunch of compromizes that I made to simplify dialog development. There is nothing magical about how it works. I simply sat down and wrote a bunch of programs that used features that I thought were handy. I then re-factored the code with Barbara's help and CometWin was born. Again, feel free to invent your own framework or modify ours to your liking. To the best of my knowledge there are no features in that code that will ever quit working (I know, famous last words - ugh!).

VS Build will only happen if changes were made to the project files. For your purposes, ReBuild will work just as fast and is guaranteed to produce your output file.

Sorry about the EditReadOnly problem - I just follow MS examples.

It's always nice to see someone using the new stuff. Keep upi the good work.



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):






[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]