11/26/2024 4:25:41 AM
|
|
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!
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
|
|
|
|
Repaint issue with client-aligned form on main view
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. |
|
|
| |
|
Re: Repaint issue with client-aligned form on main view
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..." |
|
|
|
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!
|
|
|
|
|
|
|
|