Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, November 26, 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: Risize form in script at runtime
Vladimir
Posts: 93
 
Risize form in script at runtimeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Apr 06 7:22 AM
fiogf49gjkf0d
Form is modal.
Script "frmForm.Height = size" is not working.

Any suggestions?
[Reply][Quote]
Jeremy Brayton
Posts: 491
Top 10 forum poster: 491 posts
 
Re: Risize form in script at runtimeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Apr 06 10:03 AM

progesterone def

progesterone
fiogf49gjkf0d
MainViews are the only thing I know of that let you change the size correctly. You can use Form.Height to READ the property but I don't think it's writeable. Plus the MainView.Show command is the only thing I know of that lets you create the form, resize it, then show it at some other time. When you do things the normal way, everything has to be loaded from the design time properties and by then it's too late to change them.

Edited to add: Insert Opportunity has great examples of MainView form calls and how to set the size at runtime.
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Risize form in script at runtimeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Apr 06 10:24 AM
fiogf49gjkf0d
Jeremy is right on, the only chance you have to resize the form is to use a MainView. Normal forms cannot be resized (we'll they can, but it takes a lot of tricks with some Win32 APIs). Normal forms are hosted inside a container window (which you don't have access to) making it impossible to just resize the form itself (since the container wouldn't resize with it).

A MainView is made to give you exactly that level of access. You can resize the form easily.
[Reply][Quote]
Vladimir
Posts: 93
 
Re: Risize form in script at runtimeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Apr 06 11:48 AM
fiogf49gjkf0d
Thanks for all
[Reply][Quote]
Rafael S.
Posts: 66
 
Re: Risize form in script at runtimeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Apr 11 9:21 AM
fiogf49gjkf0d

Hello guys!


 


Im trying to do a "Hide / Shows Details" button in SLX... And when the user click on "Show Details", the form must be resized and show the controls...But i cant change the height of the form, as i saw in your posts...But i dont have ideia how to do this...This can be done somehow?


thanks!!


Rafael

[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): 11/26/2024 2:35:32 AM