FixedWidth buttonField cannot Center the text


Hi macdan,.

I think that in such cases it is advisable to extend the scope rather than ButtonField.

Try this CustomButtonField. Hope that it will achieve your problem.

import net.rim.device.api.ui.Field;
import net.rim.device.api.system.Display;
import net.rim.device.api.ui.Font;
import net.rim.device.api.system.Bitmap;
import net.rim.device.api.ui.Graphics;
import net.rim.device.api.ui.XYRect;
import net.rim.device.api.ui.XYPoint;
import net.rim.device.api.system.Characters;

public class CustomButtonField extends Field
{
    private String label;
    private int labelLength;
    private int width;
    private int height;
    private int alignment;
    private XYPoint labelTopLeftPoint;
    private boolean isFocusable;

    /**
     * Margin for the button
     */
    private final static int DEFAULT_LEFT_MARGIN = 1;
    private final static int DEFAULT_RIGHT_MARGIN = 1;
    private final static int DEFAULT_TOP_MARGIN = 4;
    private final static int DEFAULT_BOTTOM_MARGIN = 4;

    /**
     * Padding for the button
     */
    private final static int DEFAULT_LEFT_PADDING = 5;
    private final static int DEFAULT_RIGHT_PADDING = 5;
    private final static int DEFAULT_TOP_PADDING = 4;
    private final static int DEFAULT_BOTTOM_PADDING = 4;

    /**
     * Margins around the text box
     */
    private int leftMargin = DEFAULT_LEFT_MARGIN;
    private int rightMargin = DEFAULT_RIGHT_MARGIN;
    private int topMargin = DEFAULT_TOP_MARGIN;
    private int bottomMargin = DEFAULT_BOTTOM_MARGIN;

    /**
     * Padding around the text box
     */
    private int leftPadding = DEFAULT_LEFT_PADDING;
    private int rightPadding = DEFAULT_RIGHT_PADDING;
    private int topPadding = DEFAULT_TOP_PADDING;
    private int bottomPadding = DEFAULT_BOTTOM_PADDING;

    /**
     * Alignment
     */
     public final static int ALIGNMENT_LEFT = 0x00000001;
     public final static int ALIGNMENT_RIGHT = 0x00000002;
     public final static int ALIGNMENT_TOP = 0x00000004;
     public final static int ALIGNMENT_BOTTOM = 0x00000008;
     public final static int ALIGNMENT_CENTER = 0x00000010;

    public final static int DEFAULT_BACKGROUND_COLOR_NORMAL = 0x00ffffff;
    public final static int DEFAULT_BACKGROUND_COLOR_ON_FOCUS = 0x009c0000;
    private int backgroundColorNormal = DEFAULT_BACKGROUND_COLOR_NORMAL;
    private int backgroundColorOnFocus = DEFAULT_BACKGROUND_COLOR_ON_FOCUS;

   public final static int ALIGNMENT_DEFAULT = ALIGNMENT_LEFT | ALIGNMENT_TOP;

    public CustomButtonField(final String label)
    {
        this(label, 0);
    }

    public CustomButtonField(final String label, int width)
    {
        super();

        this.label = (label == null) ? "" : label;       

        this.isFocusable = true;
        Font font = getFont();

        labelLength = font.getAdvance(this.label);

        this.width = (width != 0) ? width : (labelLength + leftMargin + leftPadding + rightPadding + rightMargin);
        this.height = font.getHeight() + topMargin + topPadding + bottomPadding + bottomMargin;

        labelTopLeftPoint = new XYPoint();

        setAlignment(ALIGNMENT_DEFAULT);
    }

    public void setWidth(int width)
    {
        int displayWidth = Display.getWidth();

        if (width > 0 && width <= displayWidth)
        {
            this.width = width;
            adjustAlignment();
        }
    }    

    public void setWidth(String refStr)
    {
        this.labelLength = getFont().getAdvance(refStr);
        int tempWidth = leftMargin + leftPadding +  labelLength + rightPadding + rightMargin;

        setWidth(tempWidth);
    }

