SoftKeyboard resize on status change

Hello everyone. I did my TextArea resize on SoftKeyboardActivate like this:

public function resizeTextField(e:SoftKeyboardEvent):void{
                mainTextField.setActualSize(mainTextField.width, 215);
}

My application has 2 States, a landscape and a portrait status. The code above resizes the TextArea is just above the keyboard in landscape however it is in portrait mode is by far of course. I wanted to add an if statement to check the State in which it is active and then resize accordingly but could not know how to do this. Would contribute to a kick in the right direction. Thank you.

Also when the text box is resized and position the cursor before some text and amirouche pressing enter the text go off the screen. How can I solve this problem of scrolling?

Hi rmasroor. Thanks for your reply. Since I posted that I got it to work, and here's how for someone who is interested. In my viewActivateHandler, I added my listeners:

this.addEventListener (SoftKeyboardEvent.SOFT_KEYBOARD_ACTIVATE, resize); this.addEventListener (SoftKeyboardEvent.SOFT_KEYBOARD_DEACTIVATE, resize2);

then my resize functions are

public function resize(e:SoftKeyboardEvent):void{
                if(currentState == "landscape"){
                mainTextField.setActualSize(mainTextField.width, 215);
                }else{
                mainTextField.setActualSize(mainTextField.width, 450);
                scroller.y = 460;
                }
            }

            public function resize2(e:SoftKeyboardEvent):void{
                if(currentState == "landscape"){

                }else{
                    mainTextField.setActualSize(mainTextField.width, 779);
                    scroller.y = 769;
                }
            }

Tags: BlackBerry Developers

