Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, May 17, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Form Placement
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Form PlacementYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Oct 09 2:34 PM
Is there anyway to control where a form is opened up to on a windows screen?

MainView objects?
[Reply][Quote]
Andrew Grandin
Posts: 272
 
Re: Form PlacementYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Oct 09 1:14 PM
Ive dug this out take a look and see what you can come up with:

Dim MV

Set MV = Application.MainViews.Add("YOURFORM", 2, False)
MV.Height = 600
MV.Width = 800
MV.ShowModal

It is possible to control the position of the form as well as the size, you just have to play about with the code a bit.
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Form PlacementYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Oct 09 8:45 PM
Thanks Andrew.

mv.left and mv.top don't do the trick......
[Reply][Quote]
Todd Hardin
Posts: 43
 
Re: Form PlacementYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Oct 09 12:11 AM
Here is an idea to look in to...
I don't recall if MV exposes an hWnd property, but if not then you could access the hWnd of the Form that you are loading using hte MV container. Then use some Win32 APIs to set the Top and Left of the Window (dialog form) using that hWnd.
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Form PlacementYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Oct 09 9:14 AM
OK Todd, you know I don't have a 'vbscript within SLX' clue of how to use an exposed hWnd property.....

[Reply][Quote]
Dan Delisle
Posts: 38
 
Re: Form PlacementYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Oct 14 3:28 PM

Hi, did you ever come up with a way to do this. It appears like I may need to do something like this.


 


thank you

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 5/17/2024 5:50:58 PM