cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in Custom Control UI element

Former Member
0 Kudos

Hi there,

I have created 2 custom controls(SAP mobile 7.1), one for rendering images(actually map images) and another for capturing user's signature. Both are integrated into the main application and works fine when alone. But when present together, certainly on different screens in the main app, still it works but with rendering problems. Say when navigating from the screen that displays the map custom control to the screen that has the signature capuring custom control, the map image is still getting displayed over the signature custom control view.

I wonder , if the problem is with disposing of the custom control. Can anyone suggest how to do that. Or something else has to be done?

Regards,

Aravind

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hopefully someone more knowledgeable about custom controls \ SWT can add some input

I do know disposing the SWT controls is important but not sure if it would solve your problem

from our application that uses a few simple custom controls together, we definitely needed to use dispose or it would cause memory consumption issues and slow performance

within the constructor



[Text object].addDisposeListener(this);

method to dispose color and fonts used


public void widgetDisposed(DisposeEvent event)
	    {    	
	    	font.dispose();
	    	amber.dispose();
	    }

Former Member
0 Kudos

Hi Aravind

You can try with swt Dispose event listener. You can add this listener to the custom control constructor...

Regards

Vidyadhar