>When a user right-clicks on a numeric field, I want a calculator to pop-up as help. I then store the _CALCVALUE to the field. I needed the calculator to be modal so I created a small form with just a close button and in the activate of the form I say 'activate window calculator in window calc.' One problem is that on some of the machines the calculator comes up and on one it doesn't. Anyone know why? Also, is there any way to control the calculator window - i.e. - not allow minimizing or be able to determine the width so I can size the form around it?
>
>Thanks
>Elyse
IMHO, putting a window in a window can be a kludge. Also IMHO, the calculator shouldn't be restricted to a modal window. What is the user wants to calculate more than one field, or maybe wants to use the calculator for the same field on multiple entries? The user will have to right-click all the time?
What if you use _CALCMEM instead of _CALCVALUE? The user can pull up the calculator by right-clicking and leave it up if desired. The user can move a value from the calculator to the current field by storing it to memory. Use a timer to check if the _CALCMEM is a non-zero (or what ever your default is) and if a numeric field is the current object, set the value=_CALCMEM. That way the user can leave the calculator up and use it however desired. That way, you don't have to worry about modal forms.
HTH.
Matt McDonnell
...building a better mousetrap with moldy cheese...