Skip to Content
author's profile photo Former Member
Former Member

Issue in Custom Control UI element

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 08, 2009 at 05:31 AM

    Hi Aravind

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

    Regards

    Vidyadhar

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 08, 2009 at 04:35 PM

    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();
    	    }
    
    

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.