Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AppFormAsynchResize not triggered
#7
Sorry for late reply, had some other projects to attend to :-)

Basically I have a huge problem with screen updates whatsoever. 
We have a old VCL application thet I tried to "convert" to Intraweb. It has houndreds of dynamically created components on it, mostly Images. All components are resized and positioned depending on current screen size. The OnAScreenResize event does an initial huge job reposition and sizing everything, after that different events trigger other updates, for example if a image dissapears then all images around it gets resized to fill the missing area.

My problem is that I can se my code is executed to set for instance size on a component but it is not reflected on screen. 
I tried lots of  Self.AsyncReload(True);  and component.Invalidate;  but screen is not reflecting the components actual size/position.

This does not apply to all components, many of them work just fine, but if i rearrange my code resizing in another order then suddenly other components does not work.

If I insert a breakpoint in my program and check a components properties for Height and Width I can se it has the correct values but it's not reflected on screen!

Is there a way to FORCE out a new page updating all componet properties on the webpage? Even after a Self.AsyncReload(True); screen is wrong.

Can this problem depend on missuse of Asynch and Synch events?  I asked in the forum before whats the real difference between Asynch events and Synch events, but have not gotten any clear information.

I have a bunch of timers triggering all over the place initiating component updates, can this be a problem? Should i use OnAsynchTimer or OnTimer events?

And no, it's not easy to produce a sample program as all the events are triggered from different communication routines :-(

Best regards, frustrated Mikael
Reply


Messages In This Thread
AppFormAsynchResize not triggered - by Lenfors - 08-22-2023, 08:05 AM
RE: AppFormAsynchResize not triggered - by Lenfors - 08-29-2023, 12:37 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)