    public void setHeight(int height)
    {
        this.height = height;
    }

    public void setSize(int width, int height)
    {
        setWidth(width);
        setHeight(height);
    }    

    public void setAlignment(int alignment)
    {
        if ((alignment & ALIGNMENT_CENTER) != 0)
        {
            this.alignment = alignment;
        }
        else
        {
            this.alignment = 0;

            if ((alignment & ALIGNMENT_RIGHT) != 0)
            {
                this.alignment |= ALIGNMENT_RIGHT;
            }
            else
            {
                this.alignment |= ALIGNMENT_LEFT;
            }

            // Vertical alignment
            if ((alignment & ALIGNMENT_BOTTOM) != 0)
            {
                this.alignment |= ALIGNMENT_BOTTOM;
            }
            else
            {
                this.alignment |= ALIGNMENT_TOP;
            }
        }
        adjustAlignment();
    }

    private void adjustAlignment()
    {
        int leftBlankSpace = leftMargin + leftPadding;
        int rightBlankSpace = rightPadding + rightMargin;

        int topBlankSpace = topMargin + topPadding;
        int bottomBlankSpace = bottomMargin + bottomPadding;

        if ((alignment & ALIGNMENT_CENTER) != 0)
        {
            int emptySpace = width - (leftBlankSpace + labelLength + rightBlankSpace);

            labelTopLeftPoint.y = topBlankSpace;
            labelTopLeftPoint.x = leftBlankSpace + emptySpace/2;
        }
        else
        {
            // Horizontal alignment
            if ((alignment & ALIGNMENT_LEFT) != 0)
            {
                labelTopLeftPoint.x = leftBlankSpace;
            }
            else if ((alignment & ALIGNMENT_RIGHT) != 0)
            {
                labelTopLeftPoint.x = width - (labelLength + rightBlankSpace);
            }
            labelTopLeftPoint.y = topBlankSpace;
        }
    }

    public String getText()
    {
        return label;
    }

    public int getButtonWidth()
    {
        return width;
    }

    public void setLeftMargin(int leftMargin)
    {
        if (leftMargin >= 0)
        {
            this.width -= this.leftMargin;
            this.leftMargin = leftMargin;
            this.width += this.leftMargin;

            adjustAlignment();
        }
    }

    public void setRightMargin(int rightMargin)
    {
        if (rightMargin >= 0)
        {
            this.width -= this.rightMargin;
            this.rightMargin = rightMargin;
            this.width += this.rightMargin;

            adjustAlignment();
        }
    }

    public void setTopMargin(int topMargin)
    {
        if (topMargin >= 0)
        {
            this.height -= this.topMargin;
            this.topMargin = topMargin;
            this.height += this.topMargin;
            adjustAlignment();
        }
    }

    public void setBottomMargin(int bottomMargin)
    {
        if (bottomMargin >= 0)
        {
            this.height -= this.bottomMargin;
            this.bottomMargin = bottomMargin;
            this.height -= this.bottomMargin;

            adjustAlignment();
        }
    }

    public void setMargin(int topMargin, int rightMargin, int bottomMargin,int leftMargin)
    {
        setLeftMargin(leftMargin);
        setRightMargin(rightMargin);
        setTopMargin(topMargin);
        setBottomMargin(bottomMargin);
    }

    public void setFocusable(boolean isFocusable)
    {
        this.isFocusable = isFocusable;
    }

    public int getPreferredWidth()
    {
        return width;
    }

    public int getPreferredHeight()
    {
        return height;
    }

    protected void layout(int width, int height)
    {
        setExtent(Math.min(getPreferredWidth(), width), Math.min(getPreferredHeight(), height));
    }

