Change Layout

Hi all

I had the following code for the page layout.

protected void sublayout(int width,int height)
{
   layoutChild(labelname, getPreferredWidth(), getPreferredHeight());
   setPositionChild(labelname,SizeSpec.setX20, SizeSpec.setY20);
   super.setExtent(width,height);
}

If I want to change the position,

How can I change the setpositionchild during execution.

Any help would be appreciated.

Thank you

Stephenson

change the x and the values y and call updateLayout

Tags: BlackBerry Developers

Similar Questions

  • Change layout of content as an attachment

    I use apex_mail (in top 4.1) to send emails with an attachment.

    v_mail_id: = apex_mail.send)

             p_to  => ' [email protected] '

    ... etc...

    );

    apex_mail.add_attachment (p_mail_id = > v_mail_id)

    , p_attachment = > v_image

    , p_filename = > 'signature.jpg '.

    p_mime_type = > ' image/jpeg');

    Apex it creates as an attachment:

    Content-Disposition: attachment;

    I would like to change to the line:

    Content-Disposition: inline;

    so I can reference it in my body of the email with < img src = "cid:signature.jpg" / >. Well... I hope it's in any case shown inline if I change layout of content.

    Currently (with Content-Disposition: attachment ;) it works with Outlook, but, for example, not in Gmail in the browser.) Gmail displays the image separately as an attachment.

    Is there a way to change the layout of content with Apex?

    I know it is possible to do with utl_mail, but this is not currently installed in our databases. I need to involve our DBA to set this up, and I don't know if he's ready to do.

    Hi InoL,

    I'm sorry to say, but there is no way for you to control the Content-Disposition of an attachment added through APEX_MAIL. ADD_ATTACHMENT.  The infrastructure is there in the API to support it, maybe in a future update or release APEX, but I realize that doesn't help you today.

    I'm sorry.

    Joel

  • Problem of change layout and creation of a toolbar

    Hello


    I am a beginner, and I have 2 problems:

    (1) I have created a form to manage a db table. I chose a model, and everything is ok. My problem is to create a layout with a color of a particular field, a particular background color, a height of the line, a given height of the field, without borders, etc. Possible to do quite simply the apex, without CSS etc?


    (2) how to replace the button of the area with a toolbar containing all my custom buttons?

    TEMAMIV wrote:

    (1) I put this string in each attribute of the field element:

    style = "border-left: none;" border-right: none; border-top: none; border-bottom: none; background-color: blue; Padding: none; text-transform: uppercase; margin: none;  height: 12px; "border-collapse: collapse".

    but I have no idea how do I change the height of each row in my grid. I always have spaces around my fields.

    That means that you had a lot of wasted effort and still not met all the requirements. As above: "it's much simpler, more efficient and easy to manage to do it using a separate stylesheet. If you had used the time taken to make these changes to reproduce the problem in an example on apex.oracle.com and create a clear description of the requirements when you posted the question then you would have got a complete solution in a few hours or less.

    You cannot change the row height by using inline styles in the report attributes. This requires a built-in or external style sheet. These style properties also look like they will result in form controls that are largely unrecognisable and unreadable. You please explain in detail, exactly what you're trying to do and why you need to do.

  • How to change layout from right to left?

    I recently had a project to do an English version of a Japanese Magazine. I already got a paper copy as well as all the files of the video image. The thing is, Japanese layout from the right and even begin to right page numbers. I checked the forums and all resources possible, but could not find a way to change to the (left hand normal English presentation) layout.


    And another thing, I noticed that if I open the indesign file Japanese first and then open a new document, new document is also right - hand document layout. for example, I received a Japanese document of page number 4-14 (5 out of 6 on the right as well to suite, 7 left and right, 4 left), and if I open a new document, it is also numbered as one Japanese. But if I close the Japanese document and open a new document in the first place, it is regarded as normal (4 of 5 from left to right, 6 out of 7 left to right so now) so I guess that's something be done on preferences.


    Any suggestions?

    BTW, I use Indesign on Mac OS X 10.7.4 CS6

    Yes. It allows the switch binding direction (like the non pro version).

    However, if all that you need to get the link of the page, you can do it with a simple script.

    This script to a single line will pass the page link in your current document:

    app.documents[0].documentPreferences.pageBinding = app.documents[0].documentPreferences.pageBinding == PageBindingOptions.LEFT_TO_RIGHT ? PageBindingOptions.RIGHT_TO_LEFT : PageBindingOptions.LEFT_TO_RIGHT;
    

    Substances

    en - Tools.com

  • Change layout (make-up) of web application

    Hello! It is. Can I completely change makeup Oracle BIEE Home page? For example to integrate twitter bootstrap. As the creation of models in CMS (Wordpress, Drupal). Like this: Oracle BI Bootstrap

    I can let you know a little

    You must register \FMW\Oracle_BI1\bifoundation\web\msgdb\pages

    Once you have done this, appreciate if you share your notes.

    Thank you

    ~ http://cool-bi.com

  • When I update to Firefox, it changes all my fonts. How can I stop if so?

    I have windows 7. I'm stuck on 21.0 Firefox. Each update since then has changed my fonts to the point that I can't get back them. Even when I go and re - change fonts for what they should be, it is not correct. I need to restore my system to 21.0 to recover the correct fonts. I have several programs that I need the fonts to use them properly.

    I had the same problem. Thanks for the info above on how to solve this problem. To summarize how to fix:

    • Open a new window in FireFox.
    • Put this in the address bar: subject: config
    • You will see a list of parameters.
    • Search for: layout.css.devPixelsPerPx
    • Just right click and edit, and then enter a value like 1.0
    • Open a new window of FF and surf any web page.
    • If the width looks ok, you are finished with layout.css.devPixelsPerPx.
    • If the width is not ok, change layout.css.devPixelsPerPx to a slightly different number. On my system, I used 1.03.
    • After that, you can change your font size settings.
    • To do this, tap the tools, Options menu, content.

    The cause of the problem is newer versions of FF had the new thing called layout.css.devPixelsPerPx and its value has not been correctly initialized. The problem occurs to anyone who will update to the new version. It is a bug and should be fixed in the software.

  • Change stacklayout to gridlayout in the listview

    How can I change to battery/grid listview layout? Or how a list replacing with lines from the list of tiles? Can anyone help? Thank you!

    Thanks for the inspiration!

    I did this way:

    Page {
        ListView {
            id: listView
            layout: (mainPage.listviewLayout == "stack") ? stackListLayout : gridListLayout
        }
        attachedObjects: [
                GridListLayout {
                    id: gridListLayout
                    headerMode: ListHeaderMode.None
                },
                StackListLayout {
                    id: stackListLayout
                    headerMode: ListHeaderMode.None
                }
            ]
        actions: [
                ActionItem {
                    title: "Change layout"
                    onTriggered: {
                        if (mainPage.listviewLayout == "stack") {
                            mainPage.listviewLayout = "grid";
                            listView.layout = gridListLayout;
                        } else {
                            mainPage.listviewLayout = "stack";
                            listView.layout = stackListLayout;
                        }
    
                    }
                }
            ]
        property string listviewLayout: "stack"
    }
    
  • How can I change covers available in a portfolio in Acrobat Pro ms

    I use Acrobat DC Pro trial version and can't change layout covers when I create a portfolio.

    Hello

    For more information, see the following forum thread.

    DC Pro portfolio page layouts?

    Concerning

    Sukrit diallo

  • landscape layout

    Hello everyone!

    We are trying to change the layout, but we after warning.

    REP 0801: Layout canvas must be large enough to hold all the objects in layout.


    http://4.BP.blogspot.com/_KYY-OV98iIo/TDcpTfnFiqI/AAAAAAAAAII/SCHDwsYeqwM/S1600/LandScape0.bmp

    If you have experience, please share with us.

    Thanks in advance,

    NY

    We agree with ManQat.
    We want to share our experience here.
    When we inserted the page number, we have the same question.
    We deleted and changed layout in landscape.
    After the layout has changed, we have inserted the page number.

    Mark accordingly appropriate or useful.

  • Is it possible to disable the "edit layout" link on the Details page for the record

    Is it possible to disable the "edit layout" link on the Details page for the record? Not home pages, I know there is a switch for that, but I thought that it was one for the detail pages?

    I want to disable what I don't want users who record their own layouts, they stick to the related sections defined in the default layout. The problem is that if they want to have access to some lists associated with when the opportunity is of a certain type, but NOT other types. If they saved the page layout (using the "Change layout" link) and change the record type, they will see the related provisions that were set to "Not available" in the default layout (IE step 4) for this 'type '.

    Robbo, for now it is not possible to disable the page layout to change the Registration Details page.

  • OfficeJet Pro 8600 loses the wireless connection

    I have a 8600 OfficeJet Pro (n911a), which has lost its connection with the PC. The computer is running Windows 7 (64) and work very well for several months. Recently, when you try to print, the following message is displayed. I did several searches on the web and found that this has been a problem in class, but no clear solution. The only thing I tried was changing layout alarm ink 'always' to 'then of printing"that someone has suggested, but that did not help. Other bids I found indictate that this problem occurs when the printer is idle for a few hours, but restart it restores. This isn't the case here. The following error message:

    Any advice/suggestions/etc are welcome. Thank you in advance.

    Well, the problem was solved by uninstalling the software, and then reinstall the latest version of HP.

    The only reason why that I did not it was in the first place because many comments I've seen on this issue before said they had already tried that and it didn't work. So, I didn't see no reason to waste my time trying something that might take a lot of time with little chance of success. However, the printer in question was still under warranty, so I was able to communicate directly with HP and it's what they me ultimately do. I was online with them for nearly 90 minutes to try other things first, but this is what worked in the end.

    If you decide to try it yourself, I would say that you do not forget to completely uninstall the current version first. The tech. I chatted with told me that it would be unnecessary, but do not do so caused several other problems. I finally had to do a system restore, and then try again until it would work.

    So far so good.

  • HP Officejet 4620 e-all-in-one stop wireless print whenever it is turned off

    My HP 4620 stop wireless print whenever it is turned off, although it is connected to the network (by the results of the test network wireless, pass & the quality of the signal is excellent).  No troubleshooting - HP Print & Scan Doctor work there is no help, I have to uninstall & reinstall the printer each time to be able to print wireless again.

    I use it on/on button to turn the printer off, don't disconnect not.

    Please help, or I need to return to the store, this is the third time!

    I also had the same issue and after a few game it seemed to have fixed so here's what I did... Hope this helps someone else.

    -My printer is connected to my wireless network.

    -On my computer that I'm connected to the printer through the IP address 192.168.1.153... (Yours may vary) in a browser

    * You can find the ip address printers on the control panel of the printers by pushing the wireless button and pushing the ok option 1, it should appear with the intensity of the signal and the ip address is at the bottom.

    -Once I was on the Printers page in my browser, I went to the tab network at the top.

    -Then to Internet Printing Protocol section (on the left in the advanced settings)

    -On my own PPI was already on, but the location was empty I put a '1' in the location box and then applied settings.

    -C' is the only thing that I changed and now my printer is asleep as always, but when I print something from my iphone, mac or pc it wakes up and prints as it is supposed to!

    BTW before I went to the printer via the browser. I changed layout sleep in 15 minutes via the Control Panel on the printer itself, don't know if it helped the issue or not because I still had the problem of sleep after I set the timer to 15 minutes instead of 5 min. But I solved my problem after performing the steps above!

    Also note that on the one hand some ppl on here say it's a network problem or a router! This is NOT the case I never even tried these roads and I solved my problem only by changing the setting of the printer! I have not set a static ip address or something like that!  The above steps is things ONLY I touched and my problem is SOLVED!

    Router: NETGEAR AT & T 7550 wireless router/dsl Modem

    -Security: WPA2-PSK (AES)

    -Printer connected to the router via WPS (push button configuration)

    Printer: HP Officejet 4620e all-in-one

    Computer: Apple iMac OS X Version (connected to the network via wifi) 10.7.5

    Dell running Windows 7 server (connected to the network via wifi)

    Apple iPhone 4S (connected to the network via wifi)

  • Replacement of keyboard W530?

    Hello!

    I'm a thinkpad user first. I received my W530 yesterday, and I'm very happy with it. There's a thing with the keyboard I took the wrong layout. Unfortunately I don't have enough money to buy a new keyboard backlit with the provision of the United States (mine is now NL, Dutch). Is it possible that I can get the keyboard replaced or refer to lenovo for a replacement keyboard? It is a real disappointment and a stupid mistake. Seize this moment is horrible. I searched in all areas and has seen a few posts on call services from IBM and others.

    Any tips? Thank you!

    (Sorry for posting this in the wrong Board, as appropriate)

    EDIT: If it's important, I can replace the keyboard myself if necessary.

    AFAIK, the service does not replace keyboard according to the language preferences. that is changing layout from one language to the other.

    You would have to the source of the keyboard also.

  • LabelField, 4.6 vs.5.0, is this a bug?

    Ok

    Here are simple custom LabelField:

    public class BitmapButtonField extends LabelField {
    
        private Bitmap BmOnFocus;
        private Bitmap BmOffFocus;
    
        public BitmapButtonField(long _style,                              Bitmap _onFocus,                              Bitmap _offFocus) {
            super("", _style);
            BmOnFocus = _onFocus;
            BmOffFocus = _offFocus;
        }
    
        public int getPreferredHeight() {
            return BmOnFocus.getHeight();
        }
        public int getPreferredWidth() {
            return BmOnFocus.getWidth();
        }
        protected void layout(int width, int height) {
            int h = getPreferredHeight();
            int w = getPreferredWidth();
            super.layout(w, h);
            setExtent(w, h);
        }
    ....
    };
    

    The 'problem' with this code is that it works OK when compiled and run under OS 5.0

    and gives error when compiled and running on 4.6.

    The error is that BmOnFocus has the value null when getPreferredWidth() is called!

    The use of this field as usual

    BitmapButtonField bfGame = new BitmapButtonField(Field.FOCUSABLE, imgGame, imgGameNS);
    add(bfGame);
    

    Looks like the 'bad' superdeal ("", _style ") name () of layoutand of course by this time bitmaps are not yet defined.

    But why it works on 5.0?

    Ok

    workaround was quite simple - I commented getPreferredWidth () /Height () methods

    and changed layout() for:

        protected void layout(int width, int height) {
            int h = BmOnFocus.getHeight();
            int w = BmOnFocus.getWidth();
            super.layout(w, h);
            setExtent(w, h);
        }
    

    In my case it was OK.

  • NavigationPane not burst

    I'm trying to rewright of my JavaScript application to C + c++ / QML.  I'm new to QML, but I thought it wise to write the UI in a QML and then the logic and the C++ user interface controls.  The problem I see is when I call the function pop() of C++, the screen never appears.  Someone at - it ideas?

    Main.cpp

    #include "wpapp.hpp"
    
    // include JS Debugger / CS Profiler enabler
    // this feature is enabled by default in the debug build only
    #include 
    
    using ::bb::cascades::Application;
    
    Q_DECL_EXPORT int main(int argc, char **argv)
    {
        // this is where the server is started etc
        Application app(argc, argv);
    
        WPApp *wpApp = new WPApp (&app);
    
        // we complete the transaction started in the app constructor and start the client event loop here
        return Application::exec();
        // when loop is exited the Application deletes the scene which deletes all its children (per qt rules for children)
    }
    

    wpapp. HPP

    // Application with UI adaptability support template
    #ifndef WPApp_HPP_
    #define WPApp_HPP_
    
    #include 
    #include 
    #include 
    #include 
    #include 
    #include "library/StatData.h"
    
    using std::vector;
    using std::string;
    using namespace bb::cascades;
    
    namespace bb {
        namespace cascades {
            class Application;
        }
    }
    
    /*!
     * @brief Application pane object
     *
     *Use this object to create and init app UI, to create context objects, to register the new meta types etc.
     */
    class WPApp : public QObject
    {
    
        Q_OBJECT
    public:
    
        WPApp(Application *);
    
        virtual ~WPApp();
    
        Q_INVOKABLE void addStats(QString);
        Q_INVOKABLE void showAddScreen();
    
        void addRemoveStat(string identifiers, bool add);
    
    private:
        vector mActiveStats;
        Page *mRootPane;
        NavigationPane *mNavPane;
        Application *mApp;
    };
    
    #endif /* WPApp_HPP_ */
    

    wpapp.cpp

    // Application with UI adaptability support template
    #include "wpapp.hpp"
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    
    #include "Utilities.h"
    #include "connector/WConnector.h"
    #include "library/StatData.h"
    
    using std::string;
    using std::vector;
    using namespace bb::cascades;
    using namespace bb::system;
    
    WPApp::WPApp(Application *app) :
            QObject(app)
        {
        QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);
        qml->setContextProperty("app", this);
        //qml->setContextProperty("second", m_pane);
        if (!qml->hasErrors()) {
    
            mRootPane = qml->createRootObject();
    
            mNavPane = new NavigationPane();
    
            // set created root object as a scene
            //mNavPane->push(mRootPane);
            //Application::instance()->setScene(mNavPane);
            mApp = app;
            mApp->setScene(mRootPane);
        }
    }
    
    WPApp::~WPApp() {
    
    }
    
    void WPApp::addStations(QString text) {
        SystemToast *st = new SystemToast(Application::instance());
    
        string sIdentifiers = text.toStdString();
        NavigationPane *mNavPane = mNavPane->findChild("navigationPane");
        int ct = mNavPane->count();
        mNavPane->pop();
        st->setBody(text);
        st->setPosition(SystemUiPosition::MiddleCenter);
        st->show();
        addRemoveStat(sIdentifiers, true);
    
    }
    
    void WPApp::showAddStat() {
        QmlDocument *qml = QmlDocument::create("asset:///AddScreen.qml").parent(
                this);
        qml->setContextProperty("app", this);
        Page *page = qml->createRootObject();
        mNavPane->push(page);
    }
    
    void WPApp::addRemoveStat(string sIdentifiers, bool bAdd) {
    
    }
    

    Main.QML

    // Application with UI adaptability support template
    import bb.cascades 1.0
    import bb.system 1.0
    
    NavigationPane {
        backButtonsVisible: true
        id: navigationPane
        objectName: navPane
    
    // create application UI page
    Page {
        actions: [
            ActionItem {
                title: "Add"
                onTriggered: {
                    //navigationPane.push(newPage);
                    app.showAddScreen();
                }
                ActionBar.placement: ActionBarPlacement.OnBar
                imageSource: "images/ic_add.png"
            },
            ActionItem {
                title: "Refresh"
                onTriggered: app.initiateRequest()
                ActionBar.placement: ActionBarPlacement.OnBar
                imageSource: "images/ic_rotate.png"
            },
            ActionItem {
                title: "Remove All"
                onTriggered: app.initiateRequest()
                imageSource: "images/ic_delete.png"
            },
            ActionItem {
                title: "Settings"
                onTriggered: app.initiateRequest()
                imageSource: "images/ic_settings.png"
            }
        ]
    
        Container {
            layout: DockLayout {
            }
            AppBackground {
                // setup application background
                background: Color.Black
                verticalAlignment: VerticalAlignment.Fill
                horizontalAlignment: HorizontalAlignment.Fill
            }
            Container {
                horizontalAlignment: HorizontalAlignment.Fill
                Container {
                    layoutProperties: StackLayoutProperties {
                        spaceQuota: 1.0
                    }
                    layout: DockLayout {
                    }
                    verticalAlignment: VerticalAlignment.Fill
                    horizontalAlignment: HorizontalAlignment.Fill
                    Container {
                        property int padding: 10
                        layout: StackLayout {
                            id: stationStacks
    
                            // change layout direction according to current device orientation
                            // this feature is disabled for 720x720 devices in current template
                            // see: assets/720x720/AppOrientationHandler.qml
                            orientation: (orientationHandler.orientation == UIOrientation.Portrait) ? LayoutOrientation.TopToBottom : LayoutOrientation.LeftToRight
                        }
                        // create 9-sliced frame for this container
                        background: frame.imagePaint
    
                        topPadding: padding
                        bottomPadding: padding
                        leftPadding: padding
                        rightPadding: padding
                        verticalAlignment: VerticalAlignment.Center
                        horizontalAlignment: HorizontalAlignment.Center
                    }
                }
            }
            attachedObjects: [
                AppOrientationHandler {
                    // custom orientation handler
                    // the different handler is used for 720x720 in this template
                    // to disable oriantation adaptability for this kind of devices
                    id: orientationHandler
                }
            ]
    
        }
        attachedObjects: [
            // Create the ComponentDefinition that represents the custom
            // component in myPage.qml
            ComponentDefinition {
                id: addStation
                source: "AddScreen.qml"
            }
        ]
    } // Page
    } // NavigationPane
    

    AddScreen.qml

    import bb.cascades 1.0
    import bb.system 1.0
    
    Page {
        actions: [
            ActionItem {
                title: "Search"
                ActionBar.placement: ActionBarPlacement.OnBar
                imageSource: "images/ic_search.png"
            },
            ActionItem {
                title: "Add"
                onTriggered: {
                    app.addStat(identifierInput.text)
                }
                ActionBar.placement: ActionBarPlacement.OnBar
                imageSource: "images/ic_add.png"
            }
        ]
        titleBar: TitleBar {
            title: "Add Stats"
            appearance: TitleBarAppearance.Plain
        }
    
        Container {
            layout: StackLayout {
                orientation: LayoutOrientation.TopToBottom
            }
            background: Color.DarkGray
            Container {
                layout: StackLayout {
                    orientation: LayoutOrientation.LeftToRight
                }
    
                Label {
                    text: "
    Identifiers:
    " textFormat: TextFormat.Html } TextField { id: identifierInput hintText: "XXX YYY" horizontalAlignment: HorizontalAlignment.Left verticalAlignment: VerticalAlignment.Top inputMode: TextFieldInputMode.Text /*onTextChanging: { app.mNewIdentifiers = text console.log("Idents " + app.mNewIdentifiers) }*/ } } Container { layout: StackLayout { orientation: LayoutOrientation.TopToBottom } Label { text: "" } Picker { id: favoritesPicker title: "Favorites" } } }// Container } // Page

    Hello
    Add quotes around objectName:

    objectName: "navigationPane.

Maybe you are looking for

  • My turn/orientation no longer works on my iPad 2 since the last update.

    MY orientation/rotation no longer works on my iPad 2 since the last update.  I have turned to focus on, and power off, then on again, but my screen remains locked.  I also went to the settings and turned on and off, and then on new orientation, but t

  • Getting started with Office 2010 starte

    I'm trying to implement the Office Starter App on my new computer laptop. I get the open office window and click 'Use Office Starter' after a period where it seems that Office is currently set up I get a message saying there was a problem Office Star

  • Another RegEX question

    Hi, I have a question about the regular expression: If you look at the attached code you will find two examples. It is an old piece of code, but now I have to fix a bug that was discovered after a few years of use. Task: If the entry is for example C

  • OfficeJet 8500 a 910 scan does not work with my Macbook Pro Snow Leopard 10.6.8

    OfficeJet 8500 a 910 scan does not work with my Macbook Pro Snow Leopard 10.6.8.  I tried to reload of apple and HP.  My drivers and software are up to date.  I tried to scan from preview, Capture and print browser.

  • Driver for PCI Simple Communications Controller for 32 bit Gateway MX 3210

    I installed a new hard drive in a gateway MX 3210, 32-bit and installed Windows 7. Device Manager shows missing me the driver for the controller PCI of communication Simple, so first I went to support Gateway with no luck, then tried several other si