How to call the paint of another method program

Hello

I have a custom BitmapField that I would like to drawText, using graphics.drawText. Previously, I had no problem, that I would call setBitmap to the paint method and it would make the drawText. However, he did an infinite loop problem, so I moved it to another function, that will affect the value manually the bmp. Now, I am unable to drawText, that I placed this code in my service object. I would, however, when I select this particular BitmapField to drawText.

For now, since another function setBitmap is not a very good option because this will call the FieldManager sublayout which I think can be a battery problem. Is there another way I can call drawText?

What is the reason, once again, to not draw the text from inside her object?  Why must you to setBitmap() to draw the text in the first place?

Indeed, setBitmap() inside of object causes an infinite loop (I remember this post).  However, it should not be linked to draw text in any way, nature or form.

Check some (members) variable inside your method object and make the draw you need based on this value.  If you want your bitmapField to draw text under certain conditions, change the value of this member and invalidate(), causing object pick up the change.

In addition, if your FieldManager sublayout a problem, there are a problem.  Look at this code and fix the bugs rather than them with all kinds of mobile code around masking.

If you need more assistance, please post here the pieces of code (especially how you would draw the text when it worked) and we'll figure out something.

Tags: BlackBerry Developers

Similar Questions

  • How to call the taskflow or bean method after returning from operational-stream-call activity.

    I use JDev 11.1.2.4.0.

    Here is my scenario:

    A page contains a table with a button 'Add' called a popup.  The popup has controls to select data and save/Cancel buttons.  The Save button calls a managed bean method will add a line to the iterator in the table is built on.  I'd like the table to refresh the closure of the pop-up window.

    This is how I implemented it:

    I have taskflow1 that contains an activity view (page1).  Page 1, I have a button that calls managedBean1.method1 () who does a job and returns a result of 'showpopup '.  ShowPopup goes to a task-flows-call activity, called taskflow2.  Taskflow2 has a point of view (page 2, which is presented as a popup) activity and a return.   I want to call a method in managedBean1 to refresh the table once the popup is closed and I can't understand the right way to do it.

    After writing this I wonder if I should create the popup in the calling page rather than creating a separate workflow.  I started with a separate workflow because the popup is a quite complex.

    Thanks for help.

    Rudy

    Add a listener to return the button 'Add '. It will be called by ADF Faces upon return of the taskflow. For example:

    useWindow = "true" windowWidth = "600" windowHeight = "400".

    action = "#{MyBean.Method1} '"

    returnListener = "#{MyBean.myReturnListener}" / >

    And the bean method:

    public void myReturnListener (ReturnEvent returnEvent)

    {

    Do something, for example to update the table on the screen

    AdfFacesContext.getCurrentInstance () .addPartialTarget (myTable);

    }

    NB. don't forget to mark the taskflow call activity to 'run as dialog '.

    If you need the taskflow return result, you can get it in the earpiece to return via the method ReturnEvent.getReturnValue ().

    Dimitar

  • How to call the SWF in another swf file using xml

    HII,

    I am facing a problem to call a SWF via xml when the loaded xml file it asks another swf file that includes a new xml file. now, if I call this nested swf calling without xml it works but in case of xml, it does not show the result. I confused Mr. how to nested xml file call done in as2/as3. I need some logic. Thanks in advance

    This is the forum of AS3 and your assignment involves AS2 code.  You should repost in the AS2 forum...

    http://forums.Adobe.com/community/Flash/flash_actionscript

    Aside from that, your problem may lie in the following lines...

    _root.createEmptyMovieClip ("sub_container1", 1);
    loadMovie (. attributes.url sub_SWFPath [1], "sub_container1");

    You create the new movieclip, sub_container1, in the _root, but you do not assign the loadMovie to load in the same movieclip (unless you have a _lockroot = true in your sub - swf).  In all cases, you should repost in the AS2 forum to continue troubleshooting.

  • How to call the setting menu of the BIOS on HP DV4 1540us netbook?

    Hi all

    How to call the setting menu of the BIOS on HP DV4 1540us netbook?

    F2 does NOT an on-screen BIOS setting.

    Is there another trick?  Or, perhaps, defining the procedure step by step to start the BIOS?

    TIA

    Power on the laptop and all logo HP being displayed, press F10.

  • How to call the web service?

    Hello

    I want to know how to call the web service from my application HTML5 & javascript.

    Please help me find this detail as what I can access easily. and I want to access web services online (a method of it) I'm not concered with how background Web service takes place.

    I just want that when you call a web service method, I will return the result.

    Please try this out for a WebService call

    var xmlhttp;
    xmlhttp = new XMLHttpRequest();
    xmlhttp.open("get","your url",true);
    xmlhttp.setRequestHeader("Accept","application/json");
    xmlhttp.setRequestHeader("Content-type", "application/json");
    xmlhttp.onreadystatechange=function() {
     if (xmlhttp.readyState==4) {
      if (xmlhttp.status == 200) {
        console.log(xmlhttp.responseText);
      }
     }
    }
    xmlhttp.send();
    

    This will display the result of the invocation of webservice. The url is the application that you deploy and the type can be get/post. If xmlhttp.send (post) takes argument for the display of the data. You can call it by clicking a button in HTML.

  • How to call the workflow

    Hello

    How to call another workflow a workflow or how to pass the value to another workflow?

    example:-a and B are two workflow, I want to call workflow of B in a workflow.

    Thank you in advance.

    Make slide a workflow of the element from the palette on the schema and link entries.

    See http://vmwarelearning.com/orchestrator/

  • How to call a function in another function?

    When I press a button, I want a series of functions to be performed one after the other (they contain interpolations, but its not relevant) , all of them waiting for the previous must be filled. I want to put the series of functions within a function, so I can simply call this function to run all others. Animations work well, but I don't know how to call functions of in another function. It would also be necessary each function to wait until the previous one is complete, to run. This is a clear example of what I need to do:

    boton.onPress = animate;

    Function animate () {}

    Animation1 (onComplete: animation2);

    animation2 (onComplete: animation3);

    animation3;

    }

    Function () {Tween 1} animation1;

    Function () {Tween 2} animation2.

    Function animation3 () {Tween 3};

    any suggestions?

    which isn't really make sense unless you're tweening or do something of asynchronous (such as loading a file).

    Function b (): Void {}

    C() ;

    D() ;  C() executed when this line runs

    }

  • How to call the javascript function in ADF

    I have the javascript function stored in a .js file external (try to reuse in another application). How can call the javascript function for an event of ADF faces component. I need to I am a newbie to ADF, all ideas are appreciated.

    Kind regards
    Surya

    Published by: sgodavar on Sep 24, 2010 11:44

    Include JavaScript to the jsff/jspx as page:

    Call it like:

    Type = "dblClick" / >
    Amit

  • How to call a bunch of another instance?

    Hi all:
    How to call a bunch of another instance?

    for example:

    package A is for instance A1

    Package B belongs to instance B1


    Now, I want to call package B A1 pending, how can I do? my environment is oracle 10g





    Concerning
    Terry

    If the instance A1 and B1 instance is not in the same machine, can I use the same db link to connect?

    YES

  • How could call a report from another report?

    Dear developers,

    How could call a report from another report?

    is this possible? and what is the call statement?

    Note: I use the 6i report



    Thanks in advance,


    Bil

    Hello

    It seems that you 'open' a quote before: orderby.
    You must "close" this quote after: orderby

    SRW.run_report ("report = SDCRVRF106 Cl_NO ='|"'|: CLIENT_no | "") ' || ' d1='||'''' || :D1 ||'''' ||' d2='||''''||:D 2 ||'' ' |' orderby =' | '''|| : o rderby | " ') ;

    concerning

  • How to call the procedure type table

    Hi I have the below requirement

    Created in the sub table type

    CREATE or REPLACE the TYPE char_type IS the TABLE OF VARCHAR2 (4000);

    create or replace procedure test_proc_type (p_type char_type) is

    Start

    I'm looping 1.p_type.count

    dbms_output.put_line (p_type (i));

    end loop;

    end;

    How to call the procedure with parameter as a type!

    SQL> create or replace type  char_type as table of varchar2(4000)
      2  /
    
    Type created.
    
    SQL> create or replace procedure test_proc_type (p_type char_type)
      2  is
      3  begin
      4    for i in 1..p_type.count loop
      5      dbms_output.put_line (p_type(i) ) ;
      6    end loop;
      7  end;
      8  /
    
    Procedure created.
    
    SQL> set serveroutput on
    SQL>
    SQL> exec test_proc_type(char_type('A','B','C','D','E'))
    A
    B
    C
    D
    E
    
    PL/SQL procedure successfully completed.
    
    SQL>
    
  • How to call the java function with javascript setting in mobile adf?

    How to call the java function with javascript setting in mobile adf?

    The ADF Mobile utility container API can be used from JavaScript or Java.

    Application container API - 11 g Release 2 (11.1.2.4.0)

  • How to call the stored procedure when I press the button

    Hello

    I want to know how to call the procedure/SQL statement when I press the button using callable statement.

    can someone give me it please link who knows the steps to do this.

    Thanks in advance,
    SAN

    Hello

    read this good example http://www.baigzeeshan.com/2010/05/calling-plsql-procedure-and-function-in.html

    ~ Abhijit

  • How to call the variables of the scene inside movieClips

    How to call the variables of the scene inside movieClips

    One way would be to use "MovieClip (root)" to target variables in the main timeline... MovieClip (root) .someVariable = someValue;

  • How to call the function (function Build-in user) in Pro * C program

    We have developed the application Pro * C program.
    TimesTen version is "TimesTen release 11.2.1.5.0 (64-bit, Linux/x86_64) (tt112150:53308) 2010-03 - 04 T 20: 39:30Z.

    We would like to develop Pro * C program you are using PL/SQL.

    We have a few questions.
    How to call the function (function Build-in user) in Pro * C program?

    #########
    TEST
    #########

    ttisql:
    Command > create or replace FUNCTION F_SAMPLE (i_str IN VARCHAR2)
    > BACK NUMBER
    > o_number NUMBER;
    > START
    > select i_str
    > in o_number
    > double;
    >
    > O_number RETURN;
    >
    > EXCEPTION
    > Others THEN
    > RETURN 0;
    > END;
    > /.
    display errors
    The function is created.
    Order > show errors
    No errors.
    Command >
    Command > set serveroutput on;
    Command > declare
    > number of num1;
    > start
    > num1: = F_SAMPLE ('A');
    > DBMS_OUTPUT. PUT_LINE ("F_SAMPLE" |) ' ' || NUM1);
    > end;
    > /.
    F_SAMPLE 0

    PL/SQL procedure successfully completed.

    Command >


    Pro * C case:

    EXEC SQL BEGIN DECLARE SECTION;
    number of num1;
    EXEC SQL END DECLARE SECTION;

    EXEC SQL EXECUTE
    Start
    : num1: = F_SAMPLE ('A');
    end;
    END-EXEC;

    Make sure to install:
    Error on line 146, column 3, file plsqlPROC.pc:
    Error on line 146, column 3 in file plsqlPROC.pc
    number of num1;
    .. 1
    PCC-S-02201, encountered the symbol "num1" when expecting one of the following conditions:


    Thank you.

    GooGyum

    There are two problems with your variable declaration:

    1. the name of the variable and type are thew misplacement autour.

    2. you may not use a host variable type.

    If you change this to:

    EXEC SQL BEGIN DECLARE SECTION;
    int num1;
    EXEC SQL END DECLARE SECTION;

    Then it will work very well.

    Chris

Maybe you are looking for

  • Report health Firefox page open, but no data. The race for weeks. Why nothing?

    I loaded the page of the State of health. All the headings of the various subjects are there. But no data. I've been running firefox for years and this 22.00 for weeks or months. So why no data showing? Thank you.

  • Windows 8.1 key wanted

    Hello! I bought the HP Envy bow 27-k040ea, but I do not see the Microsoft Windows license key on the back side. There are stickers of HP and MS Windows 8.1 logotype. Where can I find my license key? Thank you!

  • no router encuentra mi conecxion con el

    Tengo a portatil y no me muestra red hace mi diameter... me toca conectarlo dire3ctamente con el router... that puedo hacer? ya lo reset...

  • floating voltage DAQPad-6015

    Hey. I did some basic tests on my DAQPad-6015 and whatever the pins I connected to, it always floats up to its max voltage, 10V.  I'm testing it able and automation, differential, on demand.  Any suggestions as to what is happening? Katie

  • 2121TU HP 2000 - RAM upgrade

    I am currently runinng on stock card and do not want to upgrade a lot on that laptop it is mainly for the office. This laptop comes with a 2 GB memory DDR3 (1600 MHZ according to the manufacturer's Web site) and is painfully slow with about 3 to 4 de