    protected void paint(Graphics graphics)
    {
        int w = width - (leftMargin + rightMargin);
        int h = height - (topMargin + bottomMargin);        

        if(isFocus() == false)
        {
            graphics.setColor(backgroundColorNormal);
            graphics.fillRoundRect(leftMargin, topMargin, w, h, 6, 6);
            graphics.setColor(0x00394142);
            graphics.drawRoundRect(leftMargin, topMargin, w, h, 6, 6);
            graphics.drawText(label,  labelTopLeftPoint.x, labelTopLeftPoint.y);
        }
        else
        {
            graphics.setColor(backgroundColorOnFocus);
            graphics.fillRoundRect(leftMargin, topMargin, w, h, 6, 6);
            graphics.drawRoundRect(leftMargin, topMargin, w, h, 6, 6);

            graphics.setColor(0x00ffffff);
            graphics.drawText(label,  labelTopLeftPoint.x, labelTopLeftPoint.y);
        }
    }

    public boolean isFocusable()
    {
        return isFocusable;
    }

    public void getFocusRect(XYRect rect)
    {
        rect.set(leftMargin, topMargin, width - (leftMargin + rightMargin), height - (topMargin + bottomMargin));
    }

    protected void drawFocus(Graphics graphics, boolean on)
    {
        invalidate();
    }

    public boolean keyChar(char key, int status, int time)
    {
        if (key == Characters.ENTER)
        {
            fieldChangeNotify(0);
            return true;
        }

        return false;
    }

    protected boolean navigationClick(int status, int time)
    {
        fieldChangeNotify(0);
        return true;
    }
}

And from your screen main alignment of the button text.

//CustomButtonField button1 = new CustomButtonField("Button1");
CustomButtonField button1 = new CustomButtonField("Button1", Display.getWidth() / 2);
button1.setAlignment(CustomButtonField.ALIGNMENT_CENTER);

Concerning

Bika

Tags: BlackBerry Developers

