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: Hide the close button
Lou
Posts: 81
 
Hide the close buttonYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Aug 06 10:59 AM
fiogf49gjkf0d
When spawning forms, is there a way to hide the close button? Users need to strictly utilize the GUI.
[Reply][Quote]
Timmus Agersea
Posts: 328
 
Re: Hide the close buttonYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Aug 06 12:57 AM
fiogf49gjkf0d
I wont say it is impossible since there may be Win32 calls to do so (not my expertise). From within the SalesLogix toolbox, however, I would say this is not possible.

Please supply some more info on what you need and I am certain we can assist. For example, you can have code call your form and that code can react based on the modal result of that form. Using the X is the same as the user hitting cancel.

Timmus
[Reply][Quote]
Lou
Posts: 81
 
Re: Hide the close buttonYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Aug 06 7:49 AM
fiogf49gjkf0d
Thanks for the info, Timmus. I had already put the necessary code in the form's "OnClose" event. I was just curious if it was possible to hide the button, which would just make things a little bit easier.
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Hide the close buttonYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Aug 06 10:17 AM
fiogf49gjkf0d
Timmus is right, nothing built in to do this. You can do it with Win32 API calls (See http://ryanfarley.com/blog/archive/2004/04/12/526.aspx), but you won't be able to call those from VBScript.
[Reply][Quote]
Jeremy Brayton
Posts: 491
Top 10 forum poster: 491 posts
 
Re: Hide the close buttonYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Aug 06 1:50 PM
fiogf49gjkf0d
Actually, with 6.2 and mainviews you can change the border style to resizable or a toolbox and it'll change the behavior of the window itself. There may be a style that turns it off but the total behavior may not be desired.

One thing you could do is to use the OnCloseQuery or OnClose events and specify a boolean that is set by "normal" close methods such as the Cancel or OK buttons. The routine can then tell if the user clicked X or not and even chastise them for doing so (OnCloseQuery). It's a lot of extra work when you place this in the context of EVERY form but it's probably better to use this on a couple of forms you know must be manipulated a certain way.


I totally understand why you'd want to do this. Users have a habit of clicking the X when they see the form is seemingly unresponsive. They then turn around not more than 2 seconds later and try again, causing the form to behave weirdly in certain instances because of caching.
[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 12:16:11 PM