Height of Textview Object

Hi,
is it possible to change they height of an textview object?
If it is possible, how?
Regards,
Hubert

Hi
To set the height of TextViewUIElement, put UI element in a transparent container of Grid Layout.
or set the RootUIElementContainer layout to Grid Mode.
Go to properties of the element and can set height and width property under LayOut Data[Grid Data] options
Height and width can be set in pixels or percents.
This can increase the height of Ui Element not the text within it.
Mandeep Virk

Similar Messages

  • Cap 8 - Increasing Slide Height Distorts Slide Objects

    Hi everyone,
    I'm building a responsive project in Cap 8, and need to adjust the slide height on a number of slides to include scrolling. When I break the link and increase the pixel height, all of the slide objects resize larger in height and width. This includes the text in the objects, etc... every aspect of the slide objects resizes.
    I have tried every imaginable combination of object positioning and size options to no avail. I did see a previous posting related to this (Responsive Slide Height Expands all objects on Master Slide Background.), but the developer was only concerned with slide masters. I did test the solution and it works, but using only slide masters is not a solution for me. The type of project I am developing requires discrete buttons/actions on every single slide. In addition, only Smart Shape buttons on masters will work on the filmstrip slides (as I understand it). I need to use image buttons in some cases.
    Is this distortion expected behavior I am going to have to work around? If not, any guidance on how to make my objects stick to their positions and sizes on filmstrip slides when increasing the slide height is greatly appreciated!
    Cheers,
    Robbin

    Hello,
    Really hoping for some insight on this one as it's a showstopper... has anyone seen this behavior? And if so, any solution/workaround?
    Thanks
    Robbin

  • Manually set height of selected objects / smart objects

    This might be a dumb question, considering how many years I've been using Photoshop, but ....
    I was lining up and resizing these smart objects, each on its own layer. Typically I simply layout a guide and drag it but I was wondering if there is a way to set an exact height? When you first drag an object you see the height adjusting as a percentage, but once done you see it at 100% if you click again. Just wondering if I could set an exact height numerically somewhere.

    Thanks. You'd think after all these years I'd have known. Maybe I did at one time (getting old). When there are many ways to do a thing you sometimes 'work around' a gap in knowledge to 'just get it done' and forget to ask the question "is there an easier way".

  • How to find the height of .obj Objects?

    Okay so here is the deal. I'm trying to create a basic 3D world creator. I'm using .obj files to load the objects I can place in the world. If I'm correct when you load a .obj file it places the center of the object at the orign. I'm trying to make it so all the "buildings" I create from .obj files using the ObjectFile loader supplied by sun all lay on the same plane (All the bases are at the same y coordinate). I need to find the height of the Shape3Ds so I can put them all on one level. I keep on running into complications with deprecated methods and By_Reference. Is there a simple way to find the height? Thanks.

    Will a BoundingBox be any help?
    You can get a Bounds object from a Shape3D and use it to initialize a BoundingBox. That `s a simple way to give you the extreme upper and lower points of the BoundingBox from which to calculate the height.
    regards

  • Height of text object / database field

    Hello,
    is it possible to size the height of each field in the detail section to the height of the detail section via formula or setting?
    Regards

    It just works in the Excel export. Still overwrites the next column in the report viewer.
    I've set CanGrow on False and Tight Horizontal for the field on true. KeepTogether for the following fields is on False.
    Why is that so? I need the full line text hidden in my Excel sheet and want to have it fully visible after expanding the column.
    Everything works fine in the Crystal Reports Windows Viewer.

  • Can't get "true" height of text box (text object) in Photoshop CS4-CS6 on Mac

    I'm seeing this behavior in CS4, CS5 and CS6 on the Mac using AppleScript. When I get the height of a text object layer as such:
         tell app "Adobe Photoshop CS4"
              tell current document
                   set textObjectHeight to height of text object of art layer 1
              end tell
         end tell
    The value returned doesn't match the height of the text object. In my mind the text object is the box that's displayed when I click on text in a text layer with the text tool active. The value for the width appears to match, just as I'd expect.
    I'm trying to get the height and width of the text box (text object) so that I can draw a box "underneath" it on another layer so that one can tell where the text box is. Kind of an FPO-type assistant. I'm currently using the position values and the height and width to create a colored box. I realized that the height isn't exactly right.
    Any help would be great appreciated. I've not explored the use of Javascript thus far, but am open to that as a solution.
    Thanks,
    Stephan

    I tried your code and it works just fine here… I used CS5 to try it… Here is a screen shot… I just put a solid fill layer at the bottom so you can see the guides…
    Script editor's event log gives me…
    tell application "Adobe Photoshop CS5"
      activate
      get position of text object of art layer 1 of current document
                        {150.0, 100.0}
      get width of text object of art layer 1 of current document
                        800.0
      get height of text object of art layer 1 of current document
                        449.999969482422
      make at end of current document with properties {name:"fill"} new art layer
                        art layer 2 of document "Untitled-1"
              select current document region {{150.0, 100.0}, {950.0, 100.0}, {950.0, 549.999969482422}, {150.0, 549.999969482422}} without antialiasing
      current application
      fill selection of current document with contents {class:RGB color, red:255, green:0, blue:0} blend mode normal opacity 100 without preserving transparency
      current application
      deselect current document
      current application
    end tell

  • Read the height of a percentHeight based object

    Hi, maybe my question is stupid but I would like to read the
    height of an object created by the code below and added by
    AddChild().
    Here what I do :
    for(Time=StartMinuteOfTheDay; Time<EndMinuteOfTheDay;
    Time+=PeriodOfTheDay) {
    var Can:Canvas = new Canvas();
    Can.width = DayBox.width;
    Can.percentHeight = 50;
    Can.id="Canvas";
    DayBox.addChild(Can);
    Now I would like to access one of the objects created and
    read its height... But I don't know how to access one of the
    children !
    I try Canvas.height or Canvas[1].height and some other
    things, but without success !
    I hope someone could help me !
    Thanks a lot

    Hmm... a few questions
    What does the height property return?
    What is the DayBox's height property?
    At what point are you trying to read the height property? I
    ask this because, Flex will need to run its layout/positioning code
    before it can tell you what the rendered height will be.
    This works, but it is post render.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" initialize="init()">
    <mx:Script>
    <![CDATA[
    import mx.containers.Canvas;
    private function init():void
    for(var i:int=0; i<7; i++)
    trace('adding new canvas');
    var Can:Canvas = new Canvas();
    Can.width = DayBox.width;
    Can.percentHeight = 50;
    Can.width = 40;
    Can.setStyle("backgroundColor","#ffffcc");
    Can.id="Canvas";
    DayBox.addChild(Can);
    private function doitClick():void
    mylabel.text=DayBox.getChildAt(1).height.toString();
    ]]>
    </mx:Script>
    <mx:HBox id="DayBox" height="50%" borderStyle="solid"
    borderColor="#ff0080" left="20" right="20" top="40">
    </mx:HBox>
    <mx:Label id="mylabel" x="81" y="12" text="click
    button"/>
    <mx:Button click="doitClick()" x="20" y="10" label="Do
    it"/>
    </mx:Application>
    Note: I'm setting the width and background color, just so I
    can see them.

  • Object Size and Position values not being retained

    Hi,
           I'm trying to set the size and position of a picture object in a report. This logo, should appear on the top right corner of the report.
    The margins of the report are Left - .79 in, Right - 0.79 in, Top - 0.79 in and Bottom - 0.39 in.
    The size of the picture object should be 1.574 x 0.79 inches.
    I have ensured that File -> Page Setup -> dimensions are in INCHES.
    I right click the logo and select 'Size and Position'.
    I set 'Y' (distance between top of object and top margin) = 0. This is to perfectly align the object with the top margin.
    Now, i set the height of the object = 0.79 inches. Ok the dialog and close.
    The strange thing happening is, when i re-open the size and position dialog, i see that the values i set are not being retained.
    0.79 becomes 0.810
    and
    0 become -0.010.
    What am i doing wrong here? How can i make sure the values i specify in the size and position dialog are  retained.
    Thanks.

    Ensure File | Options | Layout tab has the following UNMARKED!!!!
    Design View
      Guidelines
      Grid
    Preview
      Guidelines
      Grid
    Ensure that "Snap to Grid" is turned off.
    Make your grid size larger (.5 inches for example)
    What is occurring (I suspect) is that your objects are snapping to the grid - thus changing the position and possibly size due to the Snap to Grid being turned on.

  • Object can't be send over to the server.

    Hi to everyone,
    I'm doing a connection between client and server. The client will send image from the platform to the server. The server will then create an folder in the server-side to store the images.
    Thank you for reading. Hope to hear from you soon. Anytime you need clarifation, you could ask. I'll be more willingly to feel you in in more details.
    IMclient.java -- file
    import java.awt.geom.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.image.*;
    import java.awt.event.*;
    import java.net.*;
    import java.io.*;
    import javax.swing.*;
    // ========================== START OF IMAGECLIENT ===========================
    public class IMclient extends JFrame implements ActionListener,ChangeListener
    private JMenuBar mainMenu;
    private JMenuItem open, save, exit, scale;
    private JMenu fileMenu, editMenu;
    private JPanel mainPane, butPane;
    private JFileChooser imagesFile;
    private JButton butSend;
    private JLabel imageLabel; //A display area for a short text string or an image, or both
    JPanel imagePanel;
    JLabel imgPanel = new JLabel();
    BufferedImage buffImage=null;
    BufferedImage bimage;
    ImageStorage dImage=null;
    // JSlider variable
    final int MIN = 0;
    final int MAX = 255;
    final int INIT = MAX/2;
    JSlider redSlider, greenSlider, blueSlider;
    // BufferedImage bimage;
    int r,g,b;
    int w,h;
    int pixels[];
    Image img;
    String fname= "babymin05.gif";
    // Declare all the Input/Output object variables.
    Socket toHost = null;
    //PrintWriter out = null;
    ObjectInputStream in = null;
    ObjectOutputStream objectOut = null;
    Container cpane;
    // ================================ Constructor ===============================
    public IMclient(String host, int port){
    initGUI();
    initSocket(host, port);
    dImage = new ImageStorage(fname);
    updateImage();
    public void updateImage()
    buffImage = dImage.getImage(); //return buffered image
    // img = (Image)bimage; //cast buffered image as images
    displayImage(buffImage); //display the images
    //added from rgbslider
    //JSlider RedSlider,BlueSlider,GreenSlider;
    public void displayImage(BufferedImage buffImage)
    //to create and display an image
    //BufferedImage bimage = rgb.getColor();
    ImageIcon icon = new ImageIcon(buffImage);
    System.out.println(icon);
    imgPanel.setIcon(icon);//to set image visible
    imgPanel.repaint();
    public void stateChanged(ChangeEvent e)
    //return buffered image from ImageStorage class.
    bimage = getColor();
    // displayImage(bimage);
    public BufferedImage getColor()
    //to get the array of pixels of the buffered image
    pixels = new int[dImage.getWidth()*dImage.getHeight()];
    //return the pixels value of bufferedImage
    pixels = dImage.getPixelsArray();
    int [] rgb = new int[3];
    int pix=0;
    for (int i=0 ; i<pixels.length ; i++)
    //to get the r,g,b value from the array
    rgb = dImage.getRGB(pixels);
    r = redSlider.getValue();
    g = greenSlider.getValue();
    b = blueSlider.getValue();
    //to set the pixels to the final value
    pixels = dImage.setRGB(r,g,b);
    dImage.setPixels(pixels);
    //to set the pixels array value and the RGB value
    dImage.setImage(pixels);
    bimage = dImage.getImage();
    //to return the buffered image
    return bimage;
    public JPanel sliderGUI()
    JPanel slidePanel = new JPanel();
    slidePanel.setLayout(new GridLayout(3,2));
    setSlider();
    JLabel redLabel = new JLabel("Red");
    JLabel blueLabel = new JLabel("Blue");
    JLabel greenLabel = new JLabel("Green");
    slidePanel.add(redLabel);
    slidePanel.add(redSlider);
    slidePanel.add(blueLabel);
    slidePanel.add(blueSlider);
    slidePanel.add(greenLabel);
    slidePanel.add(greenSlider);
    return slidePanel;
    // setSlider() consists of the three silders (r,g and b).
    private void setSlider(){
    blueSlider = new JSlider(JSlider.HORIZONTAL, MIN, MAX, INIT);
    blueSlider.setMajorTickSpacing(MAX);
    blueSlider.setMinorTickSpacing(MIN);
    blueSlider.setPaintLabels(true);
    redSlider = new JSlider(JSlider.HORIZONTAL, MIN, MAX, INIT);
    redSlider.setMajorTickSpacing(MAX);
    redSlider.setMinorTickSpacing(MIN);
    redSlider.setPaintLabels(true);
    greenSlider = new JSlider(JSlider.HORIZONTAL, MIN, MAX, INIT);
    greenSlider.setMajorTickSpacing(MAX);
    greenSlider.setMinorTickSpacing(MIN);
    greenSlider.setPaintLabels(true);
    blueSlider.addChangeListener(this);
    redSlider.addChangeListener(this);
    greenSlider.addChangeListener(this);
    public BufferedImage getBufferedImage()
    return bimage;
    // ================================ initGUI() =================================
    public void initGUI()
    cpane = getContentPane();
    cpane.setBackground(Color.white);
    cpane.setLayout(null);
    //to set the close menu on the menubar
    setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    //Open the menu in order to img from any folder
    imagesFile = new JFileChooser();
    imagesFile.addActionListener(this);
    //create an intermedia panel to hold panel and button
    mainMenu = new JMenuBar();
    setJMenuBar(mainMenu);
    setContentPane(cpane);
    fileMenu = new JMenu("File");
    mainMenu.add(fileMenu);
    editMenu = new JMenu("Features");
    mainMenu.add(editMenu);
    /* == JMenuItem(open, save, exit) to be added into the JMenu(fileMenu) == */
    open = new JMenuItem("Open...");
    save = new JMenuItem("Save...");
    exit = new JMenuItem("Exit...");
    scale = new JMenuItem("Scale");
    fileMenu.add(open);
    fileMenu.add(save);
    fileMenu.add(exit);
    editMenu.add(scale);
    /* =================== End of adding JMenuItem() ======================== */
    //add events to the JMenuItem(open, save, exit)
    open.addActionListener(this);
    save.addActionListener(this);
    exit.addActionListener(this);
    scale.addActionListener(this);
    /* =============== Create a button =======================*/
    butSend = new JButton("Send");
    butSend.addActionListener(this);
    JPanel butPane = new JPanel();
    butPane.setLayout(new BorderLayout());
    butPane.add(butSend);
    /* =============== End Create button =======================*/
    /* =============== Create a Image Panel =======================*/
    imgPanel = new JLabel();
    imagePanel= new JPanel(new BorderLayout());
    //imgPanel.setBorder(BorderFactory.createRaisedBevelBorder());
    imagePanel.setBorder(BorderFactory.createRaisedBevelBorder());
    //imageLabel = new JLabel();
    imagePanel.add(imgPanel);
    /* =============== End of Image Panel =======================*/
    // creates a new Panel
    JPanel rgb=sliderGUI();
    cpane.add(rgb);
    cpane.add(imagePanel);
    cpane.add(butPane);
    Insets insets = cpane.getInsets();
    imagePanel.setBounds(50 + insets.left, 20 + insets.top, 300, 236);
    butPane.setBounds(400 + insets.left, 220 + insets.top, 90, 40);
    rgb.setBounds(50 + insets.left, 300 + insets.top, 400, 250);
    //to set the size of the frame
    setSize(1024,768);
    //to set the main pane visible to the user
    setVisible(true);
    // =========================== actionPerformed() ==============================
    public void actionPerformed(ActionEvent e)
    if(e.getSource()==(open))
    imagesFile.showOpenDialog(this); //to have the OPEN dialog box
    if(e.getSource() == imagesFile)
    //to get the file from the exact folder that the user clicks on
    fname = imagesFile.getSelectedFile().getAbsolutePath();
    updateImage();
    if(e.getSource() == (exit))
    System.exit(0); //exit the program
    if(e.getSource() == butSend)
    sendImage(img);
    /* ========================== initSocket ================================
    * Set up the socket connection to the server.
    * 1: connect to the server at <host>, <port>.
    * 2: getOutputStream() will return an output stream for our socket (ie
    the stream is FROM the client TO the server. Since we want to send
    Image objects to the server, we need to create a stream which can
    send object, ie. an ObjectInputStream.
    3: getInputStream will return an input stream for our socket (ie. stream
    is FROM the server TO the client. We use this to create a stream that
    can transmit formatted characters.
    protected void initSocket(String host, int port)
    try{
    toHost = new Socket(host, port); //1
    //always do OUT then do IN
    objectOut = new ObjectOutputStream(toHost.getOutputStream()); //2
    in = new ObjectInputStream(toHost.getInputStream()); //3
    sendObject(bimage);//here got problem ba
    Object input = null;
    try{
    while((input = in.readObject()) != null) //test whether object is null
    Image img = (Image)input;
    sendImage(img);
    }catch (Exception e){}
    toHost.close();
    catch (UnknownHostException e)
    System.err.println("Unknown host in initSocket()");
    catch (IOException e)
    System.err.println("IO error in initSocket()");
    /* =========================== sendObject() ==============================
    * objectOut is the ObjectOutputStream. To send an object across the stream,
    * use the writeObject() method of ObjectOutputStream. The flush() method
    * ensures that data is sent.
    protected void sendObject(Object obj)
    try{
    objectOut.writeObject(obj);
    objectOut.flush();
    }catch(IOException e){
    System.out.println("Sending failed");
    System.exit(1);
    /* =========================== sendImage() ==============================
    * sendImage() creates the requested Image Object, then calls sendObject() to
    * send the image's width, height, and raw data to the server. The server uses
    * these to reconstruct the image, we could use the ImageIO class to read the
    * image file.
    * The getImage() method return immediately, even if the image data has been
    * fully loaded. Once the data is locked, the width and height, values using the
    * getWIdth() and getHeight() methods.
    protected void sendImage(Image img)
    int w,h;
    //get the image from the imagePanel and return the buffered image
    img = dImage.getImage();
    while ((w = img.getWidth(null)) == -1){}
    //System.out.println("Width of image: "+ w);
    while ((h = img.getHeight(null)) == -1){}
    int[] buffer = new int[w * h];
    /* The PixelGrabber class implements an ImageConsumer which can be
    * attached to an Image or ImageProducer object to retrieve a subset
    * of the pixels in that image.
    PixelGrabber px = new PixelGrabber (img,0,0,w,h,buffer,0,w);
    try{
    px.grabPixels();
    }catch (InterruptedException ie){
    System.err.println("Pixels grab failed");
    sendObject(new Integer(w));
    sendObject(new Integer(h));
    sendObject(buffer); //buffer contains all the bytes for the image
    public static void main(String [] args)
    if(args.length != 2)
    System.err.println("Requirement Paramenters: <host>,<port number>");
    System.exit(0);
    String host = args[0];
    int port = Integer.parseInt(args[1]);
    IMclient is = new IMclient(host,port);
    IMserver.java-- file
    import java.awt.*;
    import java.awt.image.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.net.*;
    import java.io.*;
    import java.util.*;
    public class IMserver
    Image images;
    public IMserver()
    try
    start();
    }catch (IOException ioe){
    System.err.println("Start Failed:"+ioe);
    private void start() throws IOException
    ServerSocket ss = new ServerSocket(22222);
    while(true)
    new ImageServerConnection(ss.accept(), images).start();
    public static void main(String[] args)
    IMserver im = new IMserver();
    class ImageServerConnection extends Thread
    //Declare the Input/Output object variable
    Socket clientSocket = null;
    ObjectOutputStream objectOut = null;
    ObjectInputStream inObject = null;
    Image img;
    /* ====================== ImageServerConnection ================================
    *ImageSeverConnection is a subclass of Thread. ImageServerConnection handles a
    * connection with a client. It has methods for initialzing a connection and for
    * receieving objects to clients.
    public ImageServerConnection(Socket client, Image img)
    clientSocket = client;
    this.img = img;
    /* ========================= run() ===========================
    * run() is overrriden from Thread. In this case, we call the
    * newSocket method to initialize the socket and perform initial
    * tasks.
    public void run()
    try{
    newSocket();
    }catch(IOException ioe){
    System.err.println("Socket failed: " + ioe);
    /* ========================= newSocket() ===========================
    * This is where we do all the client connection work
    private void newSocket() throws IOException
    inObject = new ObjectInputStream(clientSocket.getInputStream());
    //objectOut = new ObjectOutputStream(clientSocket.getOutputStream());
    getImage();
    clientSocket.close();
    /* =============================== getImage() =================================
    * getImage() assumes that a connection already exists to the server.
    * First, getImage transmits the image we want to get.
    * Then, we wait to read the 3 objects sent by the server's ObjectOutputStream:
    -- an Integer object, representing the width of the image
    -- an Imteger object, representing the height of the image
    -- an Image object
    * The first two are Integer objects, NOT primitive int types. This
    * is because the ObjectOutputStream can only transmit objects, not primitive
    * types (to transmit primitive types, use a DataOutputStream).
    * 1: Read the three objects sent by the server. Note each object must be cast to
    its appropriate type, since readObject() returns an Object. To get the value
    of an Integer object, we use its intValue() method, which returns the primitve
    int value of the Integer.
    * 2: The buffer object is an array of integers, which represents the image
    data. In other words, buffer is an array of integers in memory which is
    the source of the raw image data. Java has a special MemoryImageSource
    class which is used to construct Images from raw data in memory. So, in
    step 3, we create a MemoryImageSource object using the width, height, and
    buffer objects.
    * 3: We want to create an Image object using the MemoryImageSource object we
    created in step 3. To do this, we use the createImage() method of the
    Component class. Since this client class extends Frame, and Frame is a
    subclass of Component, we can call createImage() directly.
    * 4: Once the Image is created, it will be passed into the folder for storage
    private void getImage()
    Component c=null;
    try{
    objectOut.writeObject(img);
    objectOut.flush();
    int w = ((Integer)inObject.readObject()).intValue();
    int h = ((Integer)inObject.readObject()).intValue();//1
    int [] buffer = (int[])inObject.readObject(); //2
    Image img = c.createImage(new MemoryImageSource(w, h, buffer, 0, w)); //3
    //create an new folder to store those sent images
    File f = new File ("C:\\Sweet_Memory");
    //you can also check whether such folder exists or not.
    if (!f.exists ()){
    f.mkdir ();
    //how to store image into the file????
    }catch(Exception e){
    System.out.println("Server-side: "+ img);
    System.err.println("Receiving failed: "+ e);
    }

    The codes below have error message showing "IO error in initSocket() " which is in the initSocket method and "Sending failed" which is in sendObject method. HOwever i can't figure out why this error message is shown. Can anyone kindly help me out? Did i declare the wrong thing?
    Please clarify with me if i'm not clear, thank a lot. Any help will be appreaciated.
    IMclient.java
    public class IMclient extends JFrame implements ActionListener,ChangeListener
         // Declare all the Input/Output object variables.
        Socket toHost = null;
        ObjectInputStream in = null;
        ObjectOutputStream objectOut = null;
        public void actionPerformed(ActionEvent e)
          if(e.getSource() == butSend)
                sendImage(img);
        protected void initSocket(String host, int port)
            try{
         toHost = new Socket(host, port); //1
         //always do OUT then do IN
         objectOut = new ObjectOutputStream(toHost.getOutputStream()); //2
         in = new ObjectInputStream(toHost.getInputStream()); //3
         sendObject(bimage);
          Object input = null;
          try{
          while((input = in.readObject()) != null) //test whether object is null
                    Image img = (Image)input;
                   sendImage(img);
                  }catch (Exception e){}
         toHost.close();
                  catch (UnknownHostException e)
         System.err.println("Unknown host in initSocket()");
                  catch (IOException e)
         System.err.println("IO error in initSocket()");
    protected void sendObject(Object obj)
             try{
         objectOut.writeObject(obj);
         objectOut.flush();
             }catch(IOException e){
         System.out.println("Sending failed");
                         System.exit(1);
    protected void sendImage(Image img)
             int w,h;
             //get the image from the imagePanel and return the buffered image
             img = dImage.getImage();
              while ((w = img.getWidth(null)) == -1){}
              while ((h = img.getHeight(null)) == -1){}
              int[] buffer = new int[w * h];
               PixelGrabber px = new PixelGrabber (img,0,0,w,h,buffer,0,w);
               try{
                     px.grabPixels();
                }catch (InterruptedException ie){
                      System.err.println("Pixels grab failed");
                sendObject(new Integer(w));
                sendObject(new Integer(h));
                sendObject(buffer); //buffer contains all the bytes for the image
    public static void main(String [] args)
                if(args.length != 2)
                   System.err.println("Requirement Paramenters: <host>,<port number>");
                  System.exit(0);
                String host = args[0];
                int port = Integer.parseInt(args[1]);
                IMclient is = new IMclient(host,port);
    IMserver.java
    public class IMserver
         Image images;
         public IMserver()
               try
         start();
               }catch (IOException ioe){
         System.err.println("Start Failed:"+ioe);
          private void start() throws IOException
                  ServerSocket ss = new ServerSocket(22222);
                  while(true)
         new ImageServerConnection(ss.accept(), images).start();
           public static void main(String[] args)
         IMserver im = new IMserver();
    class ImageServerConnection extends Thread
             //Declare the Input/Output object variable
            Socket clientSocket = null;
            ObjectOutputStream objectOut = null;
            ObjectInputStream inObject = null;
             Image img;
             public ImageServerConnection(Socket client, Image img)
         clientSocket = client;
         this.img = img;
             public void run()
         try{
                newSocket();
         }catch(IOException ioe){
             System.err.println("Socket failed: " + ioe);
              private void newSocket() throws IOException
                     inObject = new ObjectInputStream(clientSocket.getInputStream());
                     getImage();
                      clientSocket.close();
               private void getImage()
                        Component c=null;
         try{
                  objectOut.writeObject(img);
                   objectOut.flush();
                     int w = ((Integer)inObject.readObject()).intValue();
                     int h = ((Integer)inObject.readObject()).intValue();//1
                     int [] buffer = (int[])inObject.readObject(); //2
                     Image img = c.createImage(new MemoryImageSource(w, h, buffer, 0, w)); //3
         }catch(Exception e){
                                System.err.println("Receiving failed: "+ e);
    }

  • How do I get the Play, Stop, Volume controls to appear in my embedded Flash object?

    Hello,
    I want to show .swf or .flv videos on my website--like
    youtube.com. I want to use the standard Flash Player object
    embedded in a web page, however, I cannot seem to find the exact
    params that make the standard controls appear (ie, Play, Stop,
    Pause, Volume, etc). I just want to show a video and have the Play,
    Stop, Pause, Volume controls visible at the bottom. What do I need
    to do to get these controls to appear?
    Here's my current code:
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
    width="800" height="600">
    <param name="movie" value="
    http://www.sitename.com/flash/dt_flash.swf">
    <param name="quality" value="high">
    <embed src="
    http://www.sitename.com/flash/dt_flash.swf"
    quality="high" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash" width="800"
    height="600"></embed>
    </object>
    Any help would be greatly appreciated! :)
    Jason

    Sorry!  It's AS3. A typo on my part but, thanks for answering the post.   This is the correct answer that worked for me. Also,  the answer came from Kglad in the AS3 forum
    Assign your component an instance name (if it doesn't already have one), eg flv and in the frame that contains that component add:
    flv.addEventListener(Event.REMOVED_FROM_STAGE,removedF);
    function removedF(e:Event):void{
    flv.stop();

  • Print Preview of OLE object

    My table has an OLE object.
    In report it is arranged in tabular format (Arrage ->Table -> tabular)
    so that if height of Other field(Let "Description") is grater than height of OLE object then height of that particular row will increased upto the height of Description.
    In report view this works fine.  But in print preview or in print size of OLE remains to original, it is not printing as it is appearing in Report view.
    Please help me in this regard. 

    Hi AshishKumar1200,
    Thanks for posting in MSDN fourm. Which version of Access are you using?
    Since the issue is more relate to the end-user, I'd like to move it to Office 2013 and Office 365 ProPlus - IT Pro General Discussions forum.
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
    Thanks for your understanding.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Targeting the EdgeID object from inside the animation

    I've been working on an animation that displays content pulled in from json files.  The height of the content pulled in is determined and then the Stage height is adjusted to fit the total content. This works well by itself. See http://www.jomariworks.com/edge-json (Only west coast links are live. Project files http://www.jomariworks.com/edge-json/edge-json.zip)
    Now I'm embedding the animation in a page using the oam insert feature, which creates an object with a fixed size.  When the animation adjusts the stage height, the object window size does not change. When the content is longer than the object window, the content scrolls.
    Is there a way I can target the height of the object (id is EdgeID) during the execution of the animation?
    The live version of this can be viewed at  http://reconnectingamerica.org/spacerace/index.php.  The project files at http://www.jomariworks.com/edge-json/edge-json.zip are the same as far as functionality goes.
    Thanks in advance for any help.

    After being unable to discover how to target the height of the object containing the embedded edge animation, I have gone back to having the entire page part of the animation file.
    The final web page is online at http://reconnectingamerica.org/spacerace
    There are big disadvantages of this:
    The full web page has more than 7000 lines of HTML.  Making changes in Edge Animate is a VERY slow process.
    Edge Animate corrupts the HTML in the file. This file contains complex TABLEs.  After making changes in Edge Animate and saving those changes, the TABLE headers are all corrupted (e.g. closing THEAD tags are moved above the head content and several closing TR tags are relocated. For the record, I checked.and the original HTML is syntactically valid.).  To deal with this I removed the tables when editing in Edge Animate and after making changes and publishing the Edge Animate version of the HTML I restored the tables.
    Working separately on the animation and then embedding is clearly the better workflow in this situation. Unfortunately, I needed to be able to resize the embedded animation's object container in the same way I was able to adjust the Stage from inside the animation.  Not being a jQuery wizard I couldn't figure out how to target the height of the animation's parent container.  Still interested in finding out how to do that if anyone can help.
    Message was edited by: jomariworks

  • Resize multiple objects at once

    How do I set the height of mutliple objects at once? I'm creating a form and the I want to ensure all the text fields are the some height.

    OK...I guess my question stems from wondering how you're creating your Text Frames in the first place, and after that, how you copy and resize them.
    When I do this sort of thing, I like to use the Rectangle Frame Tool, then I click in the document and enter the size numerically. Then Option + Drag to create copies. The "Content" parameter for the frames can be assigned now, or later, after you resize them.
    I guess what I don't understand is how you're resizing them? You're doing them individually, and manually, to fit the space, right? If you constrain the resizing to horizontal only, you shouldn't have a problem with the height of the boxes changing.
    I dunno, maybe I'm missing something from your workflow that presents a special case?

  • How do I nest flash objects in HTML

    Here is the code that I entered it gets errors when I check
    the coding....I found our something about Flash Satay from this
    link right here:
    http://alistapart.com/articles/flashsatay......is
    this the most effective way of incorporating Flash objects? If
    someone could assist me I would appreciate it....below is the
    folling code that I am working with.
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
    width="770" height="175">
    <param name="movie"
    value="edited%20photos/homemasthead.swf">
    <param name="quality" value="high">
    <embed src="edited%20photos/homemasthead.swf"
    quality="high" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash" width="770"
    height="175"></embed></object>

    I recomend using this:
    http://code.google.com/p/swfobject/

  • CR for VS2010 Text/Field Object Alignment Issue

    I have a report that displays several rows of data for each record.  I have a mix of text and field objects on each of the rows.  All objects are aligned correctly in the designer but at runtime there are a few objects that seem mis-aligned by about 5 px or so.  It's like the object is vertically aligned to the top.  It doesn't appear that there is a way to set the vertical alignment and i have checked the tops and heights of the objects.  What else could cause this mis-alignment?

    The link to http://screencast.com/t/aCzADERY is an actual design view, not the viewer view. I believe from your previous posts that you are using CR2010 and the ActiveX designer provided with that version of CR. What does the report look like when you actually view the report using the ActiveX viewer of the .NET IDE (e.g., in the .NET IDE, click the "Main Report Preview" tab.?
    Alternatively, once again we go back to the original suggestion that Don made a while back on one of your posts. What does the report look like when viewed in the CR 2011 stand-alone version of Crystal Reports viewer?
    - Ludek

Maybe you are looking for

  • PO acknowledgement for SUS vendor in MM-SUS scenario?

    Dear Experts, We have SRM 7.01 system with ECC 6.0 enhpk 5 in our client landscape. We have configured classic scenario  with MM-SUS in our landscape. Our client wants to have the PO acknowledgement functionality for all SUS vendors. I have checked a

  • Using Axis web service

    Hi, are there anyone who use axis webservice in PI. I'm using .Net web service easily but Axis webservice is problem.When i import. It doesn't show all parameter structure therefore it isn't used in message mapping etc. thank.

  • Improvemen​ts in a working Motion detector (Combine detected particles)

    Hi I've succesfully built and tested a fully functional Motion detector, using the "Image Subtraction" procedure. But in doing so, I'm getting multiple particles(blobs) for a single moving object, possibly due to Image subtraction. By using Dilate, E

  • Classpath to long for NT service.

    I am running Weblogic 6.0 SP1 as a NT service. When I add my utility jar files needed for all of my applications to the classpath and install the NT service, the classpath is too long and the installation of the NT service fails. I thought putting my

  • Upgrade from Luna To Mars - project components are missing

    I upgraded from Luna to Mars. Before upgrading, I exported by projects, upgraded and imported them. Now, in the Navigator, I only see a handful of items, outline view is empty, and so is the palette. I'm new to Startdust and am experimenting, so I ma