Dialog box for canvas

Hi guys,
I want canvas size for square
before Canvas that i want dialog box which side i want canvas
Top
Left
Right
Bottom
Centre
After Click any one i want Canvas that images in that side

There is a difference between Canvas Size and layers.  Only the background layer size is directly effective by Canvas Size because it does not support transparency so a background layer will have pixels added and deleted by the use of Canvas Size all other layers sizes and pixels are not changed all that changes are those layers boundaries. Layer Areas over the canvas is rendered in the composite view.  When used canvas size the height and with size are set canvas can be added, removed or left the as is for the documents.  The anchor point setting is used for the existing layers this effects the locations of where canvas is added or removed from the document. Method resizeCanvas ([width][, height][, anchor])
The way to effect canvas size and the size of all layers is to crop.  crop (bounds [, angle] [, width] [, height]). Only bounds is required and is your  [left, top, right, bottom].
Or is your (Top, Left, Right, Bottom, Center) referring to the anchor point setting if so you would need four more radio buttons for the are nine position the anchor point can have or are you special caseing your canvas size to only support five anchor points. I see no reasion you would have any problem your script could easly set the anchor point using only five radio buttons for the resizeCanvas method and use a single size setting for both width and height.  Remember canvas size will crop as well as add pixels to a bracground layer. If you do not want to do that convert the background to a normal layer first. You could also use a pulldown menu for the anchor point setting.  I don't really know javascript I'm just a fearless hacker.  I created a Photo Collage Toolkit the package contains several scripts that has oprion a pulldown menu for positioning text stamps in one of nine positions. It would be easy to remove four of them. http://www.mouseprints.net/old/dpr/PhotoCollageToolkit.zip