Similar Questions

  • Flex - the difficulty to detect status change since the 2.0 update

    Hello everyone. I've been detecting orientation changes in my application without problem throughout until the 2.0 update, now, the events are not firing. Any ideas why the changr in orientation is not detected? I am less concerned by resizing.

    this.addEventListener(SoftKeyboardEvent.SOFT_KEYBOARD_ACTIVATING, resize);             this.stage.addEventListener(StageOrientationEvent.ORIENTATION_CHANGE, change);
    
    ...
    public function resize(e:SoftKeyboardEvent):void{
                    trace("activating"); // does not trace
                    if(currentState == "landscape"){
                        mainTextField.setActualSize(1024, 350);
                        tagwrapper.visible=true;
                    }
                    if(currentState == "portrait"){
                        mainTextField.needsSoftKeyboard = false;
                        accordV.visible=false;
                        tagwrapper.visible=false;
                    }
                }
    
    protected function change(event:StageOrientationEvent):void {
                    if(navigator.stage.orientation == "portrait"){
                        trace("portrait"); // does not get traced
                        mainTextField.needsSoftKeyboard = false;
                        IMFConnection.imfConnection.hideInput();
                        mainTextField.setActualSize(mainTextField.width, 1024);
                        tagwrapper.visible=false; //remains visible
                        accordV.visible=false; //remains visible
                    }else{
                        IMFConnection.imfConnection.showInput();
                    }
                }
    

    I also had a feature that has been resizing components on SofftKeyboard.Activate so I think that blocking the call to the StageOrientationEvent. In any case I did take all the stuff I need to do too much in the StageOrientationEvent and he settled in the SoftKeyboardEvent function.

    public function resize(e:SoftKeyboardEvent):void{
                    trace("activating");
                    if(currentState == "landscape"){
                        mainTextField.setActualSize(1024, 350);
                        accordV.visible=true;
                        tagwrapper.visible=true;
                        togglewrapper.visible=true;
                    }
                    if(currentState == "portrait"){
                        IMFConnection.imfConnection.hideInput();
                        mainTextField.needsSoftKeyboard = false;
                        accordV.visible=false;
                        tagwrapper.visible=false;
                        togglewrapper.visible=false;
                    }
                }
    
  • vCenter 5.1 Health Status Changed alarm

    I have a vCenter server that occationally get an alarm status health (pass from green to red) changed, but I can't understand what it refers.  I've looked through the vms, hosts and plugins and can't find any other alarm that could have triggered it could cause.

    Nobody knows what he is referring?

    Thank you

    Matt

    Go-> vCenter Home-> Select health of vCenter status and see if there is anything in red or yellow

  • Graphic resizing function has changed, now crops the image, why?

    I must, without knowing it, changed some settings. So far whenever I bring you in graphic, such as a png or jpg, I can resize using the selection tool (arrow) and in a corner of the image I click, hold down the shift/command (Mac) and then shrink or enlarge the size proportionally. What has changed, it is now, the image does not like that, but rather the same manoeuvre crops the image in the direction where, as in using a mask function, the image doesn't change size but the border of it changes and part of the left image not visible. I guess that there is a setting that I don't know who is doing this, but so far have not been able to understand. Anyone know?

    Any responses appreciated as very frustrating.

    Thank you

    -Richard

    Selection of content will resize itself the image but not the frame.

  • Form status changed

    Hi all

    I use forms 6i and I am facing a problem: when running a query on a data block cahnges status of the form to "CHANGED", my code as follows:

    GO_BLOCK ('Update_Procedures');
    SET_BLOCK_PROPERTY ('Update_Procedures', Default_Where, 'VisID =' |) '''' || : uVisitID | '''' );
    EXECUTE_QUERY;

    When I comment on (-EXECUTE_QUERY ;)) EXECUTE_QUERY statement and then execute triggr, State of the form "REQUEST". This means that the problem lies in the declaration of EXECUTE_QUERY.

    I don't have this block changes before you run the query.
    I did a lot of similar applications on other blocks of data in the same leave with not such a problem... I tried a lot of stuff, but nothing helped, so I need your help


    Thanks in advance...



    Kind regards

    Damien

    Al-Robert Lellah...

    PLs Note sometimes unnecessary code in this trigger u think it's useless, but it is used in such a way that the action of the original conflicted you trying to

    Force removal if pls where any needless triggers focus on more functional triggers for your forms...

    God Bless u always...

    Kind regards

    Abdetu...

  • Send emails as the SR status changes

    Hey all,.

    I was wondering if someone can help me with a problem with Siebel. Is there a method in which, for example, if the service request is changed by open to non affected QA then an email is sent to a specific employee and if the status is changed again not affected QA for Siebel Assigned-QA sends an email to another employee? Is it possible to create a new workflow? Action? or a Condition?

    Kind regards

    Published by: Hamzeh Al-Karmi, Sep 19, 2010 04:55

    You can find an example here: http://siebelguide.com/siebelblogs/2008/10/16/invoke-workflow-using-runtime-event-in-siebel/

    The other option is to work with the political workflow and Actions.

  • App Store - Apps not updated or their status changes do not

    I have an iPad2 and icon from App store says I have 7 updates.  I'm going to the updates, but the title waiting for updates each app has just OPENED, no UPDATE.  I think that I've updated these applications before, but the situation does not seem to go away.  How can I fix this annoying problem.

    First close all applications on the iPad. Press the Home button twice quickly. You will see small glimpses of your applications recently used. Drag to the left to find the application you want to close. Swipe up on the preview of the application to close. Close all applications in this way.

    Then, the strength to restart the device. No data is affected when you do this. To force the reboot your device, press and hold the two buttons of sleep/wake and home for at least ten seconds, until you see the Apple logo.

    See if the app update notifications have changed.

  • resizing of step changes the width of the Ellipse

    resized shape.PNGresized shape2.PNG

    When I adjust the stage size ellipses distort apparently in scale. But the size of the forms values remain the same.

    Why is this happening?

    Is there a way to change the width of the stage without affecting the size of the ellipses?

    Thanks in advance for your help.

    How do you change the size of the stage?

    And are the dimensions of the stage as well as the items on it are specified in % instead of px?

    HTH,

    Vivekuma

  • Cascade a status changed by a child block

    I have a rather tricky to implement, requirement and I'm having problems with it and I hope that someone can have a bright idea, I didn't think of that.

    We inspect homes to specified plans. These plans can be a standard diet or a special needs. All new properties start with a standard plan. Each if standard or special regime consists of several steps.

    The form is a master / detail with the regime as the master and the stages within the regime as the child table.

    What I want to do, is if the documents of the child (the stadiums) are changed (can be updated to an existing Stadium, capture of the steps or additions of new) to force the creation of a new special regime as a copy of the standard, including the same steps except if they have been modified.

    master and detail are based on views and archive on-update trigger allows do me an insertion rather than update when this is necessary, but the problem is that only added to the new regime actually modified child records.

    For example
    A standard plan consists of steps 1, 2 and 3.
    The user makes a change to step 1.
    When validate point on the flags of the stage 1 master record as one of the special standard
    sur-mise up-to-date on the master sees the update and insert a special regime
    sur-mise up-to-date on stage 1 sees the change to the master and inserted as a child of the new master
    steps 2 and 3 are however unchanged and therefore do not trigger the sur-mise updated and therefore are not added to the special regime.

    Things has tried so far
    implement the master go_block the child, last_record and loop through the definition of the modified indicator - ins with restricted problem built this and too bulky
    force a State changed on chaild records in the post request and untangle if a real change in the sur-mise to day - work, but if you leave without changed data, you get the message "do you want to save your changes" which is difficult to remove

    Is there a better way to change cascading to the master of all the child records?

    The problem is that the detail in the form records will not be the same as the default original plan

    I got it.

    My thoughts in detail:

    Regime has a logic UK, let say plan ID
    Steps a logic UK, let say system IDS and Stadium. set

    Data at the start

    Master Regime ID 1
    Details Stage No 1
            Stage No 2
            Stage No 3
    

    Now, you delete only stage no 2 and add no step No 4

    1. this task updated master, calla procedure that will totally copy the system including all the steps in the comic book,
    This will create the following data in the db

    Master Regime ID 2
    Details Stage No 1
            Stage No 2
            Stage No 3
    

    Accordingly, in the ONE-DAY plan-id goes from 1 to 2
    2 spot, DML operations on the details produced
    for the first and the third folder, nothing is done, the data is already correct through the 'copy routine' on the masters WE-UPDATE
    3. the task of the DML for no 2nd look

    DELETE STAGES
     WHERE REGIME_ID=:MASTER.REGIME_ID
        AND STAGE_NO=2
    

    Now resemble data in db

    Master Regime ID 2
    Details Stage No 1
            Stage No 3
    

    4. the task of the DML for no step 4

    INSERT INTO STAGES (
      REGIME_ID,
      STAGE_NO
    )  VALUES (
      :MASTER.REGIME_ID
      4
    );
    

    Now resemble data in db

    Master Regime ID 2
    Details Stage No 1
            Stage No 3
            Stage No 4
    

    Do?

  • How to change step.result.status

    Hello

    I know just how I can configure the result step to something else state that "passed" or "failed". I know that I've done it before, but now I can't get this to work.

    Simple sequence attached file to demonstrate what I'm trying. Report as text in my machine looks like this:

    Start the sequence: MainSequence
    (Text of C:\Temp\status change test.seq)

    Pass/fail test: skipped
    Pass/fail test: failed
    TEST
    Test digital limit: failure
    Measurement: 0
    Limits:
    Low:                   9
    High: 11
    Comparison type: FROZEN (> =)<>

    Complete the sequence: MainSequence

    No reference to what we are missing?

    BR

    Petri

    Petri,

    http://zone.NI.com/reference/en-XX/help/370052K-01/tsfundamentals/infotopics/step_execution/ contains a list of action a step performs when it is executed.

    As you can see, State Expression is evaluated after the Expression. Therefore, you can not use after Expression to set the Step.Result.Status property.

    The following two options, you can try to change the status of the step:

    Option 1:

    Create the custom step type and modify state Expression.

    Option 2:

    You can use the reminder of step motor after updating the result of step

    Option 3:

    Stage results will be added to the Locals.ResultList table. Therefore, after a stage performance, you can change the result container in the table if necessary.

    -Shashidhar

  • "Error Out.status": Value change event.

    I get no event that fires when the error on the 'status' change?

    Change event simply write data to a terminal indicator do not have a value.

    The only things that cause a value change event are the user interaction with a control, or by writing to the (signalling) Value property of a control or the indicator.

  • Memory resize with change 0-, it slows the calculation?

    I'm adding two arrays with elements 1e6; the addition of loop 1000 times. When I use the review buffer allocation tool, it shows a buffer allocation to one of the entries on the node to add. When I trace the performance, he reported 1000 memory resize with 0 change. Adding takes what, in my opinion, is very long: 6 ms on i5 clocked at 2.1 GHz. is it related to the operation of resizing of memory or is - the normal duration of treatment? If it is caused by resizing of memory, how can I avoid it?


  • Sound signal when the user changes the status?

    Hello everyone!

    I'm quite new to Acrobat Connect Pro in the role of a trainer. It ist one feature miss me: an acoustic signal or notification when a user changes his status.

    For example, Users must satisfy a task that takes several hours. Coach, I'm online all the time to help as needed. But I need to watch my screen all the time for notice if someone has a question. I would like, there will be some sort of sound signal. Is there something like this? If this is not the case, this could be a feature request.

    Greetings

    Marcel

    To use the doorbell pod to connect, simply download the SWF to a sharing module in your room (even by uploading a JPG or PPT). Should that pressure manual button when someone 'status' changed, but that may be the method of the student to notify you that they are made to their task.

    If you feel that you need the exact feature you described above, you can check to build your own custom pod (should you be savvy with AS3) using the Collaboration Builder SDK found here, Adobe Acrobat Connect Pro | Adobe Developer Connection, or you could reach to one of the groups which proposes the establishment of custom pods. ActiveC is one of these companies, custom - development ActiveC.biz.

    Connect is unique in offering the possibility of creating your own functionality should the default options does not meet your needs.

  • Shipping type in the change of order status e-mail

    Hello

    Is there a tag that will make the shipping Type in the generated order status change e-mail? For example, FedEx or USPS that will allow only the rendered AWB (as well as the instructions to the user), rather than tracking URL full.

    I'm trying to establish is that {tag_shippingdescription} , but it does not seem to make in my test emails.

    Thank you.

    This problem was solved by creating order different state changes depending on the type of shipping company. The e-mail could then be generated with a link tracking and instructions appropriate to the type of shipment of the order.

  • Change the status of redolog

    Dear all

    I have this output

    GROUP # STATUS TYPE MEMBER IS_RECOVERY_DEST_FILE

    1 E:\orcl_FILES\orcl\REDO21 online. JOURNAL NO.
    1 E:\orcl_FILES\orcl\REDO11 online. JOURNAL NO.
    1 E:\orcl_FILES\orcl\REDO31 online. JOURNAL NO.
    2 F:\orcl_FILES\orcl\REDO12 online. JOURNAL NO.
    2 F:\orcl_FILES\orcl\REDO22 online. JOURNAL NO.
    2 F:\orcl_FILES\orcl\REDO32 online. JOURNAL NO.
    3 Q:\orcl_FILES\orcl\REDO23 online. JOURNAL NO.
    3 Q:\orcl_FILES\orcl\REDO13 online. JOURNAL NO.
    3 Q:\orcl_FILES\orcl\REDO33 online. JOURNAL NO.


    GROUP # STATUS OF ARCHIVED MEMBERS

    1 3 UNUSED YES
    2 3 CURRENT NO.
    3 3 UNUSED YES


    When do the select two
    SELECT GROUP #, MEMBER, STATUS, ARCHIVED FROM V$ LOG;


    Select * from v$ logfile;

    Why the State values is null in the first select statement.

    in the second, select how can I update the status of Group 1 of redo log to the current value, and I need to stop the database status update.

    Thanks in advance

    You have not listed outputs and queries in the same order.

    The first release listed is for the second query listed? Is this fair?

    V$ LOGFILE lists the files - that is to say the members of each group of Redo Log. A NULL state means that it is good! (Other statuses are "INVALIDS", "FADE", "DELETED", which are not so good).

    V$ LOG lists of Redo Log groups. "UNUSED" status means that it is a new group and LGWR (newspaper writer) has not yet started writing to her. This is the status becomes 'CURRENT' startup LGWR writes for her. (Once LGWR ends in writing for her, the status changes to 'ACTIVE' until the log switch checkpoint is completed and the archiver has completed all a member of the Group of Redo Log archiving).

    You have not ' do anythiing ' to change the status of the Redo Log groups. State changes when LGWR writing begins and ends in writing. You can, if you wish, make see command 'ALTER SYSTEM SWITCH LOGFILE' change in status that LGWR switches from one file to another group from one to the other.

    A group of Redo Log can consist of 1 or more members. 2 members would mean that they are 'mirrors' of each other - for redundancy (in case of failure of one when he became "INVALID").

    Please read the manual of Concepts and Reference Manual documentation.
    Go to http://tahiti.oracle.com or on the tab "documentation" to http://otn.oracle.com for documentation.

    Hemant K Collette

    Published by: Hemant K grapple on January 12, 2011 22:39

Maybe you are looking for