Create titleWindow  inside a canvas

doubt as to create a titleWindow a component canvas
the code to create out I already have
private function newTitleWindow(window:Class):void
                  var desktop:TitleWindow = new TitleWindow();
                desktop= PopUpManager.createPopUp(this, window, false) as TitleWindow;
                PopUpManager.centerPopUp(desktop);
now I do not know how to put it within the space limitations of the canvas
help me

It sounds like you might be going about it all wrong.
In Flex, the easiest way would be to use MXML, and add it in a canvas like this:
<mx:Canvas>
     <mx:TitleWindow id="myTitleWindow" x="20" y="20"/>
</mx:Canvas>
You can change attributes in the MXML much easier.
-Marty [ http://www.theflexguy.com ]
Helpful/Answered? Please mark it as such.

Similar Messages

  • Is there any way to create table inside cell in sapui5??

    Hello experts,
    How do we create table inside cell in ui5??
    something like this::
    Market Activities
    Other Activities
    Header 1
    Header 2
    Header 1
    Header 2
    Header 3
    Header 1
    Header 2
    Header 3
    Then how do we go about binding??
    Thank you,
    Best Regards
    Chetna

    This code is actually for simple table which i have created:
    var dvrData = [
                                   {DealerNo:"",checkedOrd:{checked:false,enabled:false},checkedOrd1:{checked:false,enabled:false},checkedColl:  {checked:false,enabled:false},checkedPromos:{checked :false,enabled:false},
    var newDvrTable = new sap.ui.table.Table({
                         id:"newDvrTableId",
                         visibleRowCount: 1,
                        selectionMode: sap.ui.table.SelectionMode.Single
    //following field comes unser first column (with blank label)
    newDvrTable.addColumn(new sap.ui.table.Column({
    label: new sap.ui.commons.Label({text: " Dealer Code", wrapping : true}),
                         template: new NewTextField({
                               id:"dlrNum",
                               value: "{DealerNo}" ,
    // following columns come under "MARKET ACTIVITIES"
      newDvrTable.addColumn(new sap.ui.table.Column({
                         name : "SHOP ACTIVITY",
                         label: new sap.ui.commons.Label({id:"shopId",text: "SHOP",
                               wrapping : true}),
                               template: new sap.ui.commons.CheckBox("chkShop",{
                                      enabled: "{checkedOrd/enabled}",
                                      checked:"{checkedOrd/checked}",
    newDvrTable.addColumn(new sap.ui.table.Column({
                         name : "Order Related ACTIVITY",
                         label: new sap.ui.commons.Label({id:"shopId",text: "ORDER",
                               wrapping : true}),
                               template: new sap.ui.commons.CheckBox("chkShop",{
                                      enabled: "{checkedOrd1/enabled}",
                                      checked:"{checkedOrd1/checked}",
    //Following two columns must come under Other Activities Column
    newDvrTable.addColumn(new sap.ui.table.Column({
                         name : "CHEQUE COLLECTION",
                         label: new sap.ui.commons.Label({id:"shopId",text: "COLLECTION",
                               wrapping : true}),
                               template: new sap.ui.commons.CheckBox("chkShop",{
                                         enabled: "{checkedColl/enabled}",
                                           checked:"{checkedColl/checked}",
    newDvrTable.addColumn(new sap.ui.table.Column({
                         name : "SCHEME UPDATE",
                         label: new sap.ui.commons.Label({id:"shopId",text: "SCHEME UPDATE",
                               wrapping : true}),
                               template: new sap.ui.commons.CheckBox("chkShop",{
    enabled: "{checkedPromos/enabled}",
                                      checked:"{checkedPromos/checked}",
      var oModel = new sap.ui.model.json.JSONModel();
                  oModel.setData(dvrData);
    var newdata = oModel.getData();
    sap.ui.getCore().setModel(oModel,"newDvr");
                  newDvrTable.setModel(oModel);
                  newDvrTable.bindRows("/");
    Thank you,
    Best Regards,
    Chetna

  • Error while creating zone inside Solaris 11.2 beta ldom

    hi
    i have installed solaris 11.2 in ldom (sparc ovm 3.1 )
    and i try to create zone inside guest domain , it always give this error
    Error occurred during execution of 'generated-transfer-3442-1' checkpoint.
            Failed Checkpoints:
            Checkpoint execution error:
                    Error refreshing publishers, 0/1 catalogs successfully updated:
                    Framework error: code: 28 reason: Operation too slow. Less than 1024 bytes/sec transfered the last 30 seconds
                    URL: 'http://pkg.oracle.com/solaris/beta/solaris/catalog/1/catalog.summary.C' (happened 4 times)
    Installation: Failed.  See install log at /system/volatile/install.3442/install_log
    ERROR: auto-install failed.

    You might want to tune PKG_CLIENT_LOWSPEED_TIMEOUT before running "zoneadm install"
    For example:
    # export PKG_CLIENT_LOWSPEED_TIMEOUT=300

  • Event handler doesn't work for a Canvas inside a canvas (Possible bug in Flex 4)

    Hi Guys,
    I have a canvas sitting inside another canvas. When i try to catch the mouseClick event in the child canvas, im not able to do it. When i change the child canvas component to a 'Panel', the event handler works perfectly fine. Any suggestions/solutions?

    ok a few things you should know... it is recomended to use the spark components when working with flash builder 4 thought the mx components are available spark is much litghter in weight. also if you want to use the equivalent of a canvas in spark then you want to use a "group" but ill warn you they dont support inline styles, a border container looked more appropiate for what you were trying to do below.  However. i did fix your code for flex 4.0
    look below.
    component:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:fx="http://ns.adobe.com/mxml/2009"
         xmlns:s="library://ns.adobe.com/flex/spark"
         xmlns:mx="library://ns.adobe.com/flex/mx"
        creationComplete ="canvas2_creationCompleteHandler(event)">
    <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Script>
      <![CDATA[
    import mx.controls.Alert;
    import mx.events.FlexEvent;
    public function canvas1_clickHandler(event:MouseEvent):void
    Alert.show("Clicked");
    public function canvas2_creationCompleteHandler(event:Event):void
    {// TODO Auto-generated method stub//
    kenaCan.addEventListener(MouseEvent.CLICK, canvas1_clickHandler);
      ]]>
    </fx:Script> 
    <mx:Canvas id="kenaCan"
          width="400"
          height="300"
          borderStyle="solid"
          borderColor="black"
          backgroundColor="white"
          />
    </mx:Canvas>
    application:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
          xmlns:local1="local.*">
    <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <local1:canvas/>
    </s:Application>
    if this post answers your question please mark it as such thanks

  • When I create a 5 x7 canvas, why are my pictures getting cut off?

    So, I'm pretty new to Elements 12, but I do understand things about ratios and what not.  But I am still not understanding why when I create a 5 x 7 canvas, create something on it, then try to print, it either leaves space on the edges or if I do crop to fit, cuts off my image!  I am creating a completely new canvas and adding pieces to it, like text, clipart and so on.  Any help would be appreciated!

    krolgirl wrote:
    I do understand things about ratios and what not.
    krogirl,
    Check the following:
    Make sure that you have the latest drivers for your printer. You can do that on the manufacturer's web site.
    Make sure that the orientation of you file and the one selected in the print set-up are the same.. If you have a landscape oriented file, for example, go to File>print. In the dialog look for "Page Setup", and select landscape.
    Crop to 5x7 before sending it to the printer. For paper size, try 5x7 borderless,
    Please report back with your progress.

  • CREATE OBJECT inside INITIALIZATION event in ABAP

    Hi everyone,
    I have one question, can we create object inside INITIALIZATION event. Why, I am asking this question is, because most of the time I have seen people to create object inside start-of-selection. Please give your thought on this.
    The code I have just coded below is also right or wrong?
    CLASS lcl_build_data DEFINITION.
       PUBLIC SECTION.
         METHODS : constructor,
                            get_all_files,
                             validate_site.
    *-- Private Section declaration
       PRIVATE SECTION.
             METHODS : clear_and_refresh,
                                display_output.
    ENDCLASS.                 
    *** class declaration,  create instance for the class
    DATA: gv_data     TYPE REF TO lcl_build_data.
    INITIALIZATION.
    *** Create class object. Constructor method will be called to Refresh
    *** and Clear all internal tables and Work areas
       CREATE OBJECT gv_data.
    *                    AT SELECTION-SCREEN             *
    AT SELECTION-SCREEN ON s_vkbur.
    *** Sales Office validation
       CALL METHOD gv_data->validate_site.
    *                START-OF-SELECTION                    *
    START-OF-SELECTION.
    *** Get the list of all files from unix dir.
       CALL METHOD gv_data->get_all_files.

    Since you are using the same object for your Selection screen related events, AT SELECTION-SCREEN, you would have to instantiate the object in the INITIALIZATION event. If your object usage is just for the data - In case you use the MVC design pattern, you should push back the object creation in START-OF-SELECTION.
    Regards,
    Naimesh Patel

  • How to display everything inside a canvas on a new HTML page

    Hi, im trying to display images, words and everything inside a canvas on a new HTML page. By a click of a button, a new window with HTML page will pop up display the canvas. Can anyone help me?

    Apps and other media from iTunes can only be used with the account they were bought with.

  • Create text inside a path

    I have a shape that I have drawn
    Everytime I try to copy and paste text into the shape I get the message that I I must click on a non-compound non masked path to create text inside path.
    Can anyone help?

    maralena,
    As I said in the meeting, it should work, so I believe there may be corruption of preferences.
    You may Cmd+Option+Shift during startup, or Move the folder with Illy closed; this is reversible.
    If neither helps, you may have a look at the Other options, especially item 7.

  • Create XML inside BPEL

    How to create XML inside BPEL process like below
    <Main>
    <psn:attr xmlns:psn="PSN:ML:6:0" name="Std_Fname"><psn:value>Any Value</psn:value></psn:attr>
    <psn:attr xmlns:psn="PSN:ML:6:0" name="Std_Lname"><psn:value>Any Value</psn:value></psn:attr>
    </Main>
    Where Any Value may changes at runtime.
    Thanks

    In XML Fragment when I use the following code it doesn't get value of bpws:getVariableData("var1").
    <Main>
    <psn:attr xmlns:psn="PSN:ML:6:0" name="Std_Fname"><psn:value>bpws:getVariableData("var1")</psn:value></psn:attr>
    <psn:attr xmlns:psn="PSN:ML:6:0" name="Std_Lname"><psn:value>bpws:getVariableData("var2")</psn:value></psn:attr>
    </Main>
    Any help?

  • Create folder inside "Programs"

    Hey guys!
    i just got my first Macbook yesterday, and i'm wondering how i create folders inside the "Programs" folder in the dock.
    i recently installed the full Adobe CS4 pack (thx to my school for legal software <3!)
    and it created soo many applications inside the programs folder. it created like 15 icons...
    i'd like to put all those 15 icons. (which acctually are folders -_-) into 1 folder.
    get it?
    if not i can provide pictures.. but i dunno how to screen capture xD
    Thanks alot
    and btw: onec you go mac, you'll never go back

    Hi E,
    I have done this once. As T mentioned some applications do not work properly if moved from original location and these you have are some of that kind.
    From my experience I would uninstall - using the Uninstall application provided (maybe inside the /Applications/Utilities folder - and install again. If I am right, on the install option screen you can choose which applications you want and the install folder where you can browse to /Applications folder and Create Folder naming this as you wish - CS4, Adobe or other.
    Good luck.
    Message was edited by: KXsig

  • Hi How do we create Methods inside the Business objects of Z

    Hi Abapers,
                        How do we create Methods inside the Business objects (z objects) and how *** an import parameter or export parameter  to be defined for the new Methods.
    Regards
    Bhaskar Rao.M

    Hi Bhaskar,
    that ´s not difficult.
    Open your Bus.Obj. in SWO1 with CHANGE/EDIT
    Click on the "Methods" header line and then use the button for "Create".
    If you want to add the method on basis of a function module, choose next in the next pop up. Then the system will offer you the ex/import parameter from the function module. So this is a really simple way.
    If you don´t have a FM, it is a little bit more difficult.
    Choose No on the quetion about a FM, fill in the next pop up  methode name (no blanks allowed).
    Dialogue is for user related method (call screen...) synchronous for methods which have to give back a result directly in to the workflow.
    After completing the screen the method will be displayed as new method at the end of method list. Now add parameters (first click on the method name, then choose parameter button, same functionality to add program to the method).
    Programm:
    Code snip:
    BEGIN_METHOD ZWFCHECKMIRO CHANGING CONTAINER.
    DATA:
          ZBELNR TYPE RBKP-BELNR,
          ZGJAHR TYPE RBKP-GJAHR,
          RESULT TYPE HRP1001-ISTAT,
          BELNR TYPE BKPF-BELNR,
          GJAHR TYPE BKPF-GJAHR,
          BUKRS TYPE BKPF-BUKRS.
    to import parameter
      SWC_GET_ELEMENT CONTAINER 'Zbelnr' ZBELNR.
      SWC_GET_ELEMENT CONTAINER 'Zgjahr' ZGJAHR.
    *(or SWC_GET_TABLE)
    here add the functionality of your method!
    to export parameter
    SWC_SET_ELEMENT CONTAINER 'Result' RESULT.
      SWC_SET_ELEMENT CONTAINER 'Belnr' BELNR.
    *(or SWC_SET_TABLE)
    !!! Important: naming convention!!! Use same writing of parameter names in
    PARAM area (button PARAMETER) and here in code.
    To use your method, change it to implemented after adding your code.
    -> Edit -> Change release status -> object type component -> into implemented
    (Sorry , have a german screen here, possibly terms are a little bit different.
    Hope this helps a little bit.!
    regards
    Dirk

  • Create text inside a path or shape in Photoshop CS6?

    Is there a new way to fill a shape or path with text in CS6.
    When I create the path I can put my text tool "over" the path & my cursor switches to a curved line through the cursor, but when I place the cursor "inside" the path it just goes back to regular cursor & if I click inside it just starts a new (regular) text layer.
    In older versions as soon as I placed my text cursor inside the path it would switch to the text cursor inside parenthesis. And thus type inside the path. That doesn't happen anymore.
    Is there a new way to do this?
    Thanks

    Ptauly wrote:
    Just figured it out. You apparently have to create a "shape" layer first.
    That's strange because I don't find it necessary to create a Shape layer in CS6, and I don't think JJ needs to create a Shape.
    I can create a closed path, Work Path for example, position Type Tool pointer inside path to see the dotted circle pointer, click on canvas then start typing.

  • Creating a new document/canvas (to add multiple images to)

    I am totally new to Photoshop Elements (using v.13), with some previous experience in old versions of Photoshop. I am an interior designer and I want to make a design board. Essentially what I am trying to do is create a new, blank document layer and then add images of furniture, rugs, etc. Each element needs to be its own layer so that I can edit each individually. I have no idea how to even begin that on here. New document? Open a blank document? When I go to the layers tab, creating layers is not even an option. Obviously, I need some help. Explain this to me as you would to a child....Thanks!

    jennb21985 wrote:
    Each element needs to be its own layer so that I can edit each individually.
    Open the Editor in Expert tab
    Go to File menu>new>blank file. Enter the dimensions, resolution in px/in, and background. This  "canvas" will be the background layer and will show up as such in the layers palette.
    Now, as far as adding pictures of furniture, rugs, etc., I suggest that you prepare each one so that they are ready to be placed on the canvas. Do the math: how large can each one be? Are they all in portrait or landscape orientation? If not, what will be the best fit? Is the brightness/contrast of each picture more-or-less uniform so that the design board will look nice.
    Crop each picture to specification, and save it to disk.
    Once you have done this, do the following:
    Open the blank file
    Open Picture A, go to Select menu>all, then Edit menu>Copy to place it on the clipboard,
    Go back the blank file, then Edit>Paste. Picture A will be on its own layer. Position it with the move tool, and resize with the corner handles, if needed.
    Do the same with pictures B, C, D, etc.
    As indicated above, in the dialog for the blank file, you need to enter a value for resolution. Ideally, the resolution should be the same as that of the picture files. You can check via Image menu>resize>image size. If the resolution is 72 px/in, enter this in the field for the blank file.
    Feel free to repost if this is not clear.

  • Creating items on Tab canvas

    I am creating text items on a Tab canvas.It allows me to put the items upto certain area only.If I put any item beyond while generating .fmx ,gives me error
    FRM-30041 Position of item places it off of canvas.
    However my canvas size is enough to accomadate.I am encountering this problem only with Tab canvas.With content canvas it is perfectly alright.
    what is the problem and solution?
    Appreciate help.Thanx.
    null

    Thanks randall.It worked.

  • How do I create a gallery wrapped canvas image from my photo?

    I take portrait photo's, what I want to ask is how do I turn them into an image for my website that looks like the photo is wrapped around a canvas frame, I have seen loads of tutorials that create a cube effect, but I want it to look like its on a gallery wrapped canvas.
    I would really appreciate some ones help with this
    simon

    Thank you for your reply John
    To be honest I dont know, I think the latter
    If you view anyones website that sells canvas prints they have the canvas image where you can see 3 sides of the canvas and the photo wrapped around it, i want to create that image with my own photo's in photoshop (if thats possible) I am new to photoshop and dont really know to much at the moment
    simon

Maybe you are looking for

  • HT4352 itunes not showing atv 1 connection

    Itunes doesn't see appletv all of a sudden.  ATV 1

  • Logical font special characters in AWT Choice

    Font FONT=new Font("Dialog",Font.PLAIN,12); String TEXT="re\u0123istr\u0113tiem"; TextArea textarea=new TextArea(); textarea.setFont(FONT); textarea.setText(TEXT); this.add(textarea); Choice choice=new Choice(); choice.setFont(FONT); choice.addItem(T

  • Why does Illustrator CS6 create gradients through clip groups?

    Hi, This may be a stupid question, but I jumped to CS6 from CS3 and am a bit confused. I create graphics for stock imagery and it is important to minize the amount of shapes. I created my first image with CS6 that has several gradients and my file is

  • Immature Java Programmer needs help...

    I do not want to generate html code inside my java code, rather open a html page by referencing it in my java code to see it in the browser. For example, here is my code: package mrpt; import java.io.*; import javax.servlet.*; import javax.servlet.ht

  • XP to iMac on iTunes

    I am on a computer with Windows XP, but have purchased a new iMac computer. How do I transfer all of my songs on iTunes to my new computer?