Similar Messages

  • Print Dialog Box for Addon is not showing in Terminal Server

    Dear All,
    I have created a addon for Automatic Sales Invoice printing that prints the crystal report directly to the printer bu opening a
    print dialog box for printer selection through SDK code.
    The Same addon works fine on the server with print dialog box being showing through SDK code.
    But while running on Terminal Server , print dialog box is not showing any printer though printers are redirected to that
    terminal server.I am not getting whether the problem is in my addon or in the terminal server printer settings.
    Please suggest as i need to know the reason urgently.
    Thanks
    Amit

    Hello Edward,
    Thanks for your reply .
    But the problem is that while running on normal server the print dialog box appear with the printer name in my addon for printer selection .
    But while using terminal server , the print dialog box is not getting any printer in the dialog box .That's the major concern for me
    is their any way to check that why the printers are not showing in print dialog box.
    Thanks ,
    Amit

  • InDesign "Save As" dialog box for every operation in INDB book file; updating page numbers, etc.

    So I haven't used INDB files in awhile in InDesign, and today was the first time I attempted to adjust an old INDB (created originally with CS5).  For every operation of adjusting the book file, such as updating page/section number or adding/removing an INDD file I get a Save As dialog box for each constiuent INDD file.  This is quite annoying since the book has lots of INDDs, and I have to click through the tedious save as with each.  I previously worked with INDBs in CS5, and never encountered this, there was no need to save each INDD in the book just to update the page numbers.  I tried creating a new INDB in CS5.5 thinking that maybe it was because I was working from a file created with an older version of InDesign.  Does anyone know if there is a way to suppress the Save As dialog?  Another thing I noticed that is supremely frustrating is that this new build of InDesign doesn't default to saving the file in its original location, and I have unwittingly ended up saving files in other places, only to later realize it.  I am using InDesign CS5.5 Ver. 7.5.2 on Mac OSX 10.7.3  Any help is greatly appreciated. 

    It will only happen once (and frankly, what you are doing is a very bad idea).
    When you open the old book in CS5, you are converting to the new format. All of the legacy files also need to be converted, even if added to a new book in CS5.5, hence the Save As since ID will not overwrite the old versions until you tell it to (and that's the bad idea). I strongly recommend (though it's too late for any books you've already updated and overwritten) that you either continue to edit in the old version, or that you take the time to open each file in the original version if it's older than CS5, then export to interchange format (.inx or .idml, depending on version), open those files in CS5.5, save with new names so you don't overwrite anything, then add to a new book and proceed.
    One of the reasons I recommend this seemingly time-consuming approach is that there are too many reports (another one yesterday) of some sort of problem that pops up late in the editing cycle when converting legacy files to CS5/5.5 by opening them directly and saving. This is a belt and suspenders insurance approach, and is far less labor intensive than starting over, which might end up being your other option down the road if something goes wrong.

  • Change File Name In The "File Download" Dialog Box For Web Reports

    Hi All ,
    I followed the below note to change the "File Download" name.
    How To Change The File Name In The "File Download" Dialog Box For Web Reports? Doc ID: Note:418366.1
    However its not working. Has anyone tried this and works fine ?
    Basically I wanted to change the name "rwservlet" when a report is run in an
    excel format.
    Rajesh Alex
    Rajesh Alex

    Hello,
    Have you checked if a HTTP header "Content-disposition" is returned ?
    You can use ieHTTPHEaders for IE
    http://www.blunck.se/iehttpheaders/iehttpheaders.html
    and
    Live HTTP Headers for FireFox
    https://addons.mozilla.org/en-US/firefox/addon/3829
    Regards

  • How to handle the button "cancel" in a dialog box for displaying views?

    Hello!
    I ve a question about handling the cancel button in a dialog box for displaying views.
    I ve already implemented the dialog box by using the following code:
    METHOD eh_onnewqact.
      DATA stitle TYPE string.
      IF m_popup IS BOUND.
        stitle = cl_bsp_runtime=>get_otr_text( alias = 'ZCC_ICRM/NEW_TASK' )."cl_wd_utilities=>get_otr_text_by_alias( 'ZCC_ICRM/NEW_TASK' ).
        m_popup = comp_controller->window_manager->create_popup(
          iv_interface_view_name = 'ZCC_POPUP_NEWBT/NewQActWindow'
          iv_usage_name = 'CUNewQAct'
          iv_title = stitle
        CALL METHOD m_popup->set_on_close_event
          EXPORTING
            iv_view       = me
            iv_event_name = 'NEWQACT_POPUP_CLOSED'.
      ENDIF.
      m_popup->open( ).
    ENDMETHOD.
    My dialog box consists two buttons - cancel and create.
    The cancel buttons should close the popup and the create button should create an entity of a specified object. but let us come to the cancel button. I did´nt find any information about implementing an cancel button. So, how should I implement it? I thougt
    me->close( ). But that didnt works!
    Could u give me further information about that, because my cancel event-handler is empty?
    method EH_ONCANCEL_QACT.
    endmethod.
    After that I would know how my calling view could know that the user pushes the Create Button and how the data of 2 inputfields of the dialog box finds their way to the calling view in order to process this data there?
    Thank you very much!

    Hi Michael,
    thank you for your advice! This problem is solved...
    ...but I have another issue. Ive implemented 2 editable fields in my popup. The user should fill that fields with context and that context should be processed in the calling view of my popup.
    My question is how to transfer these information from my popup to my calling view or method?
    I tried the following...
          lv_context_node ?= m_popup->get_context_node( 'QUICKACT' ).
          IF lv_context_node IS NOT INITIAL.
            lv_text = lv_context_node->get_date( attribute_path = '' ).
          ENDIF.
    But it doesnt work! The context node object is always empty/initial.
    Thank you!
    PS: Another possibility could be that the object / node of the calling view is transferred to the pop-up in order to process it there.
    Edited by: Marcus Findeisen on Feb 22, 2011 12:13 PM

  • How to make a dialog box for a user to choose a file from disk

    Hi there
    Is it possible to make a dialog box, for a photoshop user, to choose a txt file, to be process by my javascript ?
    I have a txt file with all the names and locations of psd files i want to process by photoshop. I have ex. 100 out of a folder with 250 images.
    If anyone have a shot "code sample" how to select a file - i will be happy.
    /T

    Here is an example of selecting a text file...
    var dlg=
    "dialog{text:'Script Interface',bounds:[100,100,500,220],"+
    "testFile:EditText{bounds:[10,40,310,60] , text:'' ,properties:{multiline:false,noecho:false,readonly:false}},"+
    "Browse:Button{bounds:[320,40,390,61] , text:'<<' },"+
    "statictext0:StaticText{bounds:[10,10,240,27] , text:'Please select Text File' ,properties:{scrolling:undefined,multiline:undefined}},"+
    "Process:Button{bounds:[10,80,190,101] , text:'Process' },"+
    "button2:Button{bounds:[210,80,390,101] , text:'Cancel' }};"
    var win = new Window(dlg,'test');
    win.center();
    win.testFile.enabled=false;
    win.Browse.onClick = function() {
    selectedFile = File.openDialog("Please select TEXT file.","TEXT File:*.txt");
      if(selectedFile != null) win.testFile.text =  decodeURI(selectedFile.fsName);
    win.Process.onClick = function() {
    if(win.testFile.text == '') {
      alert("No text file has been selected!");
      return;
    win.close(1);
    selectedFile.execute();
    win.show();

  • Silverlight dialog box for update

    I keep getting the update dialog box for silverlight. It only give option to update or remind later.
    I do not want the up date and do not want to keep seeing the dialog box pop up. How
    do I stop this.

    If the update is in the App Store, see below.
    Hide Update in Mavericks

  • What is the "Extract" button at the bottom the DNG converter dialog box for ?

    Does anyone know ....
    What is the "Extract" button at the bottom the DNG converter dialog box for ?
    THANK YOU

    In DNG Converter you have an option to embed the original RAW files (CR2, NEF etc) into the DNG file (see screenshot). Later you might want to extract them back, for example, for converting in camera-maker's own software.
    So, if you have any DNGs with original RAWs embedded, Extract button will get them back.

  • I want to install PS and LR on my second computer ( laptop ) but once in  dialog box for password it doesn't accept my password

    I want to install PS and LR on my second computer ( laptop ) but once in  dialog box for password it doesn't accept my password

    Nobody can tell you anything without proper system info or other technical details.
    Mylenium

  • How can I reinstate the warning dialog box for entering a secure site?

    I would like to reinstate the warning box that tells me when I am entering a secure site. The one that warns when I am leaving a secure site is working just fine. I probably unchecked the box for entering at one time or another but I can't find how to bring it back.

    Looks that the Warning Messages dialog for those settings is gone from Tools > Options > Security
    You can reset the related <b>security.warn_</b> prefs on the <b>about:config</b> page.

  • Save/open dialog box for FileWriter

    Hi,
    I have a JSP action link with onclick='onClickExport', defined in an underlying class file.
    The 'onClickExport' method in the class creates a file:
    fileName = "C:\\Temp\\SaveSearchResults.csv";
         File outputFile = new File(fileName);
         FileWriter out = new FileWriter(outputFile);I write results to the file using
    out.write statements and finally close it using out.closeAs you might have noticed the path for the file is hard-coded as C:\Temp, so the file gets written and downloaded there. Can I instead have the open/saveas dialog box pop-up where a user can type filename and select a location for the file to save...? (like content-disposition)
    Can somebody point me how to do that...
    thanks,
    nik

    JFileChooser can't be used with JSP. If invoked in Java on the server side, then the display will be on the server, and presumably, someone is not sitting there waiting for clients to want to save files remotely.
    On the client side, well, there's always applets, but that has nothing to do with JSP. And it would only be able to browser the local client, so a signed applet would be needed.

  • How to customize the Save as dialog Box for saving Web Query???

    Hello,
       we are usnging SAP NW Portal and BI 7.0 (SP14).
       We have published BI web queries in the Portal and it works just fine, now when the User select the Button "Save As" in the Context Menu of any web query, this will open a new Dialog Box name "Save As Dialog Box", so from this dialog box the user can select where to save the query, he/she have 3 options* to save qureies: My Favorites, Bex Portfolio and MyPortfolio, this also works fine.
      My Quetsion is: How can i customize the View of this "Save As" dialog box, so at the end the User can only select 2 Options:  My Favorites + MyPortfolio. So how to hide the Tab:  Bex Portfolio in the Dialog Box.
    Points for any good answer.
    Many Thanks and Regards,
    Nazih
    Edited by: Nazih Kayyali on Feb 3, 2009 4:04 AM

    In what you have posted, there is no reason it shouldn't work the same way in Acrobat 9. I would recommend that you submit your complete application to developer support.

  • Save dialog box for text and pdf files

    Hi,
    I am using CRM UI framework for developing my components.
    Currently i have a hyperlink for a file. On click of the hyperlink i want the Save dialog box to appear with SAVE/OPEN/CANCEL options. For Word/Excel/PPT files, dialog box appears. However for txt/PDF files, dialog box does not appear.
    URL looks like the following:
    http://uxcia0g.wdf.sap.corp:50026/sap/bc/contentserver/000?get&pVersion=0045&contRep=RPS_DB_02&docId=80215A5C348E1DEE8A9EC8FFDED05E54&compId=chk.pdf&content_disposition=attachment.
    Could you please help me to resolve this issue?
    Regards,
    Vinay

    First of all, you need an app on the iPad that can read those files that you want to transfer. Adobe Reader and iBooks are two free apps that will read PDF files. Adobe Reader is much more robust than iBooks as it offers so many more features like renaming files, creating folders, annotating, highlights, etc.
    Download Adobe Reader in the App Store. Then read this about file sharing with iTunes.
    iOS: About File Sharing - Support - Apple
    There are other ways to get files to the iPad, like email, DropBox and some other apps that let you mount your iPad like a flash drive.
    This should be helpful as well.
    iTunes 11 for Mac: Set up syncing for iPod, iPhone, or iPad

  • How to disable dialog box for ending document display

    I have a wf item that has a pdf attachment.  Every time the attachment is opened, a dialog box appears stating:
    1. Switch to the window of your PC application to display the document
    2. Close your document
    3. Press "Continue" in the R/3 window
    I've tracked it back to screen 0300 in LS025002.
    It's only informational and shows up after the attachment has already been opened and closed.
    How do I stop this dialog box from appearing?

    Those little popup boxes are called tooltips and they are programmed into the page. As iBod says, they cannot be disabled.
    There are a couple of things you can do on pages you know have tooltips. There is a time delay of a couple or three seconds before the first tooltip appears. So one way to keep their appearance to a minimum is to make up your mind before you move to an item to click on it and to not hover on items with tooltips for any amount of time. Also, if a series of menus or items all have tooltips, the time delay only exists for the first one. If you immediately move to the next item, the tooltip appears instantaneously. So with such a series, if you move completely off the series, the time delay will be reinstated.

  • Filter in the Dialog box for selection

    I have report that contains a file selection dialog using the following code
    at selection-screen on value-request for p_file.
      perform f_get_file using cl_gui_frontend_services=>filetype_excel.
    form f_get_file using p_filetype type string.
      data: lt_filetable  type filetable,
            ls_file       type line of filetable,
            lv_filename   type string,
            lv_path       type string,
            lv_fullname   type string,
            lv_title      type string,
            lv_desktop    type string,
            lv_rc         type i,
            lv_action     type i.
      call method cl_gui_frontend_services=>get_desktop_directory
        changing
          desktop_directory    = lv_desktop
        exceptions
          cntl_error           = 1
          error_no_gui         = 2
          not_supported_by_gui = 3
          others               = 4.
      if sy-subrc <> 0.
        message e007(zspx) with 'Desktop not found'.
      endif.
    * Update View
      call method cl_gui_cfw=>update_view
        exceptions
          cntl_system_error = 1
          cntl_error        = 2
          others            = 3.
      lv_title = text-003.
      call method cl_gui_frontend_services=>file_open_dialog
        exporting
          window_title            = lv_title
          file_filter             = p_filetype
          initial_directory       = lv_desktop
        changing
          file_table              = lt_filetable
          rc                      = lv_rc
          user_action             = lv_action
        exceptions
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          others                  = 4.
      if sy-subrc = 0 and lv_action ne cl_gui_frontend_services=>action_cancel.
        read table lt_filetable into ls_file index 1.
        if sy-subrc = 0.
          p_file = ls_file-filename.
        else.
          clear p_file.
        endif.
      else.
        clear p_file.
      endif.
    endform.                    " f_get_file
    Currently while opening the dialog for file selection its showing the desktop directory. But user can select file from any other directory.
    My question is how to restrict this dialog box from which user can select only from desktop directory.
    PS : Please don't suggest  to validate the file after getting the file that its from desktop or not

    Hi,
    Like the bellow ?
    Replace following code
    if sy-subrc = 0 and lv_action ne cl_gui_frontend_services=>action_cancel.
        read table lt_filetable into ls_file index 1.
        if sy-subrc = 0.
          p_file = ls_file-filename.
        else.
          clear p_file.
        endif.
      else.
        clear p_file.
      endif.
    with the bellow
    IF sy-subrc = 0 AND lv_action NE cl_gui_frontend_services=>action_cancel.
        READ TABLE lt_filetable INTO ls_file INDEX 1.
        IF sy-subrc = 0.
          FIND FIRST OCCURRENCE OF lv_desktop IN ls_file-filename.
          IF sy-subrc = 0.
            p_file = ls_file-filename.
          ELSE.
            MESSAGE: 'Sorry! you can select file only from Desktop' TYPE 'I'.
            PERFORM f_get_file USING cl_gui_frontend_services=>filetype_excel.
          ENDIF.
        ELSE.
          CLEAR p_file.
        ENDIF.
      ELSE.
        CLEAR p_file.
      ENDIF.
    Regards,
    Faisal

Maybe you are looking for