Similar Questions

  • How to vertically Center the text in its container

    If a button or a piece of text, I don't see any way to center the text you type * vertically * in the container.  I'm not talking in the item box.  I mean just the text element itself.  If I size a text box and start typing in it, I should be able to say centered vertically.  That's what I'm looking for anyway.   Help much appreciated.

    Text items cannot be centered vertically as they are not containers. However, you can fake that a very big little thanks to the row height. But this means that if you have a text that spans two lines it would be very remote however

  • Center the text in the LabelField

    I want to center the text in a label.  The label takes the entire width of the screen, but the text inside it will not focus.

    LabelField lbl = new LabelField ("the centre", LabelField.USE_ALL_WIDTH |) LabelField.FIELD_HCENTER);

    Am I missing something simple massively?

    Thank you.

    Try this:

    LabelField lbl = new LabelField ("the centre", LabelField.USE_ALL_WIDTH |) DrawStyle.HCENTER);

  • When I Center the text, I can't get back to the aligned left for the rest of the text in WordPad.

    * Original title: centering in Word Pad

    I don't know how to Center in Word Pad; However, when I Center the text, I can't get back to the aligned left for the rest of the text.  Everything I typed after that a title is also centered.  If I've left this text, the title goes back to the left margin.  Any info out there?

    Hello

    -Is confined to a specific document?

    This problem may be due to the rule of pointer.

    I suggest you to drag the rule of pointer to the left and see if it helps.

    Keep us informed on the status of the issue.

  • How to center the text in the accordion panel full-width?

    Hello!

    Is it possible to center the text to follow the Accordion widget full width?

    When you expand to fill the screen, the text are fixed and does not follow the title of Center...

    You see what I'm talking about, I've created a page: http://fullwidthissue.BusinessCatalyst.com/index.html

    Please respond if you know what to do, or if it is impossible...

    Thanx

    I could not understand then, here's a copy of my footer that I placed in the upper part is the way that you use it. Take a look at the page and see what you were doing different.

    www.russtice.net/assets/footertest/doodadlemenu.Muse

  • Center the text in the TextField

    Is there a way to center the text in the text field? Especially vertically.

    Text in a TextField is centered vertically by default.
    You can change other charactistics of the alignment of the text in the TextField object through the setAlignment API.

    import javafx.application.Application; import javafx.geometry.Pos;
    import javafx.scene.Scene; import javafx.scene.control.TextField; import javafx.stage.Stage;
    
    public class TextFieldAlignment extends Application {
      public static void main(String[] args) { launch(args); }
      @Override public void start(Stage stage) {
        TextField text = new TextField("Centered."); text.setAlignment(Pos.CENTER);
        stage.setScene(new Scene(text, 200, 300));
        stage.show();
      }
    }
    

    Alignment TextField API is new to JavaFX 2.1 and not included in JavaFX 2.0, so use the last glimpse of JavaFX Developer:
    http://www.Oracle.com/technetwork/Java/JavaFX/downloads/devpreview-1429449.html

  • ORA-07391: sftopn: fopen error, cannot open the text file.

    Hello

    The last 3 days, we get the error in the alert below log.

    [ORA-00600: internal error code, arguments: [kmgs_parameter_update_timeout_1], [27091] [] [] [], [], []]
    ORA-27091: unable to queue I/O
    ORA-27072: IO file error

    I check as the same partners to it in metalink I found permission to check the directory solution. (DOC ID367619.1)
    I got permission from ORACLE_HOME\dbs $ to 777, but still m making the same mistake.

    also I try to recreate spfile so that I try to create pfile first

    create pfile from spfile

    I get the error below.

    ORA-07391: sftopn: fopen error, cannot open the text file.

    ls - lrt sp * in the below output shows $ORACLE_HOME

    -rwxrwxrwx 1 ora10g 3584 20 September dba10 05:42 < SID > spfile .ora

    Help, please.

    Thanks in advance

    user8757749 wrote:
    The output of ls - lrt is in the path $ORACLE_HOME\dbs only

    We also have the database version 10.2.0.4 that the spfile even uses everyday cold backup of the database.

    also, I put the 777 permission to the file.

    OK, I guess there will be corruption of the SPFILE as if edited manually or in any other cases too.

    You have a backup of SPFILE? backup of the file PFILE or?

    then starting using this SPFILE, if any backup then start with PFILE and then create SPFILE from PFILE.

    Otherwise, you can copy the contnets of the parameters of the alert log file initialization and paste in the editor and the instance of starutp.

    These are the options.

  • Try to center the text in a text box

    I just upgraded to InDesign CS2 to CS4. I'm trying to center the text vertically within a text box. I remember in CS2 that there are three different buttons, one that would Center it at the top, one that would Center the text in the middle and one on the bottom.

    If anyone knows where these buttons is gone, it is much appreciated.

    Thank you.

    Ah! There they are... on the control panel (when the frame is selected with the tool collection... rather than having a direct insertion point). They are pretty far to the right. If your screen size is such that not all features to adapt, they can get cut.

  • Is it possible to center the text between any set of verticle lines displayed by the grid?

    I try to be attached to the specific tasks on this background that I use, I turned the grid text. I put the text at specific locations a lot. So it would be a lot easier and faster if I could just automatically center the text between the lines of the grid, rather that manually fiddling with it.

    well commented in this case might get you where you want to go.

    But if you either point frame type or text, it is quite easy to do.

    Turn on snap them to grid from the view menu

    Draw a rectangle to one of the lines of the grid to another (with no fill and no optionsl race)

    then place the text on the rectangle, turn off align it on the grid.

    in the attribute align select on align by object key select the text and the rectangle, click on (with selection) on the rectangle to make the object key (do not hold down the SHIFT key).

    Then in the Align Panel choose horizontal or vertical alignment icon.

    Vertically align the text means that a block of text has close text and even at that it is often subjective if you may need to reposition for a Visual
    accepted balance and sometimes it's true Center horizontal alignment according to the size and utilization of the text.

    Oh Yes after you Center the text you can delete the rectangle.

  • How to center the text in a table with css?

    I wonder if it is possible to center the text and images in a table.
    I've assigned ID MaTable at my table and then text in the table centered but text aligned statement #mytable. What's wrong?

    "Prajnaparamita" wrote in message
    News:ffitur$5A0$1@forums. Macromedia.com...
    > I wonder if it is possible to center the text and images in a table.
    > I assigned ID MaTable at my table and then text in Center
    > table #mytable, but the text is left-aligned. What's wrong?

    Try to make the switch

    #mytable td

    Since this is the table cell that you really want to have this property.

    --
    Patty Ayers | Adobe Community Expert
    www.WebDevBiz.com
    Free articles on the business of Web development
    Web Design contract, quote request form, estimate Worksheet
    --

  • Center the text in the text field in report

    Good evening! Before leaving for the day, I still want to ask you another question.

    I have a relationship with a column of type "text field. The user must be able to enter data and overwrite the values brought fourth by the report query. Subsequently, he (it must have the ability to save information entered into a table. I think that should be possible, right?

    The problem, I could not understand is pretty simple, I think - I want that text to be centered and used entry fields
    <style="text-align: center">
    for the html element attribute option. However, in vain. It is even possible to apply the provision to center the text in a text input field?

    Maybe you have an answer for me. I would be grateful!

    Best regards

    Sebastian

    Hello

    Change your report column below to the attributes of the element

    style="text-align:center;"
    

    BR, Jari

  • 10gr 2-Sybase15-ORA-28545: cannot retrieve the text of the message from NETWORK/NCR

    Hi all

    I am trying to establish connectivity between Oracle 10 g 2 (Win XP Pro 2002) and Sybase ASE 15.0.2 (Sun Solaris 5.9) by using the transparent gateway for Sybase (TG4SYBS), but encountered the following error. I have looked for a solution quite well in all directions, but so far have been quite unlucky. This is my last resort. I don't really know what I'm doing wrong as I followed the steps of installation and configuration correctly. Please note:
    -Oracle transparent gateway software and database are installed in different homes; and,
    -J' created and tested the ODBC DSN connectivity with the Sybase server.

    The only thing that I have real concern about is the version of the Sybase server 64-bit OS; Windows Oracle server is 32-bit. Are going to count this could be the problem?

    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Cannot retrieve the text of the message NETWORK/NCR 65535
    ORA-02063: preceding 2 lines of CSSTAT


    I am enclosing also any of the configuration system below:

    ------------------------------------------------------------------------------

    Database server
    ===============

    V Windows XP Professional 2002 SP2

    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0

    Sybase Adaptive Server ODBC Driver 15.00.00.152


    C:\ > echo %path%
    C:\oracle\product\10.2.0\tg_1\bin; E:\OracleHomes\agent10g\jlib; E:\OracleHomes\ag
    ent10g\bin; E:\OracleHomes\oms10g\bin; E:\OracleHomes\oms10g\jlib; C:\Program Files
    Company \Business Objects\BusinessObjects 6\bin\orb\asp\6.0\bin. C:\Program Fi
    les\Business Objects\BusinessObjects Enterprise 6\bin\orb\bin; C:\Program Files\B
    usiness Objects\BusinessObjects Enterprise 6\bin; C:\sybase\DataAccess\OLEDB\dll;
    C:\sybase\DataAccess\ODBC\dll; C:\sybase\Shared\Sybase Central 4.3; C:\sybase\OCS-
    15_0\lib3p; C:\sybase\OCS-15_0\dll; C:\sybase\OCS-15_0\bin; C:\sybase\JS-12_5\bin; C
    : \sybase\ADO.NET\dll; C:\sybase\ODBC; C:\Program WinRAR; C:\Windows\System32;
    C:\WINDOWS; C:\WINDOWS\System32\Wbem; C:\sybase\DBISQL\bin

    ------------------------------------------------------------------------------

    Sybase server
    =============

    Er1min01 of SunOS 5.9 Generic_122300-11 sun4u sparc SUNW, Sun-Fire-V440

    Adaptive Server Enterprise/15.0.2/EBF 14328, P, Sun_svr4, OS 5.8/ase1502/2486/64-b
    IT/FBO/Thursday 24 May 12:18:26 2007

    ------------------------------------------------------------------------------

    Sybase SQL.ini
    ==============

    [MINSAT]
    Master = TCP, 192.168.1.150, 5002
    Query = TCP, 192.168.1.150, 5002

    ------------------------------------------------------------------------------

    C:\oracle\product\10.2.0\tg_1 > tg4sybs

    Oracle Corporation - WEDNESDAY SEP 23 2009 02:43:29.406

    Heterogeneous Agent Release 10.2.0.1.0 - Production built with
    Driver for SYBASE

    ------------------------------------------------------------------------------

    inittg4sybs.ora
    ===============

    # This is an example of initialization file of the agent that contains the HS settings
    # needed for the transparent gateway for Sybase

    #
    # HS init parameters
    #
    HS_FDS_CONNECT_INFO = MINSAT.csstat
    HS_FDS_TRACE_LEVEL = OFF
    HS_FDS_RECOVERY_ACCOUNT = RECOVERY
    HS_FDS_RECOVERY_PWD = RECOVERY
    #HS_FDS_TRANSACTION_MODEL = READ_ONLY

    #
    # Required for Sybase environment variables
    #
    SYBASE the value = "C:\\sybase".

    ------------------------------------------------------------------------------

    Listener.ora
    ============

    listener.ora # Network Configuration file: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.

    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (= Extproc PROGRAM)
    )
    (SID_DESC =
    (SID_NAME = csstat)
    (ORACLE_HOME = C:\oracle\product\10.2.0\tg_1)
    (PROGRAM = tg4sybs)
    )
    )

    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = FH)(PORT = 1521))
    )
    )

    SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER = OFF

    ------------------------------------------------------------------------------

    tnsnames.ora
    ============

    tnsnames.ora # Network Configuration file: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.

    TEMP =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = FH)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = TEMP)
    )
    )

    csstat =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.123.49)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = csstat)
    )
    (HS = OK)
    )

    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC0))
    )
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    )
    )

    ------------------------------------------------------------------------------

    C:\oracle\product\10.2.0\db_1\BIN > lsnrctl status CSSTAT

    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 23-SEP-2009 02:47
    : 10

    Copyright (c) 1991, 2005, Oracle. All rights reserved.

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=192.168.123.49) (PORT = 152
    ((1)) (CONNECT_DATA = (Server = Dedicated) (service_name = csstat))(HS=OK))
    STATUS of the LISTENER
    ------------------------
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - production
    ction
    Start date 23 - SEP - 2009 01:48:54
    Uptime 0 days 0 h 58 min 16 s
    Draw level off
    Security ON: OS Local Authentication
    SNMP OFF
    Listener parameter File C:\oracle\product\10.2.0\db_1\network\admin\listener.o
    RA
    Listener log file C:\oracle\product\10.2.0\db_1\network\log\listener.log

    Summary of endpoints listening...
    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=FH) (PORT = 1521)))
    Summary of services...
    Service 'OEMREP_XPT' has 1 instance (s).
    'Oemrep' instance, State LOAN, has 1 operation for this service...
    Service 'PLSExtProc' has 1 instance (s).
    Instance of 'PLSExtProc', status UNKNOWN, has 1 operation for this service...
    Service 'TEMPXDB' has 1 instance (s).
    Instance 'temp', State LOAN, has 1 operation for this service...
    Service 'TEMP_XPT' has 1 instance (s).
    Instance 'temp', State LOAN, has 1 operation for this service...
    Service 'csstat' has 1 instance (s).
    Instance of 'csstat', status UNKNOWN, has 1 operation for this service...
    Service 'oemrep' has 1 instance (s).
    'Oemrep' instance, State LOAN, has 1 operation for this service...
    'Temp' service has 1 instance (s).
    Instance 'temp', State LOAN, has 1 operation for this service...
    The command completed successfully

    ------------------------------------------------------------------------------

    C:\oracle\product\10.2.0\db_1\BIN > tnsping CSSTAT

    AMT Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production 23-SEP-2
    009 02:48:12

    Copyright (c) 1997, 2005, Oracle. All rights reserved.

    Use settings files:
    C:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora


    TNSNAMES adapter used to resolve the alias
    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.
    123.49)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = cssta
    (t)) (t)) (HS = OK))
    OK (20 ms)

    ------------------------------------------------------------------------------

    SQL > create database link csstat connect to the 'fw' identified by ' * ' using 'csstat ';

    Database link created.

    ------------------------------------------------------------------------------

    SQL > select * from sys.hs_fds_class;

    FDS_CLASS_NAME
    FDS_CLASS_COMMENTS
    FDS_CLASS_ID

    BITE
    Integrated Test environment
    1

    ------------------------------------------------------------------------------

    SQL > show parameter global_names;

    VALUE OF TYPE NAME
    global_names boolean FALSE

    ------------------------------------------------------------------------------

    SQL > select * from SIMSwap@csstat;
    Select * from SIMSwap@csstat
    *
    ERROR on line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Cannot retrieve the text of the message NETWORK/NCR 65535
    ORA-02063: preceding 2 lines of CSSTAT

    ------------------------------------------------------------------------------

    you use the Oracle Listener database in C:\oracle\product\10.2.0\db_1\ to spawn TG4SYBS installed in a different House: C:\oracle\product\10.2.0\tg_1. This works when you specify the full path in the listener.ora to tg4sybs executable file. The section of SID might look like:
    (SID_DESC =
    (SID_NAME = csstat)
    (ORACLE_HOME = C:\oracle\product\10.2.0\tg_1)
    (PROGRAM = C:\oracle\product\10.2.0\tg_1\tg4sybs)
    )

    Then STOP and START the listener and try again.

  • Center the text with CS5

    Hi people,

    I usually add a cache of 200px white around my photos and put a few lines of text at the bottom of give the image a title and write my name.

    The two lines of text are found on two separate text layers, and I usually just use the move of station tool / Center them "by eye"... and 1/2 time when I flattened the image - converted to the sRGB profile - it uploaded on the site - that are bound to him a forum etc, I discovered WHEN I did a bad job of aligning the text (for example line 2 cannot be centered relative to the line 1 etc.).

    I was wondering if anyone has any workflow that would facilitate this step text alignment? Also, it would be great if it were possible to have leaders focus on the image (IE, so zero is in the middle), with some highlights that represent the ends of text - anyone know if it is possible?

    Thank you very much

    See you soon,.

    Colin of the South

    There are several ways to approach, but using the smallest change to your workflow, select the layers of text and image, press v for the tool move and click the 'align horizontal centres' in the toolbar options at the top of the window.

    Paulo

  • Cannot copy the text, OCR cannot copy for translators, recognization of manual and scanned text, text of manuals, Non - English text product impossible to translate

    Revision of textbooks online, we are facing difficulties following.

    Could you please suggest any solution (purchase of adobe software) to meet the following requirements.

    1. Manual language: failed to copy the text to the translation of Google.
    2. OCR (OCR): impossible to copy the text to translate.

    3 Manual of scanned text recongnization


    Currently, we use Adobe Reader version 11.


    Please address the above query as soon as possible.


    Thanks and greetings

    Suresh

    Adobe/Acrobat Reader cannot perform text recognition; you will need Acrobat for that.

  • Why I can't Center the text in the text boxes?

    Hello, I recently got muse Adobe and I use it to make a site for my father and he bought a domain already so I use Muse to make the site. I'm a tutorial (this is my first time using Muse) and the user centers the text in the text box beside where the text options in the top menu. I do not have a text align the button, so I can't focus or move the text in this way at all, and I can't put spaces to make them look centered either... Is there something I can do to center text? Any help is appreciated.

    Thanks in advance.

    -Chad

    No problem try Ctrl + Alt + 6 for your control panel and Ctrl + T for your text. If I were you I would get yourself on YouTube and YouTube the donkey of muse, there are plenty of good tutorials that you can follow, not to mention adobe TV / tutorials.

    If you need more help or advice, do not hesitate. Its also a good idea to add images when you try to explain a problem. If you succeed in adding your text editor and Control Panel, it should look like this?

    Concerning

    Shane

Maybe you are looking for