Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 22, 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 - Controls
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Controls | New ThreadView:  Search:  
 Author  Thread: Repaint issue with client-aligned form on main view
Karlin High
Posts: 9
 
Repaint issue with client-aligned form on main viewYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Mar 10 3:16 PM
My custom account details form is not being redrawn. The problem happens after another main view (say, Leads) is opened, covering the accounts view, and then closed, exposing the accounts view again. My form remains a gray wash-out until I resize the details section; I can't even select the form's controls. I thought maybe it was something I did with that form, so I created new main view and form plugins to check for that. Same problem.

The form is being displayed in the Details View section on the main view. I have the form's Align property set to "alClient." Other alignment settings behave better, but I need to keep the form small for certain users with low-resolution desktop sizes. And, I have the form changing color based on displayed data, so I want it to still make a big splash on large displays. The Client alignment is what I want.

If I set the Align property in script, the form repaints nicely. But I can't find a good event that fires when the form becomes visible. (I need the equivalent of events like Activate or GotFocus in MS Access.) I guess I could use the Refresh event, and tell the users to "just press F5 whenever it goes blank like that," but I was hoping for something cleaner.

In summary: Do client-aligned forms have a known issue with repainting, or is this something I did? And, is there any good way to have them repainted after getting covered and uncovered by another main view?

FYI: I'm using SalesLogix 7.5.0.1484 on Windows Server 2008 over a MS Terminal Services client.
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Repaint issue with client-aligned form on main viewYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Mar 10 11:59 AM
application.basicfunctions.processwindowsmessages()

may help.
[Reply][Quote]
Karlin High
Posts: 9
 
Re: Repaint issue with client-aligned form on main viewYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Mar 10 2:09 PM
That would be nice. But how do you make it run when a main view comes to the fore after being covered?

The only thing I could think of was putting a timer on the form to run the code. ProcessWindowMessages didn't help; neither did Application.DoEvents (that's the same thing, isn't it?)

Although I could use the timer to make it sit there going "Align = alClient, Align = alClient, Align = alClient..."
[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/22/2024 4:09:09 PM