.Htmltext label style

I have a label called lblComment.  It is assigned text by setting lblComment.htmlText to a string retrieved Dynamics (that may contain basic html).  I'm happy to see the label using the html code to the string in the Simulator.

Index of Label.htmlText, is a link to documents Adobe describing HTML tags supported by .htmlText (thanks JRab!).  I've assigned text containing tags for formatting HTML (, ) as well as a link.   With the new 0.9.3 simulator (and a browser to work), I revisited it.  At first, I thought that my links were not returned (text).  Much to my surprise, when I clicked on the word for the link, it invokes the browser which led me to the page!

My question is that there is no way to differentiate the text 'link' to the static text.  In the section on the anchor tags, it is said:

"You can also define a: link, a: hover and a: active styles for anchor tags by using style sheets."

I'm OK with a simple:

a: link {color: #0000FF; text-decoration: underline ;} to link stand out.}  Where can I put this?  Use a CSS file?  If so, where to reference it?  And, while we're at it, I can't fool of CSS in my label text?

If CSS is not possible, where I would define it? I'd rather not add fonts around my link data tags.  What I want is something like what the text looks like above where I have link to the subject of Label.htmlText.

Hey, WingFlap,.

It is quite possible that you want to achieve. in as3, there is a class called style sheet that will do exactly what you would do in HTML. It will style your whole .htmlText property as an HTML document's style.

Here is a link to the style sheet class:

http://www.Adobe.com/LiveDocs/Flash/9.0/ActionScriptLangRefV3/Flash/text/stylesheet.html

full of lots of goodies too. also, here's an example of it in action with the properties you requested in your message:

HTMLTextTest.as:

package{   import flash.display.Sprite;  import flash.display.StageAlign;  import flash.display.StageScaleMode;  import flash.text.StyleSheet;

  import qnx.ui.text.Label;

  [SWF(width="1024", height="600", backgroundColor="#CCCCCC", frameRate="30")]  public class HTMLTextTest extends Sprite  {     private var myLabel:Label;        private var myCSS:StyleSheet;

      public function HTMLTextTest()        {         super();

          // support autoOrients            stage.align = StageAlign.TOP_LEFT;            stage.scaleMode = StageScaleMode.NO_SCALE;

          myCSS = new StyleSheet();

          myCSS.setStyle("a:link", { color: '#0000FF', textDecoration: 'underline'});

          myLabel = new Label();

          myLabel.textField.styleSheet = myCSS;            myLabel.htmlText = "here is a link to http://www.google.com/'>Google.";

          myLabel.setSize(300, 52);         myLabel.setPosition(20,20);

          addChild(myLabel);        } }}

its quite intuitive. Just make sure that you apply the style sheet to the internal TextField (textField) object to operate (in bold). hope that things cleared up. Good luck!

Tags: BlackBerry Developers

Similar Questions

  • label style AF.inputtext

    Hello

    I use jdeveloper 11.1.1.6.0 version.

    I want to apply the style to the text label of entry as a make-weight: bold; color: Red;

    <af:inputText label="Label 1" id="it2" />
    

    If I set the style inline attribute value withfont-weight: bold; color: Red;

    then it is not affecting the style of the label

    If I put contentStyle it changes the style of the content in the input text.

    I am able to achieve using the style as a class below

    .BoldLabelStyle af|inputText::label {font-weight:bold;color:Red;}
    
    <af:inputText label="Label 1" id="it2" styleClass="BoldLabel"/>
    
    

    for this I make changes in the Trinity - skins.xml and trinidad-config. XML

    Is there any other way to use inlinestyle, we can provide style for the label to input text

    Hello

    inline style is applied to the DOM element that is external to the component. According to the CSS inheritance, some of the settings on the inline style will affect also the label (for example if you set the background color). However, there is no other way of the direct style on a label as the counting application.

    The advantage of counting is that all styles are in a central location, while your inlinestyle settings would be anywhere in your application. So even if you feel tempted to think the inline style is easier to use, in fact it is not.

    Frank

  • String following line - Style field list button

    Hi all

    Below I have attached two images of liststylebuttonfield,

    1. in the first picture

    True line-'connected to 3 organization... ". ', display line-'connected to 3 organization... ". »

    the remaining letters are present in the background of the image.

    I give the width = totalwidth - lefticon.getwidth ();

    2. in the second picture

    True line-'connected to 3 organization... ". ', display line-"Connected to eveniment 3.

    the remaining letters are hiding.

    I give the width = totalwidth - lefticon.getwidth () - balloonIcon.getwidth () - actionIcon.getwidth ();

    How to give to the next line of width/auto for this problem.

    Below I attach my code for your reference...

    package com.samples.toolkit.ui.component;
    
    import java.util.Calendar;
    
    import net.rim.device.api.system.Bitmap;
    import net.rim.device.api.system.Characters;
    import net.rim.device.api.system.Display;
    import net.rim.device.api.ui.DrawStyle;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.TouchEvent;
    import net.rim.device.api.ui.Touchscreen;
    import net.rim.device.api.ui.Ui;
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.component.LabelField;
    
    public class TestFeedListStyleField extends Field {
        Font myFont = Font.getDefault().derive(Font.SERIF_STYLE,5, Ui.UNITS_pt);
        Font myFont1 = Font.getDefault().derive(Font.BOLD,5, Ui.UNITS_pt);
        public static int DRAWPOSITION_TOP = 0;
        public static int DRAWPOSITION_BOTTOM = 1;
        public static int DRAWPOSITION_MIDDLE = 2;
        public static int DRAWPOSITION_SINGLE = 3;
        private static final int CORNER_RADIUS = 18;
        private static final int HPADDING = Display.getWidth() <= 320 ? 6 : 8;
        private static final int VPADDING = 4;
    
        private static final int COLOR_BACKGROUND = 0xFFFFFF;
        private static final int COLOR_BORDER = 0xBBBBBB;
        private static final int COLOR_BACKGROUND_FOCUS = 0x186DEF;
         public MyLabelField _labelField,_labelField1, _labelField2,_labelField3;
    
         private Bitmap _caret;
         private int _rightOffset;
            private int _leftOffset;
            private int _labelHeight,_labelHeight1,_labelHeight2,_labelHeight3;
            private Bitmap _leftIcon;
            private Bitmap _actionIcon;
            private Bitmap _ballon;
            private int _drawPosition = -1;
            private String _labelField1test;
    
        public TestFeedListStyleField(Bitmap icon,String label, String label1, String lable2,String lable3, Bitmap balloon,Bitmap caret,
                long style) {
             super( USE_ALL_WIDTH | Field.FOCUSABLE );
            _leftIcon = icon;
             _labelField = new MyLabelField(label, style );
             _labelField1 = new MyLabelField(label1, style );
             _labelField2=new  MyLabelField(lable2,style);
            _labelField3=new  MyLabelField(lable3,style);
            _ballon=balloon;
            _actionIcon=caret;
            _labelField1test=label1;
            _labelField.setFont(myFont);
            _labelField1.setFont(myFont);
            _labelField2.setFont(myFont1);
            _labelField3.setFont(myFont);
    //      Imagelistner imglistner = new Imagelistner();
    //      _actionIcon.
        }
    
        public TestFeedListStyleField(String label, String label1, String lable2,Bitmap caret,
                long style) {
             super( USE_ALL_WIDTH | Field.FOCUSABLE );
             _labelField = new MyLabelField(label, style );
             _labelField1 = new MyLabelField(label1, style );
             _labelField2=new  MyLabelField(lable2,style);
            _actionIcon=caret;
            _labelField1test=label1;
            _labelField1.setFont(myFont);
            _labelField2.setFont(myFont);
    //      Imagelistner imglistner = new Imagelistner();
    //      _actionIcon.
        }
    
        public void setDrawPosition( int drawPosition )
        {
            _drawPosition = drawPosition;
        }
         public String toString()
            {
                return _labelField.toString();
            }
    
        protected void layout(int width, int height) {
            if( Touchscreen.isSupported() ) {
            }
    
            _leftOffset = HPADDING;
            if( _leftIcon != null ) {
                _leftOffset += _leftIcon.getWidth() + HPADDING;
            }
    
            _rightOffset = HPADDING;
            if( _caret != null ) {
                _rightOffset += _caret.getWidth() + HPADDING;
            }
            _labelField.layout( width - _leftOffset - _rightOffset, height );
            _labelHeight = _labelField.getHeight();
            int labelWidth = _labelField.getWidth();
    
            _labelField1.layout( width - _leftOffset - _rightOffset, height );
            _labelHeight1 = _labelField1.getHeight();
            int labelWidth1 = _labelField1.getWidth();
    
            _labelField2.layout( width - _leftOffset - _rightOffset, height );
            _labelHeight2 = _labelField2.getHeight();
            int labelWidth2 = _labelField2.getWidth();
    
            _labelField3.layout( width - _leftOffset - labelWidth1 - _rightOffset, height );
            _labelHeight3 = _labelField3.getHeight();
            int labelWidth3 = _labelField3.getWidth();
    
            if( _labelField.isStyle( DrawStyle.HCENTER ) ) {
                _leftOffset = ( width - labelWidth ) / 2;
            } else if ( _labelField.isStyle( DrawStyle.RIGHT ) ) {
                _leftOffset = width - labelWidth - HPADDING - _rightOffset;
            }
    
            if( _labelField1.isStyle( DrawStyle.HCENTER ) ) {
                _leftOffset = ( width - labelWidth1 ) / 2;
            } else if ( _labelField.isStyle( DrawStyle.RIGHT ) ) {
                _leftOffset = width - labelWidth1 - HPADDING - _rightOffset;
            }
            if( _labelField2.isStyle( DrawStyle.HCENTER ) ) {
                _leftOffset = ( width - labelWidth2 ) / 2;
            } else if ( _labelField.isStyle( DrawStyle.RIGHT ) ) {
                _leftOffset = width - labelWidth2 - HPADDING - _rightOffset;
            }
    
            int extraVPaddingNeeded = 0;
    //      if( _labelHeight < _targetHeight ) {
    //          // Make sure that they are at least 1.5 times font height
    //          extraVPaddingNeeded =  ( _targetHeight - _labelHeight ) / 2;//( _targetHeight - _labelHeight ) / 2;
    //      }
            if( _leftIcon != null ) {
                  if( _labelHeight+_labelHeight1 < _leftIcon.getHeight() ) {
                      // Make sure that they are at least 1.5 times font height
                      extraVPaddingNeeded =  _leftIcon.getHeight();//( _targetHeight - _labelHeight ) / 2;
                  }
                  else if( _labelHeight+_labelHeight1 > _leftIcon.getHeight() ){
                    extraVPaddingNeeded =  _labelHeight+_labelHeight1;
                  }
            }
            else{
                if( _labelHeight+_labelHeight1 < _actionIcon.getHeight() ) {
                      // Make sure that they are at least 1.5 times font height
                      extraVPaddingNeeded =  _leftIcon.getHeight();//( _targetHeight - _labelHeight ) / 2;
                  }
                  else if( _labelHeight+_labelHeight1 > _actionIcon.getHeight() ){
                    extraVPaddingNeeded =  _labelHeight+_labelHeight1;
                  }
            }
    
          setExtent( width,  (int) (extraVPaddingNeeded*1.1) );
    
        }
          public void setText( String text )
            {
                _labelField.setText( text );
                updateLayout();
            }
    
        protected void paint(Graphics g) {
    
            // Left Bitmap
            if( _leftIcon != null ) {
                g.drawBitmap( HPADDING, VPADDING, (int) (_leftIcon.getWidth()*2), (int) (_leftIcon.getHeight()*3), _leftIcon, 0, 0 );
            }
    
    //        // Text  ( getHeight() - _labelHeight ) / 2, ( getHeight() - _actionIcon.getHeight() ) / 2,  //(int) (VPADDING*.5)
            try {
                g.pushRegion( _leftOffset, (int) (VPADDING*.5), getWidth() - _leftOffset - _rightOffset, _labelHeight, 0, 0 ); //getWidth() - _leftOffset - _rightOffset
                _labelField.paint( g );
            } finally {
                g.popContext();
            }
    
            try {
                g.pushRegion(  (int) (getWidth() - _leftIcon.getWidth()*.6 ), (int) (VPADDING*.5), getWidth() - _leftOffset - _labelField1.getWidth()- _rightOffset, _labelHeight3, 0, 0 ); //getWidth() - _leftOffset - _rightOffset
                _labelField3.paint( g );
            } finally {
                g.popContext();
            }
    
            try {
                g.pushRegion(_leftOffset, _labelHeight, getWidth() - _leftOffset - _rightOffset, _labelHeight1, 0, 0 ); //getWidth() - _leftOffset - _rightOffset
    //            String test6=_labelField1test.charAt(0)+" ".toString();
    //
    //            if(test6.trim().equals("0")){
    ////                 Dialog.alert("Success....");
    //             }
    //             else{
    //               Dialog.alert("Failure....");
                    _labelField1.paint( g );
    //             }
            } finally {
                g.popContext();
            }
    
            if( _leftIcon != null ) {
                try {
                    g.pushRegion((int) (HPADDING+_leftIcon.getWidth()), (int) (_labelHeight*1.5+_labelHeight1), getWidth() - (_leftIcon.getWidth()*2 ), (int) ((_leftIcon.getHeight()-_labelHeight-_labelHeight1)*.9),5, 5 ); //getWidth() - _leftOffset - _rightOffset
    //              g.pushRegion((int) (HPADDING+_leftIcon.getWidth()*1.1), (int) (_labelHeight*1.5+_labelHeight1), (int) (getWidth() - _leftIcon.getWidth()- _ballon.getWidth()- _actionIcon.getWidth()), (int) ((_leftIcon.getHeight()-_labelHeight-_labelHeight1)*.9), 0, 0 ); //getWidth() - _leftOffset - _rightOffset
                    _labelField2.paint( g );
                } finally {
                    g.popContext();
                }
            }
            // Right (Action) Bitmap
            if( _actionIcon != null ) {
                g.drawBitmap(  (int) (getWidth() - _leftIcon.getWidth()*.6 ), (int) (VPADDING*7.8), _ballon.getWidth(), _ballon.getHeight(), _ballon, 0, 0 );
                g.drawBitmap( getWidth() - HPADDING - _actionIcon.getWidth(), (int) (VPADDING*7), _actionIcon.getWidth(), _actionIcon.getHeight(), _actionIcon, 0, 0 );
            }
    
            // BootomGrid
    //        g.drawBitmap( (int) (HPADDING+_leftIcon.getWidth()*1.3), _labelHeight+_labelHeight1, 0, 0, _actionIcon, _drawPosition, _drawPosition );
    //        g.drawBitmap( (int) (HPADDING+_leftIcon.getWidth()*1.3), _labelHeight+_labelHeight1,  0, 0, _actionIcon, _drawPosition, _drawPosition );
    //        g.drawBitmap( (int) (HPADDING+_leftIcon.getWidth()*1.3), _labelHeight+_labelHeight1,  0, 0, _actionIcon, _drawPosition, _drawPosition );
    //        g.drawBitmap( (int) (HPADDING+_leftIcon.getWidth()*1.3), _labelHeight+_labelHeight1,  0, 0, _actionIcon, _drawPosition, _drawPosition );
    //        g.drawBitmap( (int) (HPADDING+_leftIcon.getWidth()*1.3), _labelHeight+_labelHeight1,  0, 0, _actionIcon, _drawPosition, _drawPosition );
    //
        }
    
        protected void paintBackground( Graphics g )
        {
            if( _drawPosition < 0 ) {
                // it's like a list field, let the default background be drawn
                super.paintBackground( g );
                return;
            }
    
            int oldColour = g.getColor();
    
            int background = g.isDrawingStyleSet( Graphics.DRAWSTYLE_FOCUS ) ? COLOR_BACKGROUND_FOCUS : COLOR_BACKGROUND; //COLOR_BACKGROUND_FOCUS
            try {
                if( _drawPosition == 0 ) {
                    // Top
                    g.setColor( background );
                    g.fillRoundRect( 0, 0, getWidth(), getHeight() + CORNER_RADIUS, CORNER_RADIUS, CORNER_RADIUS );
                    g.setColor( COLOR_BORDER );
                    g.drawRoundRect( 0, 0, getWidth(), getHeight() + CORNER_RADIUS, CORNER_RADIUS, CORNER_RADIUS );
                    g.drawLine( 0, getHeight() - 1, getWidth(), getHeight() - 1 );
                } else if( _drawPosition == 1 ) {
                    // Bottom
                    g.setColor( background );
                    g.fillRoundRect( 0, -CORNER_RADIUS, getWidth(), getHeight() + CORNER_RADIUS, CORNER_RADIUS, CORNER_RADIUS );
                    g.setColor( COLOR_BORDER );
                    g.drawRoundRect( 0, -CORNER_RADIUS, getWidth(), getHeight() + CORNER_RADIUS, CORNER_RADIUS, CORNER_RADIUS );
                } else if( _drawPosition == 2 ) {
                    // Middle
                    g.setColor( background );
                    g.fillRoundRect( 0, -CORNER_RADIUS, getWidth(), getHeight() + 2 * CORNER_RADIUS, CORNER_RADIUS, CORNER_RADIUS );
                    g.setColor( COLOR_BORDER );
                    g.drawRoundRect( 0, -CORNER_RADIUS, getWidth(), getHeight() + 2 * CORNER_RADIUS, CORNER_RADIUS, CORNER_RADIUS );
                    g.drawLine( 0, getHeight() - 1, getWidth(), getHeight() - 1 );
                } else {
                    // Single
                    g.setColor( background );
                    g.fillRoundRect( 0, 0, getWidth(), getHeight(), CORNER_RADIUS, CORNER_RADIUS );
                    g.setColor( COLOR_BORDER );
                    g.drawRoundRect( 0, 0, getWidth(), getHeight(), CORNER_RADIUS, CORNER_RADIUS );
                }
            } finally {
                g.setColor( oldColour );
            }
        }
    
        protected void drawFocus( Graphics g, boolean on )
        {
            if( _drawPosition < 0 ) {
                super.drawFocus( g, on );
            } else {
                boolean oldDrawStyleFocus = g.isDrawingStyleSet( Graphics.DRAWSTYLE_FOCUS );
                try {
                    if( on ) {
                        g.setDrawingStyle( Graphics.DRAWSTYLE_FOCUS, true );
                    }
                    paintBackground( g );
                    paint( g );
                } finally {
                    g.setDrawingStyle( Graphics.DRAWSTYLE_FOCUS, oldDrawStyleFocus );
                }
            }
        }
    
        protected boolean keyChar( char character, int status, int time )
        {
            if( character == Characters.ENTER ) {
                clickButton();
                return true;
            }
            return super.keyChar( character, status, time );
        }
    
        protected boolean navigationClick( int status, int time )
        {
            if (status != 0) clickButton();
            return true;
        }
    
        protected boolean trackwheelClick( int status, int time )
        {
            if (status != 0)
            clickButton();
            return true;
        }
    
        //#ifndef VER_4.1.0 | 4.0.0
            protected boolean invokeAction( int action )
            {
                switch( action ) {
                    case ACTION_INVOKE: {
                        clickButton();
                        return true;
                    }
                }
                return super.invokeAction( action );
            }
        //#endif        
    
        /**
         * A public way to click this button
         */
        public void clickButton()
        {
            fieldChangeNotify( 0 );
        }
    
    //#ifndef VER_4.6.1 | VER_4.6.0 | VER_4.5.0 | VER_4.2.1 | VER_4.2.0
        protected boolean touchEvent( TouchEvent message )
        {
            int x = message.getX( 1 );
            int y = message.getY( 1 );
            if( x < 0 || y < 0 || x > getExtent().width || y > getExtent().height ) {
                // Outside the field
                return false;
            }
            switch( message.getEvent() ) {
    
                case TouchEvent.UNCLICK:
                    clickButton();
                    return true;
            }
            return super.touchEvent( message );
        }
    //#endif 
    
        public void setDirty( boolean dirty ) {}
        public void setMuddy( boolean muddy ) {}
    
         private static class MyLabelField extends LabelField
            {
    
                public MyLabelField( String text, long style )
                {
                    super( text, style );
                }
    
                public void layout( int width, int height )
                {
                    super.layout( width, height );
                }   
    
                public void paint( Graphics g )
                {
                    super.paint( g );
                }
            }
         class Imagelistner implements FieldChangeListener {
                public void fieldChanged(Field field, int context) {
    
                }
    
                }
    

    Thank you...

    Hi all
    I solved this problem... Thank you for watching my problem...
    And I create the component 'Image + String + box' with search (like the single selection) If you need it please send mail...
    Kind regards
    NGO

  • Script label

    This script is for Adobe Indesign CS5 Windows.

    I m trying to modify this script to acept this configuration:

    Dialog Box.JPG

    Distribution of this dialog box and apply only if there is a certain image of selected image. (I think that if there is no object selected, applies it to all picture frame on the page so I Don t want this couse I will use a shortcut to this script and accidents can happen)

    Sorry for the long script.

    LabelGraphics.jsx (modified)

    A JavaScript InDesign CS3

    /*

    @@BUILDINFO @ "LabelGraphics.jsx" 1.1.0 June 6, 2008

    */

    Adds labels for graphics in the active document.

    / * This example script has been changed. The changes are listed here: added option to create a label of Clipboard data.

    drop-down menu added to apply a shade to the frame of the legend. This script can now apply lables to just the selected graphics

    If you have one or more selected images. Otherwise, it will apply the help of labels to all the graphics in the document. The height of the

    Legend frame is determined by the amount of text and the applied paragraph style. the width of the legend image is

    determined by the width of the image, that it is under. Setting the height of the caption in the dialog box has been removed because it is not

    are most needed.

    */

    main();

    //=============================================================\\

    main() {} function

    If (app.documents.length! = 0) {}

    If (. allGraphics.length app.documents.item (0)! = 0) {}

    myDisplayDialog();

    }

    else {}

    Alert ("the Document contains no graphics.");

    }

    }

    else {}

    Alert ("Please open a document and try again.");

    }

    }

    //=============================================================\\

    function myDisplayDialog() {}

    var myLabelWidth = 100;

    var myStyleNames = myGetParagraphStyleNames();

    var mySwatchNames = myGetSwatchNames();

    var myDialog = app.dialogs.add({name:"LabelGraphics"});)

    {with (MyDialog.dialogColumns.Add ())}

    Type of label

    {with (dialogRows.Add ())}

    {with (dialogColumns.Add ())}

    staticTexts.add ({staticLabel: "Label Type", minWidth:myLabelWidth});})

    }

    {with (dialogColumns.Add ())}

    var myLabelTypeDropdown = dropdowns.add ({stringList: ["File name", "File path", "Description of XMP", "XMP author", "paste from Clipboard"], selectedIndex:4});})

    }

    }

    {with (dialogRows.Add ())}

    {with (dialogColumns.Add ())}

    staticTexts.add ({staticLabel: "Label Offset", minWidth:myLabelWidth});})

    }

    {with (dialogColumns.Add ())}

    var myLabelOffsetField = measurementEditboxes.add({editValue:0});)

    }

    }

    Style to apply

    {with (dialogRows.Add ())}

    {with (dialogColumns.Add ())}

    staticTexts.add ({staticLabel: "Label Style", minWidth:myLabelWidth});})

    }

    {with (dialogColumns.Add ())}

    var myLabelStyleDropdown = dropdowns.add ({stringList:myStyleNames, selectedIndex:0});})

    }

    }

    Swatch to apply

    {with (dialogRows.Add ())}

    {with (dialogColumns.Add ())}

    staticTexts.add ({staticLabel: "Apply swatch", minWidth:myLabelWidth});})

    }

    {with (dialogColumns.Add ())}

    var mySwatchDropdown = dropdowns.add ({stringList:mySwatchNames, selectedIndex:0});})

    }

    }

    }

    //=============================================================\\

    Ditto var = myDialog.show ();

    if(myResult == true) {}

    var myLabelType = myLabelTypeDropdown.selectedIndex;

    var myLabelHeight = 24; A generic label height which will be adjusted later

    myPasteFailure = false;

    var myLabelOffset = myLabelOffsetField.editValue;

    var myLabelStyle = myStyleNames [myLabelStyleDropdown.selectedIndex];

    var mySwatch = mySwatchNames [mySwatchDropdown.selectedIndex];

    myDialog.destroy ();

    var myOldXUnits = app.documents.item (0).viewPreferences.horizontalMeasurementUnits;

    var myOldYUnits = app.documents.item (0).viewPreferences.verticalMeasurementUnits;

    App.Documents.Item (0).viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;

    App.Documents.Item (0).viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;

    try {}

    myAddLabels (myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, mySwatch);

    }

    {catch (e)}

    Alert ("Cannot add lables." + e);

    }

    try {}

    resizeOverset();

    }

    {catch (e)}

    Alert ("Unable to correct the text in excess." + e);

    }

    If (myPasteFailure == true) {}

    Alert ("unable to paste from the Clipboard.");

    }

    App.Documents.Item (0).viewPreferences.horizontalMeasurementUnits = myOldXUnits;

    App.Documents.Item (0).viewPreferences.verticalMeasurementUnits = myOldYUnits;

    }

    else {}

    myDialog.destroy ();

    }

    }

    //=============================================================\\

    function myAddLabels (myLabelType, myLabelHeight, myLabelOffset, myLabelStyleName, mySwatchName) {}

    myDocument var = app.documents.item (0);

    myStoriesArray = new Array();

    If (app.selection.length == 0) / / if nothing is selected apply legend for all the graphics of the document

    {

    var myConfirmation = confirm ("Add captions to all images in the document?", false,"LabelGraphics.jsx" ');

    If (myConfirmation is true)

    {

    myGraphics = myDocument.allGraphics var;

    }

    }

    on the other

    {/ / If the graphics are selected, just add captions to the selected items, as long as they are rectangles (picture frames)}

    var myConfirmation = true;

    var mySelections = app.selection;

    myGraphics = new Array();

    for (i = 0; i < mySelections.length; i ++) {}

    If (mySelections [i] == "[" Rectangle object]) {//Check to make sure that the selection includes only rectangles}

    myGraphics.push(mySelections[i].allGraphics[0]);

    }

    else {}

    Alert ("other than the graphics objects have been selected!");

    Nothing happens if you do not select at least a chart

    }

    }

    }

    myLabelStyle = myDocument.paragraphStyles.item (myLabelStyleName);

    mySwatch = myDocument.swatches.item (mySwatchName);

    If (myConfirmation == true) {}

    for (var myCounter = 0; myCounter < myGraphics.length; myCounter ++) {}

    try {}

    myAddLabel (myDocument myGraphics [myCounter], myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, mySwatch, myStoriesArray);

    }

    catch (e) {};

    }

    }

    }

    //=============================================================\\

    function myAddLabel (myDocument, myGraphic, myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, mySwatch, myStoriesArray) {}

    var myLabel;

    myLink var = myGraphic.itemLink;

    var myPasteFromClipboard = false;

    Create the layer of the label if it does not already exist.

    var myLabelLayer = myDocument.layers.item ("labels");

    try {}

    myLabelLayer.name;

    }

    {} catch (MonErreur)

    myLabelLayer = myDocument.layers.add({name:"labels"});)

    }

    Label type defines the text that goes into the label.

    {Switch (myLabelType)}

    File name

    case 0:

    myLabel = myLink.name;

    break;

    Path of the file

    case 1:

    myLabel = myLink.filePath;

    break;

    XMP description

    case 2:

    try {}

    myLabel = myLink.linkXmp.description;

    }

    {catch (MyError)}

    myLabel = "No description available.";

    }

    break;

    XMP author

    case 3:

    try {}

    myLabel = myLink.linkXmp.author

    }

    {catch (MyError)}

    myLabel = "No author available.";

    }

    break;

    Paste from the Clipboard

    case 4:

    try {}

    myPasteFromClipboard = true;

    }

    {catch (MyError)}

    myLabel = "No data on the Clipboard.";

    }

    break;

    }

    myFrame var = myGraphic.parent;

    myX1 = myFrame.geometricBounds [1];

    myY1 = myFrame.geometricBounds [2] + myLabelOffset;

    myX2 = myFrame.geometricBounds [3];

    myY2 = myY1 + myLabelHeight;

    If (myPasteFromClipboard is true)

    {

    try {}

    var myTextFrame = myFrame.parent.textFrames.add (myLabelLayer, defined, undefined, {geometricBounds: [myY1, myX1, myY2, myX2]});

    myTextFrame.insertionPoints.item (0) .select ();

    App.Paste ();

    }

    {catch (e)}

    myTextFrame.remove ();

    myPasteFailure = true;

    }

    }

    else {}

    var myTextFrame = myFrame.parent.textFrames.add (myLabelLayer, defined, undefined, {geometricBounds: [myY1, myX1, myY2, myX2], contents: myLabel});

    }

    myTextFrame.textFramePreferences.firstBaselineOffset = FirstBaseline.leadingOffset;

    myTextFrame.paragraphs.item (0) .appliedParagraphStyle = myLabelStyle;

    myTextFrame.fillColor = mySwatch;

    myFrameParentStory = myTextFrame.parentStory;

    myStoriesArray.push (myFrameParentStory);

    }

    //=============================================================\\

    function myGetParagraphStyleNames() {}

    var myStyleNames = app.documents.item (0).paragraphStyles.everyItem () .name;

    Return myStyleNames;

    }

    function myGetSwatchNames() {}

    var mySwatchNames = app.documents.item (0).swatches.everyItem () .name;

    Return mySwatchNames;

    }

    function resizeOverset() {}

    for (var j = myStoriesArray.length - 1; j > = 0; j-) {}

    myLastFrame = myStoriesArray [j] .texts [0] .parentTextFrames [myStoriesArray [j] .texts [0].parentTextFrames.l its - 1];

    myNewY2 = myLastFrame.geometricBounds [3]; Retrieves the width of the text block before doing fit()

    myLastFrame.fit (FitOptions.FRAME_TO_CONTENT);

    myNewY1 = myLastFrame.geometricBounds [1];

    myNewX1 = myLastFrame.geometricBounds [2];

    myNewX2 = myLastFrame.geometricBounds [0];

    myLastFrame.geometricBounds = [myNewY1, myNewX2, myNewX1, myNewY2]; reset the front wide fit() ran

    }

    }

    Hello

    Added runWithoutDialog() - permanent function fixed inside:

    //LabelGraphics.jsx (Modified)
    //An InDesign CS5 JavaScript
    /*
    @@@BUILDINFO@@@ "LabelGraphics.jsx" 1-Dec-2014
    */
    //Adds labels to the graphics in the active document.
    /* User interaction switched off
      see settings inside runWithoutDialog() function
      */
    main();
    //=============================================================\\
    function main(){
      myStoriesArray = new Array();
      if(app.documents.length != 0){
      if(app.selection[0].allGraphics.length != 0){
      runWithoutDialog(); // myDisplayDialog();
      }
      else{
      alert("Select some frame with graphic");
      }
      }
      else{
      alert("Please open a document and try again.");
      }
      }
    //=============================================================\\
    function runWithoutDialog(){
      var myLabelWidth = 100;
      var myStyleNames = myGetParagraphStyleNames();
      var mySwatchNames = myGetSwatchNames();
      var myLabelType = 4; // paste from clipboard
      var myLabelHeight = 24; // A generic label height that will be adjusted later
      myPasteFailure = false;
      var myLabelOffset = 0;
      var myLabelStyle = myStyleNames[0];
      var mySwatch = mySwatchNames[0];
      var myOldXUnits = app.documents.item(0).viewPreferences.horizontalMeasurementUnits;
      var myOldYUnits = app.documents.item(0).viewPreferences.verticalMeasurementUnits;
      app.documents.item(0).viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
      app.documents.item(0).viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
    
      try{
      myAddLabels(myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, mySwatch);
      }
      catch(e){
      alert("Unable to add lables. " + e);
      }
    
      try{
      resizeOverset() ;
      }
      catch(e){
      alert("Unable to correct overset text. " + e);
      }
    
      if (myPasteFailure == true){
      alert("Unable to paste from clipboard.");
      }
      app.documents.item(0).viewPreferences.horizontalMeasurementUnits = myOldXUnits;
      app.documents.item(0).viewPreferences.verticalMeasurementUnits = myOldYUnits;
      }
    //=============================================================\\
    function myDisplayDialog(){
      var myLabelWidth = 100;
      var myStyleNames = myGetParagraphStyleNames();
      var mySwatchNames = myGetSwatchNames();
      var myDialog = app.dialogs.add({name:"LabelGraphics"});
      with(myDialog.dialogColumns.add()){
      //Label type
      with(dialogRows.add()){
      with(dialogColumns.add()){
      staticTexts.add({staticLabel:"Label Type", minWidth:myLabelWidth});
      }
      with(dialogColumns.add()){
      var myLabelTypeDropdown = dropdowns.add({stringList:["File name", "File path", "XMP description", "XMP author","Paste from clipboard"], selectedIndex:4});
      }
      }
      with(dialogRows.add()){
      with(dialogColumns.add()){
      staticTexts.add({staticLabel:"Label Offset", minWidth:myLabelWidth});
      }
      with(dialogColumns.add()){
      var myLabelOffsetField = measurementEditboxes.add({editValue:0});
      }
      }
      //Style to apply
      with(dialogRows.add()){
      with(dialogColumns.add()){
      staticTexts.add({staticLabel:"Label Style", minWidth:myLabelWidth});
      }
      with(dialogColumns.add()){
      var myLabelStyleDropdown = dropdowns.add({stringList:myStyleNames, selectedIndex:0});
      }
      }
      //Swatch to apply
      with(dialogRows.add()){
      with(dialogColumns.add()){
      staticTexts.add({staticLabel:"Apply swatch", minWidth:myLabelWidth});
      }
      with(dialogColumns.add()){
      var mySwatchDropdown = dropdowns.add({stringList:mySwatchNames, selectedIndex:0});
      }
      }
      }
      //=============================================================\\
      var myResult = myDialog.show();
      if(myResult == true){
      var myLabelType = myLabelTypeDropdown.selectedIndex;
      var myLabelHeight = 24; // A generic label height that will be adjusted later
      myPasteFailure = false;
      var myLabelOffset = myLabelOffsetField.editValue;
      var myLabelStyle = myStyleNames[myLabelStyleDropdown.selectedIndex];
      var mySwatch = mySwatchNames[mySwatchDropdown.selectedIndex];
      myDialog.destroy();
      var myOldXUnits = app.documents.item(0).viewPreferences.horizontalMeasurementUnits;
      var myOldYUnits = app.documents.item(0).viewPreferences.verticalMeasurementUnits;
      app.documents.item(0).viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
      app.documents.item(0).viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
    
      try{
      myAddLabels(myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, mySwatch);
      }
      catch(e){
      alert("Unable to add lables. " + e);
      }
    
      try{
      resizeOverset() ;
      }
      catch(e){
      alert("Unable to correct overset text. " + e);
      }
    
      if (myPasteFailure == true){
      alert("Unable to paste from clipboard.");
      }
      app.documents.item(0).viewPreferences.horizontalMeasurementUnits = myOldXUnits;
      app.documents.item(0).viewPreferences.verticalMeasurementUnits = myOldYUnits;
      }
      else{
      myDialog.destroy();
      }
    }
    //=============================================================\\
    function myAddLabels(myLabelType, myLabelHeight, myLabelOffset, myLabelStyleName, mySwatchName){
      var myDocument = app.documents.item(0);
    
      if (app.selection.length == 0) // If nothing is selected apply caption to all graphics in the document
      {
      var myConfirmation = false; // confirm("Add captions to all images in the document?", false, "LabelGraphics.jsx" );
      if (myConfirmation == true)
      {
      var myGraphics = myDocument.allGraphics;
      }
      }
      else
      { // If graphics are selected, just add captions to the selected items, as long as they are rectangles(image frames)
      var myConfirmation = true;
      var mySelections = app.selection;
      myGraphics = new Array();
    
      for(i = 0; i < mySelections.length; i++){
      if(mySelections[i] == "[object Rectangle]"){  //Check to make sure selection only includes rectangles
      myGraphics.push(mySelections[i].allGraphics[0]);
      }
      else{
      //alert("Objects other than graphics were selected!");
      //Nothing happens if you don't select at least one graphic
      }
      }
      }
    
      myLabelStyle = myDocument.paragraphStyles.item(myLabelStyleName);
      mySwatch = myDocument.swatches.item(mySwatchName);
    
      if (myConfirmation == true){
      for(var myCounter = 0; myCounter < myGraphics.length; myCounter++){
      try{
      myAddLabel(myDocument, myGraphics[myCounter], myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, mySwatch, myStoriesArray);
      }
      catch(e){};
      }
      }
      }
    //=============================================================\\
    function myAddLabel(myDocument, myGraphic, myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, mySwatch, myStoriesArray){
      var myLabel;
      var myLink = myGraphic.itemLink;
      var myPasteFromClipboard = false;
      //Create the label layer if it does not already exist.
      var myLabelLayer = myDocument.layers.item("labels");
      try{
      myLabelLayer.name;
      }
      catch (myError){
      myLabelLayer = myDocument.layers.add({name:"labels"});
      }
      //Label type defines the text that goes in the label.
      switch(myLabelType){
      //File name
      case 0:
      myLabel = myLink.name;
      break;
      //File path
      case 1:
      myLabel = myLink.filePath;
      break;
      //XMP description
      case 2:
      try{
      myLabel = myLink.linkXmp.description;
      }
      catch(myError){
      myLabel = "No description available.";
      }
      break;
      //XMP author
      case 3:
      try{
      myLabel = myLink.linkXmp.author
      }
      catch(myError){
      myLabel = "No author available.";
      }
      break;
      //Paste from the clipboard
      case 4:
      try{
      myPasteFromClipboard = true;
      }
      catch(myError){
      myLabel = "No clipboard data available.";
      }
      break;
      }
    
      var myFrame = myGraphic.parent;
      myX1 = myFrame.geometricBounds[1];
      myY1 = myFrame.geometricBounds[2] + myLabelOffset;
      myX2 = myFrame.geometricBounds[3];
      myY2 = myY1 + myLabelHeight;
    
      if (myPasteFromClipboard ==true)
      {
      try{
      var myTextFrame = myFrame.parent.textFrames.add(myLabelLayer, undefined, undefined,{geometricBounds:[myY1, myX1, myY2, myX2]});
      myTextFrame.insertionPoints.item(0).select();
      app.paste();
      }
      catch(e){
      myTextFrame.remove();
      myPasteFailure = true;
      }
      }
      else{
      var myTextFrame = myFrame.parent.textFrames.add(myLabelLayer, undefined, undefined,{geometricBounds:[myY1, myX1, myY2, myX2], contents:myLabel});
      }
    
      myTextFrame.textFramePreferences.firstBaselineOffset = FirstBaseline.leadingOffset;
      myTextFrame.paragraphs.item(0).appliedParagraphStyle = myLabelStyle;
    
      myTextFrame.fillColor = mySwatch;
      myFrameParentStory = myTextFrame.parentStory;
      myStoriesArray.push(myFrameParentStory);
    }
    //=============================================================\\
    function myGetParagraphStyleNames(){
      var myStyleNames = app.documents.item(0).paragraphStyles.everyItem().name;
      return myStyleNames;
      }
    function myGetSwatchNames(){
      var mySwatchNames = app.documents.item(0).swatches.everyItem().name;
      return mySwatchNames;
      }
    function resizeOverset() {
      for (var j = myStoriesArray.length - 1; j >= 0; j--) {
      myLastFrame = myStoriesArray[j].texts[0].parentTextFrames[myStoriesArray[j].texts[0].parentTextFrames.length - 1];
      myNewY2 = myLastFrame.geometricBounds[3]; //get the width of the text frame before doing fit()
      myLastFrame.fit(FitOptions.FRAME_TO_CONTENT);
      myNewY1 = myLastFrame.geometricBounds[1];
      myNewX1 = myLastFrame.geometricBounds[2];
      myNewX2 = myLastFrame.geometricBounds[0];
      myLastFrame.geometricBounds = [myNewX1, myNewY1, myNewX2, myNewY2]; // reset the width to before fit() was ran
      }
      }
    
  • FXML and style sheets

    FXML another question I'm afraid.

    The FXML [url http://download.oracle.com/javafx/2.0/fxml_get_started/jfxpub-fxml_get_started.htm] guide shows how we can define a style directly in the FXML, but anyone know if it is possible to define a style on a node class in FXML which is defined in a style sheet? In the code, this would be through:
    myLabel.styleClass().add("myLabelStyle")
    In FXML, I tried the following options (each fails in different ways):
    <Label text="My Label" style="myLabelStyle"/> 
    <Label text="My Label" styleClass="myLabelStyle"/>
    <Label text="My Label" fx:style="myLabelStyle"/>
    <Label text="My Label" fx:styleClass="myLabelStyle"/>
    Better that I came up with this day consists of defining the 'id' of the node, and then use the id selector "#" in the style sheet. It works but it is clumsy and if I have a fx:id for mapping to the controller I need to put both that is painful:
    <Label text="My Label" fx:id="myLabel" id="myLabel"/>
    Anyone got the best options?

    See you soon,.
    zonski

    Hello

    Here is a concrete example of what you wish to achieve.

    
    

    The fx:id is here also because this is necessary for the label stored in the right place in the controller. For style, I use the style class.

    .my-label {
       -fx-text-fill: green;
    }
    

    Michael

    Published by: MiPa on 04.09.2011 23:13

    Published by: MiPa on 04.09.2011 23:17

  • Change the size of the text in a label symbol

    FW CS4 - Mac

    Question in two parts:

    1 I barely started using the excuse today so many Fireworks which is probably a simple question but I can't find a range of dialogue of type style in Fireworks - I have implemented a couple of character styles and am changing the size of the type on the label (option Mac button) I just placed the common library - I chose the type in the section "label" "Symbol properties" Panel but it does not seem to change the font or point size. The type of label style is editable?

    2. When you arrive at this in InDesign, it's quite different! Can anyone recommend a training video that uses one through the process of designing a site in FW and then "export" (if that's what you're doing) to DW CS4? I hope it's worth persevering with FW and not only go back to InDesign or Illustrator to produce visual design, but worry when I saw a video earlier which stated: "the current best practices for web design essentially exclude this option to export as a viable method to create a Web site, but exporting HTML and Images is incredibly valuable in a prototyping perspective...". »

    Thank you very much.

    If you simply click on the button in the properties panel there is an entry for the button label box. But click the button twice to get the button Edit window, and then select the text object, and you should have the elements of normal text object in the properties panel. Since I'm on Windows, the font name was empty in the drop-down list box, but I could click it to select one of my installed fonts.

    If you press the button, you have the properties of the button. You must enter the lower level when you change how the button is set up to get the individual items.

  • Problems of paragraph CS4 styles

    I had weird problems with paragraph styles in InDesign CS4, I've not had in CS2. The first weird problem that happened in a class project where somehow a style is stuck in the head of the program, so to speak, and any model, I try to apply by default to that stuck. It still occurs in that particular file, no matter what I try. The "blocked" style is actually not one of the styles that I ended by definition, so it must have been a point I tried to a certain point and then discarded. I tried to remove completely all the styles and start over, I tried to 'Break link to Style' before then trying to apply one of my styles... I always get stuck style.

    Then, I experiment me in a test document, with styles of work the way they are supposed to have SOME success and ran across another small problem: when I select a number of paragraphs to apply a numbered list, the numbers appear as they should. Then I click on the icon of the new style at the bottom of the styles palette to create a style based on that and the style label 'Style of paragraph 1' appears in the palette. As soon as I click on this style to open dialogue to rename it, all the numbers change to '1 '. And then if I try to apply the style to another series of selected paragraphs, they all are numbered '1' also. It works this way any numbering system, I use... all 'A' or 'I' or other.

    I already tried to uninstall and reinstall InDesign without result. I also tried to reset the InDesign preferences. I am unfortunately the glitchy things with Photoshop CS4 also experience. I have a fairly new iMac 24 "2.8 GHZ Intel Core 2 Duo with 4 G of Ram and running OSX 10.5.6. I bought the software supplied with the Design Premium Suite.

    The first problem is probably caused by your having a character applied to the text style. This can simplify the application of really confusing paragraph styles. Try now Option and shift keys when you click on the name of the paragraph style.

    The numbering problem is caused by your expects too much of a unique style. You have the style defined to start numbering at 1 instead of continuing from the previous. You can get with a unique on the latter if you never want to restart page numbering in a second list. But if you must restart a list then you will need at least two, one to start the numbering and the other to continue.

    There was a numbering of discussions here on these two topics.

    Dave

  • MapViewer display labels upside

    I have a basic map of measured lines which display a label (the number of routes) for each line when the map is rendered. My problem is the following:

    Sometimes the number of routing is displayed right at the top, and sometimes appears backwards. I watched this in MapBuilder, and it's the same way (sometimes right to the top, sometimes upside down). Anyone know how I can control it so that the labels are always right side up? Thank you.

    It seems to be related with the parameter 'sticky', forcing the label be returned even if there is a conflict. It will be considered.
    Try to false, the parameter "sitcky" but in this case, you can't get all the labels, as if there is a conflict of positions some labels are ignored.
    Another option is to use a marker as a label style, and in this case, you can get the text of the label inside the brand.

  • How to change the (name) font, size, color or highlighting - on a basis of character or a Word?

    It is in fact on the CAP Thunderbird, Lightning. It applies to all instances of the use of text in lightning calendar.

    I know about the preferences and settings for Thunderbird and a few parameters that are particularly well relate to the lightning.

    Y at - there no way for the change of character, Word, sentence and label styles based on need in lightning?
    If there is, I really need to know.

    (Ex: tool 'Text' or 'Formatting' bar in any word processor or text editor, type "Formatting" tool bar of Thunderbird itself.)

    THX, Jim

    I don't think that lighting has any capacity for anything other than plain text. None of the mechanisms of transfer of calendar data that I know seem to be able to manage marks upwards in the text, so even that if lightning has supported formatting, it seems that it could be local, since it would have no way of transmission brand to other calendars.

  • Add onTriggered to c ++ created ActionSet

    In the ActionSet documentation, it shows 2 ActionSets for an image

    ImageView {
        imageSource: "john.png"
        contextActions: [
            ActionSet {
                title: "Email"
                subtitle: "From: John Doe"
                ActionItem {title: "Reply"}
                ActionItem {title: "Forward"}
            },
            ActionSet {
                title: "Sender"
                ActionItem {title: "Call"}
                ActionItem {title: "Send SMS"}
            }
        ]
    }
    

    But it does not specify whether or not you can make an active set and disable the other.  Future feature?

    When you create an ActionSet in c ++, it doesn't seem like there is a way to add the function OnTriggered

    ImageView* imageView = ImageView::create("john.png");
    ActionSet* actionSet = ActionSet::create()
               .title("Email")
               .subtitle("From: John Doe")
               .add(ActionItem::create().title("Reply"))
               .add(ActionItem::create().title("Forward"));
    imageView->addActionSet(actionSet);
    

    Is it possible to add "onTriggered"?

    Or, is there a way to determine what ActionItem has been selected?

    It is a future feature and has been for awhile now.

    Simply add your onTriggered to the ActionItem...

    ActionSet::create()
        .title(tr("Label style"))
        .subtitle(tr("Select an action."))
        .add(ActionItem::create()
                .onTriggered(this, SLOT(onMove()))
                .image(QUrl("asset:///images/actions/label_move.png"))
                .title(tr("Move")))
    
  • EditField length...

    Hello

    How can I set the maximum length of an editfield?

    Check this constructor of EditField. You can set Max Number of "charas".

    EditField (Label style Asstring , String initialValue, maxNumChars int, long)
    Built a smaller object of EditField tagged content original and distinctive style.

  • setTextFormat() more than once on the same channel?

    I try in vain to attribute a textFormat to two different parts of the same chain, but the second time, it does not record and remains the default text format. the two styles (regular and "BOLD") of the police are incorporated.

    //Create Text Field
    private function createAboutWindowTextField():TextField
        {
        var aboutWindowFont:Font = new AboutWindowFont();
    
        var regularFormat:TextFormat = new TextFormat();
        var boldFormat:TextFormat = new TextFormat();
    
        regularFormat.size = boldFormat.size = 12;
        regularFormat.font = boldFormat.font = aboutWindowFont.fontName;
        regularFormat.align = boldFormat.align = TextFormatAlign.CENTER;
        boldFormat.bold = true;
    
        var result:TextField = new TextField();
        result.antiAliasType = AntiAliasType.ADVANCED;
        result.autoSize = TextFieldAutoSize.LEFT;
        result.defaultTextFormat = regularFormat;
        result.embedFonts = true;
        result.multiline = true;
        result.selectable = false;
        result.type = TextFieldType.DYNAMIC;
    
        result.text =   "First Header\n" +
                        "Version 1.0\n" +
                        "Copyright © 2011\n\n" +
    
                        "Second Header:\n" +
                        "Other info";                                                       
    
        result.setTextFormat(boldFormat, result.text.indexOf("First Header"), ("First Header").length);
        result.setTextFormat(boldFormat, result.text.indexOf("Second Header:"), ("Second Header:").length);
    
        return result;
        }
    

    the code above should result in the two "first header" and "second header:" become "BOLD", but only "first header" will be put in bold while "second header:" seems to be simply ignored. What is the problem?

    I was told that it would be easier to use the style sheet / HTMLText, but I don't and I don't know if they said it is not possible to apply multiple instances of the same textFormat to a textField without using the HTMLText and style sheet, I'd find ridiculous if true.

    somoene in another thread has answered this question.  the 3rd parameter in my setTextFormat is incorrect.  I was specifying a length not an endIndex.  I'm officially retarded.

  • use Image catalog script for the current document

    Is it possible to use the script to image catalogue for the current document in which we work instead of leaving the mark of script a new document fees for placed images?

    use,

    //ImageCatalog.jsx
    //An InDesign CS6 JavaScript
    /*
    @@@BUILDINFO@@@ "ImageCatalog.jsx" 3.0.0 15 December 2009
    */
    //Creates an image catalog from the graphic files in a selected folder.
    //Each file can be labeled with the file name, and the labels are placed on
    //a separate layer and formatted using a paragraph style ("label") you can
    //modify to change the appearance of the labels.
    //
    //For more information on InDesign scripting, go to http://www.adobe.com/products/indesign/scripting/index.html
    //Or visit the InDesign Scripting User to User forum at http://www.adobeforums.com .
    //
    //The myExtensions array contains the extensions of the graphic file types you want
    //to include in the catalog. You can remove extensions from or add extensions to this list.
    //myExtensions is a global. Mac OS users should also look at the file types in the myFileFilter function.
    main();
    function main(){
      var myFilteredFiles;
      //Make certain that user interaction (display of dialogs, etc.) is turned on.
      app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
      myExtensions = [".jpg", ".jpeg", ".eps", ".ps", ".pdf", ".tif", ".tiff", ".gif", ".psd", ".ai"]
      //Display the folder browser.
      var myFolder = Folder.selectDialog("Select the folder containing the images", "");
      //Get the path to the folder containing the files you want to place.
      if(myFolder != null){
      if(File.fs == "Macintosh"){
      myFilteredFiles = myMacOSFileFilter(myFolder);
      }
      else{
      myFilteredFiles = myWinOSFileFilter(myFolder);
      }
      if(myFilteredFiles.length != 0){
      myDisplayDialog(myFilteredFiles, myFolder);
      alert("Done!");
      }
      }
    }
    //Windows version of the file filter.
    function myWinOSFileFilter(myFolder){
      var myFiles = new Array;
      var myFilteredFiles = new Array;
      for(myExtensionCounter = 0; myExtensionCounter < myExtensions.length; myExtensionCounter++){
      myExtension = myExtensions[myExtensionCounter];
            myFiles = myFolder.getFiles("*"+ myExtension);
      if(myFiles.length != 0){
      for(var myFileCounter = 0; myFileCounter < myFiles.length; myFileCounter++){
      myFilteredFiles.push(myFiles[myFileCounter]);
      }
      }
      }
      return myFilteredFiles;
    }
    function myMacOSFileFilter(myFolder){
      var myFilteredFiles = myFolder.getFiles(myFileFilter);
      return myFilteredFiles;
    }
    //Mac OS version of file filter
    //Have to provide a separate version because not all Mac OS users use file extensions
    //and/or file extensions are sometimes hidden by the Finder.
    function myFileFilter(myFile){
      var myFileType = myFile.type;
      switch (myFileType){
      case "JPEG":
      case "EPSF":
      case "PICT":
      case "TIFF":
      case "8BPS":
      case "GIFf":
      case "PDF ":
      return true;
      break;
      default:
      for(var myCounter = 0; myCounter-1){
      return true;
      break;
      }
      }
      }
      return false;
    }
    function myDisplayDialog(myFiles, myFolder){
      var myLabelWidth = 112;
      var myStyleNames = myGetParagraphStyleNames(app);
      var myLayerNames = ["Layer 1", "Labels"];
      var myDialog = app.dialogs.add({name:"Image Catalog"});
      with(myDialog.dialogColumns.add()){
      with(dialogRows.add()){
      staticTexts.add({staticLabel:"Information:"});
      }
      with(borderPanels.add()){
      with(dialogColumns.add()){
      with(dialogRows.add()){
      staticTexts.add({staticLabel:"Source Folder:", minWidth:myLabelWidth});
      staticTexts.add({staticLabel:myFolder.path + "/" + myFolder.name});
      }
      with(dialogRows.add()){
      staticTexts.add({staticLabel:"Number of Images:", minWidth:myLabelWidth});
      staticTexts.add({staticLabel:myFiles.length + ""});
      }
      }
      }
      with(dialogRows.add()){
      staticTexts.add({staticLabel:"Options:"});
      }
      with(borderPanels.add()){
      with(dialogColumns.add()){
      with(dialogRows.add()){
      staticTexts.add({staticLabel:"Number of Rows:", minWidth:myLabelWidth});
      var myNumberOfRowsField = integerEditboxes.add({editValue:3});
      }
      with(dialogRows.add()){
      staticTexts.add({staticLabel:"Number of Columns:", minWidth:myLabelWidth});
      var myNumberOfColumnsField = integerEditboxes.add({editValue:3});
      }
      with(dialogRows.add()){
      staticTexts.add({staticLabel:"Horizontal Offset:", minWidth:myLabelWidth});
      var myHorizontalOffsetField = measurementEditboxes.add({editValue:12, editUnits:MeasurementUnits.points});
      }
      with(dialogRows.add()){
      staticTexts.add({staticLabel:"Vertical Offset:", minWidth:myLabelWidth});
      var myVerticalOffsetField = measurementEditboxes.add({editValue:24, editUnits:MeasurementUnits.points});
      }
      with (dialogRows.add()){
      with(dialogColumns.add()){
      staticTexts.add({staticLabel:"Fitting:", minWidth:myLabelWidth});
      }
      with(dialogColumns.add()){
      var myFitProportionalCheckbox = checkboxControls.add({staticLabel:"Proportional", checkedState:true});
      var myFitCenterContentCheckbox = checkboxControls.add({staticLabel:"Center Content", checkedState:true});
      var myFitFrameToContentCheckbox = checkboxControls.add({staticLabel:"Frame to Content", checkedState:true});
      }
      }
      with(dialogRows.add()){
      var myRemoveEmptyFramesCheckbox = checkboxControls.add({staticLabel:"Remove Empty Frames:", checkedState:true});
      }
      }
      }
      with(dialogRows.add()){
      staticTexts.add({staticLabel:""});
      }
      var myLabelsGroup = enablingGroups.add({staticLabel:"Labels", checkedState:true});
      with (myLabelsGroup){
      with(dialogColumns.add()){
      //Label type
      with(dialogRows.add()){
      with(dialogColumns.add()){
      staticTexts.add({staticLabel:"Label Type:", minWidth:myLabelWidth});
      }
      with(dialogColumns.add()){
      var myLabelTypeDropdown = dropdowns.add({stringList:["File name", "File path", "XMP description", "XMP author"], selectedIndex:0});
      }
      }
      //Text frame height
      with(dialogRows.add()){
      with(dialogColumns.add()){
      staticTexts.add({staticLabel:"Label Height:", minWidth:myLabelWidth});
      }
      with(dialogColumns.add()){
      var myLabelHeightField = measurementEditboxes.add({editValue:24, editUnits:MeasurementUnits.points});
      }
      }
      //Text frame offset
      with(dialogRows.add()){
      with(dialogColumns.add()){
      staticTexts.add({staticLabel:"Label Offset:", minWidth:myLabelWidth});
      }
      with(dialogColumns.add()){
      var myLabelOffsetField = measurementEditboxes.add({editValue:0, editUnits:MeasurementUnits.points});
      }
      }
      //Style to apply
      with(dialogRows.add()){
      with(dialogColumns.add()){
      staticTexts.add({staticLabel:"Label Style:", minWidth:myLabelWidth});
      }
      with(dialogColumns.add()){
      var myLabelStyleDropdown = dropdowns.add({stringList:myStyleNames, selectedIndex:0});
      }
      }
      //Layer
      with(dialogRows.add()){
      with(dialogColumns.add()){
      staticTexts.add({staticLabel:"Layer:", minWidth:myLabelWidth});
      }
      with(dialogColumns.add()){
      var myLayerDropdown = dropdowns.add({stringList:myLayerNames, selectedIndex:0});
      }
      }
      }
      }
            var myResult = myDialog.show();
            if(myResult == true){
      var myNumberOfRows = myNumberOfRowsField.editValue;
      var myNumberOfColumns = myNumberOfColumnsField.editValue;
      var myRemoveEmptyFrames = myRemoveEmptyFramesCheckbox.checkedState;
      var myFitProportional = myFitProportionalCheckbox.checkedState;
      var myFitCenterContent = myFitCenterContentCheckbox.checkedState;
      var myFitFrameToContent = myFitFrameToContentCheckbox.checkedState;
      var myHorizontalOffset = myHorizontalOffsetField.editValue;
      var myVerticalOffset = myVerticalOffsetField.editValue;
      var myMakeLabels = myLabelsGroup.checkedState;
      var myLabelType = myLabelTypeDropdown.selectedIndex;
      var myLabelHeight = myLabelHeightField.editValue;
      var myLabelOffset = myLabelOffsetField.editValue;
      var myLabelStyle = myStyleNames[myLabelStyleDropdown.selectedIndex];
      var myLayerName = myLayerNames[myLayerDropdown.selectedIndex];
      myDialog.destroy();
      myMakeImageCatalog(myFiles, myNumberOfRows, myNumberOfColumns, myRemoveEmptyFrames, myFitProportional, myFitCenterContent, myFitFrameToContent, myHorizontalOffset, myVerticalOffset, myMakeLabels, myLabelType, myLabelHeight, myLabelOffset, myLabelStyle,  myLayerName);
            }
      else{
      myDialog.destroy();
      }
      }
    }
    function myGetParagraphStyleNames(myDocument){
      var myStyleNames = new Array;
      var myAddLabelStyle = true;
      for(var myCounter = 0; myCounter < myDocument.paragraphStyles.length; myCounter++){
      myStyleNames.push(myDocument.paragraphStyles.item(myCounter).name);
      if (myDocument.paragraphStyles.item(myCounter).name == "Labels"){
      myAddLabelStyle = false;
      }
      }
      if(myAddLabelStyle == true){
      myStyleNames.push("Labels");
      }
      return myStyleNames;
    }
    function myMakeImageCatalog(myFiles, myNumberOfRows, myNumberOfColumns, myRemoveEmptyFrames, myFitProportional, myFitCenterContent, myFitFrameToContent, myHorizontalOffset, myVerticalOffset, myMakeLabels, myLabelType, myLabelHeight, myLabelOffset, myLabelStyle,  myLayerName){
      var myPage, myFile, myCounter, myX1, myY1, myX2, myY2, myRectangle, myLabelStyle, myLabelLayer;
      var myParagraphStyle, myError;
      var myFramesPerPage = myNumberOfRows * myNumberOfColumns;
      var myDocument = app.activeDocument;
      myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
      myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
      var myDocumentPreferences = myDocument.documentPreferences;
      var myNumberOfFrames = myFiles.length;
      var myNumberOfPages = Math.round(myNumberOfFrames / myFramesPerPage);
      if ((myNumberOfPages * myFramesPerPage) < myNumberOfFrames){
      myNumberOfPages++;
      }
      //If myMakeLabels is true, then add the label style and layer if they do not already exist.
      if(myMakeLabels == true){
      try{
      myLabelLayer = myDocument.layers.item(myLayerName);
      //if the layer does not exist, trying to get the layer name will cause an error.
      myLabelLayer.name;
      }
      catch (myError){
      myLabelLayer = myDocument.layers.add({name:myLayerName});
      }
      //If the paragraph style does not exist, create it.
      try{
      myParagraphStyle = myDocument.paragraphStyles.item(myLabelStyle);
      myParagraphStyle.name;
      }
      catch(myError){
      myDocument.paragraphStyles.add({name:myLabelStyle});
      }
      }
      myDocumentPreferences.pagesPerDocument = myNumberOfPages;
      myDocumentPreferences.facingPages = false;
      var myPage = myDocument.pages.item(0);
      var myMarginPreferences = myPage.marginPreferences;
      var myLeftMargin = myMarginPreferences.left;
      var myTopMargin = myMarginPreferences.top;
      var myRightMargin = myMarginPreferences.right;
      var myBottomMargin = myMarginPreferences.bottom;
      var myLiveWidth = (myDocumentPreferences.pageWidth - (myLeftMargin + myRightMargin)) + myHorizontalOffset
      var myLiveHeight = myDocumentPreferences.pageHeight - (myTopMargin + myBottomMargin)
      var myColumnWidth = myLiveWidth / myNumberOfColumns
      var myFrameWidth = myColumnWidth - myHorizontalOffset
      var myRowHeight = (myLiveHeight / myNumberOfRows)
      var myFrameHeight = myRowHeight - myVerticalOffset
      var myPages = myDocument.pages;
      // Construct the frames in reverse order. Don't laugh--this will
      // save us time later (when we place the graphics).
      for (myCounter = myDocument.pages.length-1; myCounter >= 0; myCounter--){
      myPage = myPages.item(myCounter);
      for (var myRowCounter = myNumberOfRows; myRowCounter >= 1; myRowCounter--){
      myY1 = myTopMargin + (myRowHeight * (myRowCounter-1));
      myY2 = myY1 + myFrameHeight;
      for (var myColumnCounter = myNumberOfColumns; myColumnCounter >= 1; myColumnCounter--){
      myX1 = myLeftMargin + (myColumnWidth * (myColumnCounter-1));
      myX2 = myX1 + myFrameWidth;
      myRectangle = myPage.rectangles.add(myDocument.layers.item(-1), undefined, undefined, {geometricBounds:[myY1, myX1, myY2, myX2], strokeWeight:0, strokeColor:myDocument.swatches.item("None")});
      }
      }
      }
      // Because we constructed the frames in reverse order, rectangle 1
      // is the first rectangle on page 1, so we can simply iterate through
      // the rectangles, placing a file in each one in turn. myFiles = myFolder.Files;
      for (myCounter = 0; myCounter < myNumberOfFrames; myCounter++){
      myFile = myFiles[myCounter];
      myRectangle = myDocument.rectangles.item(myCounter);
      myRectangle.place(File(myFile));
      myRectangle.label = myFile.fsName.toString();
      //Apply fitting options as specified.
      if(myFitProportional){
      myRectangle.fit(FitOptions.proportionally);
      }
      if(myFitCenterContent){
      myRectangle.fit(FitOptions.centerContent);
      }
      if(myFitFrameToContent){
      myRectangle.fit(FitOptions.frameToContent);
      }
      //Add the label, if necessary.
      if(myMakeLabels == true){
      myAddLabel(myRectangle, myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, myLayerName);
      }
      }
      if (myRemoveEmptyFrames == 1){
      for (var myCounter = myDocument.rectangles.length-1; myCounter >= 0;myCounter--){
      if (myDocument.rectangles.item(myCounter).contentType == ContentType.unassigned){
      myDocument.rectangles.item(myCounter).remove();
      }
      else{
      //As soon as you encounter a rectangle with content, exit the loop.
      break;
      }
      }
      }
    }
    //Function that adds the label.
    function myAddLabel(myFrame, myLabelType, myLabelHeight, myLabelOffset, myLabelStyleName, myLayerName){
      var myDocument = app.documents.item(0);
      var myLabel;
      var myLabelStyle = myDocument.paragraphStyles.item(myLabelStyleName);
      var myLabelLayer = myDocument.layers.item(myLayerName);
      var myLink =myFrame.graphics.item(0).itemLink;
      //Label type defines the text that goes in the label.
      switch(myLabelType){
      //File name
      case 0:
      myLabel = myLink.name;
      break;
      //File path
      case 1:
      myLabel = myLink.filePath;
      break;
      //XMP description
      case 2:
      try{
      myLabel = myLink.linkXmp.description;
      if(myLabel.replace(/^\s*$/gi, "")==""){
      throw myError;
      }
      }
      catch(myError){
      myLabel = "No description available.";
      }
      break;
      //XMP author
      case 3:
      try{
      myLabel = myLink.linkXmp.author
      if(myLabel.replace(/^\s*$/gi, "")==""){
      throw myError;
      }
      }
      catch(myError){
      myLabel = "No author available.";
      }
      break;
      }
      var myX1 = myFrame.geometricBounds[1];
      var myY1 = myFrame.geometricBounds[2] + myLabelOffset;
      var myX2 = myFrame.geometricBounds[3];
      var myY2 = myY1 + myLabelHeight;
      var myTextFrame = myFrame.parent.textFrames.add(myLabelLayer, undefined, undefined,{geometricBounds:[myY1, myX1, myY2, myX2], contents:myLabel});
      myTextFrame.textFramePreferences.firstBaselineOffset = FirstBaseline.leadingOffset;
      myTextFrame.parentStory.texts.item(0).appliedParagraphStyle = myLabelStyle;
    }
    
  • How to clear the Cache Mapviewer tile

    I use a stand-alone version of Mapviewer using Weblogic Server.

    WebLogic and Mapviewer run on a linux CentOS 5.8 64 bit server.

    -MapViewer Version: Ver11_1_1_7_1_B130516

    -Weblogic Server 10.3.6

    I use Mapbuilder installed on Win7 64 bit client.

    -Mapbuilder Build: Ver11_1_1_7_1_B130516

    My data source is an Oracle Database 11.2.0.3 running on a linux CentOS 5.8 64 bit server.

    I use the new HTML5 JavaScript mapping API to make my card.  I use one of the following browsers:

    IE10 (v10.0.9200.16635)

    Firefox (v23.0)

    Chrome (v28.0.1500.95 m

    I created the following Mapbuilder objects:

    The geometry theme: SRA_SUITE304_F1_ROOM

    -label style rules, I put = 1 label function, while the labels will be displayed for objects

    Base map: SRA_ALL

    <? XML version = "1.0" standalone = "yes"? >

    < map_definition >

    < name of the theme = "SRA_SUITE304_F1_ROOM" / >

    < / map_definition >

    Tile layer: SRA_ALL

    < map_tile_layer = "SRA_ALL' image_format ="PNG"http_header_expires name ="168,0"concurrent_fetching_threads ="3">

    < internal_map_source data_source = "ICLOGIT1" base_map = "SRA_ALL" bgcolor = "#ccccff" / >

    < coordinate_system srid = minX "4326" = "-74.54" = "39.407" maxX minY = maxY "39,41" = "-74.53" / >

    < tile_image width = "256" height = "256" / >

    < zoom_levels levels = "10" min_scale = "100.0" max_scale = "1600.0" min_tile_width = "" 6.097560975612876E - 5 "min_tile_height =" 9.090909090913742E - 4 ">"

    "< zoom_level level = '0' name ="Level0"description =" "scale ="1600.0"tile_width =" 9.090909090913742E - 4 "tile_height =" 9.090909090913742E - 4 "/ >

    "< zoom_level level ="1"name ="level1"description =" "scale ="1175.0"tile_width =" 7.142857142860797E - 4 "tile_height =" 7.142857142860797E - 4 "/ >

    "< zoom_level level ="2"name ="level2"description =" "scale ="864.0"tile_width =" 5.263157894739535E - 4 "tile_height =" 5.263157894739535E - 4 "/ >

    "< zoom_level level ="3"name = 'niveau3' description =" "scale ="634,0"tile_width =" 3.846153846155814E - 4 "tile_height =" 3.846153846155814E - 4 "/ >

    "< zoom_level level ="4"name ="level4"description =" "scale ="466.0"tile_width =" 2.7777777777791986E - 4 "tile_height =" 2.7777777777791986E - 4 "/ >

    "< zoom_level level ="5"name = 'level5" description = "" scale = "342.0" tile_width = "2.0833333333343992E - 4" tile_height = "2.0833333333343992E - 4" / >

    "< zoom_level level ="6"name ="level6"description =" "scale ="251.0"tile_width =" 1.5151515151522904E - 4 "tile_height =" 1.5151515151522904E - 4 "/ >

    "< zoom_level level ="7"name ="communautaire7"description =" "scale ="185.0"tile_width =" 1.1235955056185523E - 4 "tile_height =" 1.1235955056185523E - 4 "/ >

    "< zoom_level level = '8' name = 'level8" description = "" scale = "136,0" tile_width = "8.264462809921583E - 5" tile_height = "8.264462809921583E - 5" / >

    "< zoom_level level = '9' name ="Niveau9"description =" "scale ="100.0"tile_width =" 6.097560975612876E - 5 "tile_height =" 6.097560975612876E - 5 "/ >

    < / zoom_levels >

    < / map_tile_layer >

    I use the following HTML code to visualize on the map using the SRA_ALL layer of tile:

    < ! DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / IN" "http://www.w3.org/TR/html4/loose.dtd" > ""

    < html >

    < head >

    < title > SRA2 - map: 01-10 Zoom levels < /title >

    < meta http-equiv = "Content-Type" content = text/html"; Charset = UTF - 8' >

    < script type = "text/javascript" src = " " http://xxxx.xxxx.com:7002/MapViewer/jslib/v2/oraclemapsv2.js ' > < / script >

    < style type = "text/css" > body {cursor: default ;} < / style >}

    < script language = "JavaScript" type = "text/javascript" >

    " var baseURL = ' http://xxxx.xxxx.com:7002 / mapviewer ";  Location of mapviewer

    function showMap()

    {

    var map = new OM card)

    document.getElementById ('map'),

    {

    mapviewerURL:baseURL

    }) ;

    var tileLayer2 = new OM.layer.TileLayer)

    "SRA_ALL,"

    {

    dataSource: "xxxx."

    tileLayer: "SRA_ALL."

    });

    map.addLayer (tileLayer2);

    map.addScaleBar ();

    map.addNavigationPanelBar ();

    map.setMapCenter (new OM.geometry.Point(-74.537446,39.409008,4326));

    map.setMapZoomLevel (3);

    Map.init ();

    }

    < /script >

    < / head >

    < body onload = "javascript:showMap ()" >

    < DIV id = map style = "width: 99%; "height: 99%" > < / DIV >

    < / body >

    < / html >

    The result is a map correctly rendered in my browser, which displays the tags that I expected.

    Then, I changed the function of tagging on my theme of geometry: SRA_SUITE304_F1_ROOM, it if - 1, so that the labels of the object would not be displayed.

    Mapbuilder, I can get a preview of the theme of the geometry, and it shows that some labels are displayed.

    Always in Mapbuilder, I can get a glimpse of the base map where the theme of the geometry is assigned to, and the base map also shows that no labels are displayed for this theme.

    I saved all my changes into Mapbuilder.

    However, when I view my card (using the same HTML code) in the browser, maps still show the labels.

    I tried all of the following conditions:

    (1) purge the cache of the geometry for the data source of card assigned using the Console of Administration MapViewer

    (2) purging the browser cache

    (3) by restarting the server mapviewer

    (4) restart the entire weblogic server support

    None of these actions are causing card in my browser updated to display the map without labels.

    Note: If I create a new layer of tile using the same base map, my changes are visible in terms of browser.

    What I'm missing here?

    What cover do I need clear so that my card is displayed correctly in my browser after I have make changes to the underlying objects Mapbuilder?

    Thanks in advance for your help.

    Thank you.  It was the last key to the puzzle.

    Here are the steps that I now follow to ensure that changes made to the underlying MapBuilder objects are visible in the browser.

    Perform the following steps:

    (1) change the subject (theme, style, Tiler, Basemap) in MapBuilder and save all changes.

    (2) using the the Console of Administration MapViewer, purge the updated metadata cached for each affected data source.

    (3) the server MapViewer, erase the map Cache Directory.  The location of the map Cache Directory is specified in the file mapViewerConfig.xml under the heading 'Card Cache Server Setting'.

    for example

    CD

    rm - rf *.

    (4) delete the cache files and temp of the browser for browser you use (for example, IE, Firefox, Chrome).  If you think that you are not completely empty the memory cache, then use the "private browsing" feature of the browser to view the map.  You should then be able to see the changes made to the map in the browser.

  • Table of contents of a paging

    I am trying to create a table of contents, but all my page numbers are listed as I.

    Example:

    Chapter 1... I have

    Chapter 2... I have

    etc.

    Help, please.

    Your table of contents is there; It is located just in white, like your target paragraph style. You can create a new style of paragraph of the content page and select in the menu at the top of the dialog box (labeled Style :) Or you can select and reshape the text manually.

Maybe you are looking for

  • T420 restore disks

    Had a computer with a hard drive dead, where the only way I could create some restore disks was in safe mode and running the EXE file directly from the drive Q. He created the startup disk and diskettes 3. I put in a new hard drive and when I try to

  • HP Pavilion 13-s128nr: black screen on startup = upwards

    My wife has a 13-s128nr Pavvillion.  When you turn on the machine, you get a black screen.  The power light is on but nothing shows in place... totally black.  I rebooted the machine a few times the same result.  I left the machine on the battery dra

  • Creation of network with accounts

    I want to create a network with computers running Windows operating systems. I have a wiorkgroup. Is it possible to do where I can create user accounts that can be connected through all the computers on the network? In my school, they have where they

  • Outlook Express - repair/restoration of corrupted DBX files

    Hello I recently lost a number of local folders in my Outlook Express (OE) I found in the store DBX. However OE does not read/open them very probably because they are corrupt. It is apparently a common problem. I searched and found a few tools that c

  • The page of the window scrolls automatically

    Original title: page of the window? When I open a page, it goes down to the bottom of the page and won't let me not go back? How can I solve this problem?