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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening Word Document with Buddy Api 1

Status
Not open for further replies.

philjwyatt

Technical User
Oct 7, 2003
11
GB
If I have an icon in a scene and want to open a Word document when I click on it with the mouse - can anyone give me the code to do this? Think i will use BuddyApi. Would it start with On MouseUp Me, or do you need to define a property?

Many thanks for any help
 
Example Buddy API code:
Code:
--
on mouseUp me
   baOpenFile(“someWordDoc.doc", "normal")
end mouseUp
--
 
Thanks very much for that - is it possible to specify the size of window that WORD will open in - its not critical but would look better in a smaller window.

thanks again
 
“specify the size of window that WORD will open in” - this is tricky. Windows store application window sizes in the Registry but to identify and modify the binary data will be too complicated, even if it’s at all possible.

You can, however, change the size and position of the window once it’s launched using MasterApp Xtra.
Code:
--
mappSetWindowOutsideRect(windowIDNum, leftNum, topNum, rightNum, bottomNum)
--

If you’re interested, here’s the URL for MasterApp Xtra documentation:
 
to specify the size to fill the screen simply change the code to on mouseUp me
baOpenFile(“someWordDoc.doc", "maximaise")
end mouseUp


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top