How to scale the content along with child elements?

By default I need my application size to be compatible with 1280x800 resolution; and if the application is viewed at a bigger resolution, only the background needs to be stretched, therefore I have to hardcode canvas size and set background in percentage. Till now it is alright, but when the application is viewed at a smaller resolution or with window size scaled down, the application content should also scale along.
So, any clues on scaling down the content [along with child contents]? mind you, it has background images so must be scaled with proper aspect ratio.
Thanks for any help.
Siraj Khan
[email protected]

Thank you for the tip... this solves my problem partially. Now I am working on to scale the inner content of canvas --- on resize. Since there are elements like buttons and images, i can not define them in percentage, so i need to first check what exactly is the percentage of reduced canvas, and then accordingly i'll have to apply that percent on the inner elements. Any other better idea? as i see this only as a work around, not a proper solution.
Anyway thanks again for the help.
-Siraj

Similar Messages

  • How to get the contents associated with a component.

    How to get the contents associated with a component.
    Like i have 2 buttons and i want to get the contents associated with these button without clicking them i.e without firing the event.
    By Contents i mean, whatever things we get after firing the event,we get some other window and some thing is added to the current page and so on.

    grab all the code inside the actionPerformed(ActionEvent e) method

  • How to display the message along with a value using BBP_CHECK_BADI

    Hi Gurus,
    I need to display a message dynamically when the user create's a shopping cart. I am using Check_badi for this. i.e., I need to display the buyer number and amount left for him dynamically. I am storing both of them in variables and don't know how to display the messages laong with some message " the amount left for <XXXXXX> is <$$$$$$$$>". Can you help me out.
    Thanks,
    Neelima

    Hi,
    you can use the function module 'BBP_PD_MSG_ADD'. This is the function module normally used for the displaying the error messages in SRM.
    See wether you can use already available error messages , use the transaction SE91 , and the message class being BBP_PD

  • How to give the Submit along with Variant

    Dear Freinds,
               Iam using the Submit program with variant  in my custom program . When iam exucting my custom program it is directly opening the program with the variant . ie. just like we execute a program and select varaint.
    it is not happening what i want ,it has to schedule the program with the varaint (i.e. what ever fields have been slected in that varaint) and when i go and see in SM37 . The job should get schedule, this was
    happening when iam sending one are two parameters in retrun of the submit without me using VAriant.
    please help me where iam going wrong.
    Not working Scenario (when iam using Variant)
    SUBMIT rptqta00
       WITH pnpbegda =  sy-datum                                 "'20081201'
       WITH pnpendda =   lv_date                                 "'20091130'
       VIA SELECTION-SCREEN USING SELECTION-SET 'NEW'
       VIA JOB lv_job_name NUMBER lv_job_nr
         AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = lv_job_nr
            jobname              = lv_job_name
            strtimmed            = 'X'
          IMPORTING
            job_was_released     = lv_job_released
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF syst-subrc NE 0.
          MESSAGE i162(00) WITH
          'An error occured while closing the background job.'.
          STOP.
        ENDIF.
    working perfectly  with the below scenario
      SUBMIT rptqta00
    WITH pnpbegda =  sy-datum                               "'20081201'
    WITH pnpendda =   lv_date                                 "'20091130'
    with pnppernr = '99002235'
    WITH pnpbukrs  EQ 'C091'
    WITH dis_new = 'X'
       VIA JOB lv_job_name NUMBER lv_job_nr AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = lv_job_nr
            jobname              = lv_job_name
            strtimmed            = 'X'
          IMPORTING
            job_was_released     = lv_job_released
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF syst-subrc NE 0.
          MESSAGE i162(00) WITH
          'An error occured while closing the background job.'.
          STOP.
        ENDIF.
    now my question is what i have to do in the case of VAriant so that it acts exactly as the below parameters.
    My problem why iam going to varaint is in the standard program  rptqta00  i have a button Like TESTRUn ,Batchinput,Direct etc.............. this iam not able to pass the OK code along WITH  in the     Submit syntax.... i dont know how to pass in the case of Button's  along with Submit ,,,,,,,,,however iam able to do for radio buttons .
    could any one tell me why the variant when iam using is taking me directly to the program instead it is not returning
    secondly if iam passing each parameters in the submit program how can i pass the BUTTON value ( which is having tick option for either TESTRUN ,Batchinput,Direct )
    Please could any one help.
    regards
    divya

    Dear Freinds,
                  I found the solution , i have used the ok code of the button while passing into submit program it is working . Thanks once agian
    regards
    divay.

  • How to modify the content of a xml element using java?

    Hi all,
    In my usecase I need to export some data from the database to the external file (Ms Word) using java.
    The data which I get from the database will be in the form of a xml file. In that xml file
    I got to modify the content of an attribute of a xml element in the java class. Kindly comeup with your help
    to achieve this.
    Thanks,
    Phanindra.
    Edited by: 887737 on Dec 5, 2011 5:52 AM

    Why don't you try Xerces2?Why don't you tell him to use the javax.xml APIs that are already built in? And that use Xerces2 under the hood? Instead of throwing out a suggestion that might lead to him adding another copy of Xerces into his application?
    @OP there are several techniques:
    - string replacement as suggested by jschell
    - XML parsing to a DOM and then use the DOM API
    - XSLT
    Which you should use depends on the complexity of your requirement.

  • How to read the content of a blob col along with other cols as pipe delimit

    Hi,
    I would like to read the blob content along with the other columns . Assume table TAB1 has columns Response_log, Empcode and Ename. Here Response_log col is a blob data type, and the content of the blob is an xml file.Now i would like to read the content of the xml file of response_log column along with Empcode and Ename as pipe delimited . or else the best option would be to write to a text file with name extract.txt with the data being pipe delimited .
    create  table tab1(
    response_log blob,
    empcode  number,
    ename  varchar2(50 byte)
    )Sample code goes something like the one below .
    select xmltype( response_log, nls_charset_id( 'char_cs' ) ).getclobval() || '|' || empcode || '|' || ename
    from tab1 Can I have any other alternate way for this.
    Please advice

    Just Now one example is given in HOW TO WRITE ,SAVE A FILE IN BLOB COLUMN

  • I have pdf file with content along with background picture ... I want to convert the same pdf to .ep

    i have pdf file with content along with background picture ... I want to convert the same pdf to .epub how can i???

    If you're using Fluid Grid Layouts, none of these methods will work.  I think the very best you can do is determine the min-height required for desktops & tablets.  Mobile devices don't need min-height because those divisions will stack on top of each other.
    To illustrate with a working example,
    http://alt-web.com/FluidGrid/Fluid2.html
    The relevant CSS code:
    /* Special Rules for Tablets */
    @media only screen and (min-width: 481px) {
    .gridContainer >div {min-height: 255px;}
    /* Special Rules for Desktops */
    @media only screen and (min-width: 1025px) {
    .gridContainer >div {min-height: 325px;}
    Nancy O.

  • My iPhone 5 has broken and is being replaced with a new iPhone tomorrow. However, My carrier (orange) will b picking up my broken iPhone and I am unsure how to secure the content and icloud data on the broken phone. Is there a way to display the data?

    My iPhone 5 has broken and is being replaced with a new iPhone tomorrow. However, My carrier (orange) will b picking up my broken iPhone and I am unsure how to secure the content and icloud data on the broken phone. Is there a way to disable the data held on it and ensure that if it is fixed, nobody can use/see my data and access my account?

    Hi Gazpan,
    Thanks for visiting Apple Support Communities.
    I recommend using the steps in this article to back up your iPhone if possible:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    http://support.apple.com/kb/ht1766
    You may also find this advice helpful for your situation:
    What to do before selling or giving away your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/ht5661
    If you no longer have your iOS device
    If you're using iCloud and Find My iPhone on the device, you can erase the device remotely and remove it from your account by signing in to icloud.com/find, selecting the device, and clicking Erase. When the device has been erased, click Remove from Account.
    If you're unable to complete either of the above steps, you should change your Apple ID password. Changing your password won't remove any personal information that is cached on the device, but it will make sure that the new owner can't delete your information from iCloud.
    Cheers,
    Jeremy

  • How can I add the date at the top of the screen along with the day and time display?

    Hello,
    How can I add the date at the top of the screen along with the day and time display?
    Thanks so much!

    Open System Preferences>Date & Time:
    Ciao.

  • HT2518 I migrated from a PC to a Mac Book Pro.  The contacts transferred over to the Mac along with many contacts that I had deleted sometime ago. Also some contacts did not transfer at all.  How can I perform a correct and up to date migration of my cont

    I migrated from a PC to a Mac Book Pro.  The contacts transferred over to the Mac along with many contacts that I had deleted sometime ago.  Also some contacts did not transfer at all. How can I perform a correct and up to date migration of my contacts? 

    well no reply from the community. sniff- do i stink!? - probably a little bit. If i have lost all that data then I'm gonna really really pong.
    Any ways i have purchased a 1tb usb HDD and have managed to duplicate the dmg file onto it. however still unable to mount the **** thing. so now i have ordered disk warrior which will be in my possession tomorrow.
    fingers toes eyes crossed.

  • When I get messages from Barnes and Noble, the text is blank. If I hit reply or forward, I can then see the content. This only happens with Barnes and Noble. Any suggestions on how to view the content?

    When I get messages from Barnes and Noble, the text is blank. If I hit reply or forward, I can then see the content. This only happens with Barnes and Noble. Any suggestions on how to view the content?

    I'm sorry, but your sister, unless she had already turned on the "Find my iPhone" feature and the person who took the phone has not disabled it, is out of luck. She should report the theft to local police authorities, including the serial number of her iPhone. While her experience is unfortunate, there are good reasons why Apple cannot do anything else about it.
    I hope she gets her phone back.
    Best of luck.

  • How to retrieve all the users along with their password from LDAP

    Hello,
    Can anyone let me know how to retrieve and list all the user along with their password from LDAP.
    Thanks

    Hi Prashant,
    I have limited experience with Synchronization, but I agree with you - if you need to synchronize Passwords, you need to have the Password in clear Text.
    If you trying to build your own Synchronization Solution using any of the avaliable LDAP APIs, I don't think you can ever retrieve a user's Password in clear text.
    However, I did come across an interesting article & I hope you find it useful :-
    http://www.oracle.com/technology/obe/obe_as_10g/im/configssl/configssl.htm
    I am not sure if SSL is necessary - If you have a look at Metalink Note 277382.1 ( How to Configure OID External Authentication Plug-In for Authentication Via Microsoft Active Directory (MS AD) ), teh question asked by oidspadi.sh for the same is asnwered as "N".
    Regards,
    Sandeep

  • After downloading OSX Mavericks, my AOL mailbox has disappeared and all the AOL messages get dumped into the inbox along with the gmail messages. How can I get the AOL mailbox back?

    After downloading OSX Mavericks, my AOL mailbox has disappeared and all AOL messages have been lumped in the inbox along with my gmail messages. What do I have to do to get my AOL mailbox back?

    Linking AOL and gmail?  I don't know what that means.  But if it means what I think it does - that you have the AOL and gmail servers chatting directly with each other through some configuration, I'd definitely disable that.
    In general, the messages either aren't deleted, or aren't correctly deleted, or there's a protocol or network error, or some sort of a mail server error.
    First diagnostic is a mailbox repair.  Mail.app > Mailbox > Rebuild
    Then verify that the credentials are correct and the connection is reliable:
    Mail.app > Window > Connection Doctor
    And yes, if you have gmail and AOL chatting directly with each other, undo that.

  • How to print the contents of a form(window)

    I'm devloping visitors application in java. After the data entry, I need to display the selected information from database along with the photo and take a printout so that it looks like a card.
    I know how to display the contents in a form. How do I print the contents of the form?
    -Thanx
    Hane

    in JComponent there is a method called print(Graphics g)
    you can use that with a Printable class
    read bout the java.print package in the java doc

  • Help on how to read the content of an XML file from the payload

    I have a receiver channel / mail adapter, that sends e-mails with a XML attachment.
    I’m trying to write a Bean, that should make it possible to rename the attached XML file dynamically.
    In the Bean I want to read the content of the attached XML file, it could be the “order number”.
    The filename should then be “Order number”.XML.
    <u><i>Can anyone help me with how to read the content of the XML file from the payload.</i></u>
    <i><b>Frank</b></i>

    hi,
    check this: http://jakarta.apache.org/poi/

Maybe you are looking for

  • I deleted some files from my iTunes music library, how do I get them back?

    Hi there, I hope you can help. I have had an 80Gb iPod for a while now, but it got full, so I was deleting stuff that I didn't listen to very often from my iTunes library as I added new music. However, I kept all the music in my iTunes Music folder.

  • Some imessage settings are greyed out on macbook pro

    MacBook Pro 17-inch, Late 2011 OS X10.9 (Mavericks) Some iMessage settings in the General tab are greyed out: Buddy list: Account Status: When I return: When Switching users: - iMessage is successfully setup on iPhone, iPad and MacBook; - I am the ad

  • Multiple constraints cause exception and I don't understand why;

    Hi: I am using a 10.2.0.3 DB to look at some code that to the best of my knowledge works in 8i. The combination of constraints they put on the table end up preventing a user from inserting records in 10g due to a constraint violation. Caveats: NOT MY

  • Can't attach emails to icloud email

    Hi, since around the begining of August I haven't been able to attach any files to iCloud email. Running a Windows PC and I've tried Internet Explorer and also Safari and get the same result on both. When I click on the attachment icon and select the

  • Genuine SQL sent to database

    Hi, I'm new with ODI and I'm using a lot of variables, when I run the interface or a package the Operator tool only show me the "logic" SQL (with all the variable names), It's possible to see the exactly SQL sent to database, with all the content of