Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what should i do to show a vfp calculator in my main form 3

Status
Not open for further replies.
Jan 20, 2007
237
US
Hi All,
i have a form and i added a cmdbutton with a caption "calculator, so in the "click event of that button", i added "activate window calculator", to open the vfp calculator, but that does not work for me as the calculator it is not shown. the form where i have the cmdbutton is modeless, is there anything else to have in mind to make it pop up ?
can anyone guide me please ?
Thanks
Ernesto
 
Ernesto, I think you are going to have to experiment a bit with DEFINE WINDOW. Also, read the Help.

But, basically, DEFINE WINDOW creates a new window either within _SCREEN or within another user-defined window - not in a form. (At least, that's my understanding.) I don't know any way you can get the calculator to appear in your form. It makes no difference whether you put you code in the form's Load or the button's Click or anywhere else.

When you display the calculator in a user-defined window, it appears to place it somewhere in the middle of the window. I don't know how exactly it determines where to put it, but if the window is not big enough, some or all of the calculator will be clipped. You can solve that by using MOVE WINDOW Calculator TO 1,1.

But you will still need some experimenting to get the size of the window right.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top