HO to add a scroll bar on RichTextField

Hello

I developed an application where I use this type of popupScreen.

Here I put the image, width height to the RTF, field

I want to put vertical scrolling, for the following is the code for this:-

txtNote_value = new RichTextField()
{
protected void paint (Graphics graphics)
{
graphics.setColor (Color.BLACK);
graphics.setFont (graphics.getFont () .derive (Font.PLAIN, 12));
Super.Paint (Graphics);
Invalidate();
}

Protected Sub layout (int width, int height) {}
Super.Layout (width, height);
setExtent (255, 55);
}

public int getPreferredWidth() {}
return width;
}

public int getPreferredHeight() {}
return height;
}
};

txtNote_value.setBackground (imgTextBg);
txtNote_value.setEditable (true);
txtNote_value.setMinimalWidth (imgText_bg.getWidth ());
txtNote_value.setMargin (5.2, 0, 2);

Can someone give me a solution to scroll the text.

I have add this field richtext on separate vertical field, manage and set the:-VerticalFieldManager.VERTICAL_SCROLL

but it allows to scroll the deposited text of hole I don't want that, I want to just scroll through the inner text to RTF Fiedl

Thanks in advance

Adjust your fillRoundRect with the scroll position settings:

g.fillRoundRect (getHorizontalScroll () + 4, getVerticalScroll() + 1, getWidth() - 8, getHeight() - 2, 0, 0);

Furthermore, I feel that you have lost your settings - the first two are the coordinates of the upper left corner of the rectangle, the last two are arcWidth and arcHeight. If I'm right and you inadvertently changed place, the call would look like:

g.fillRoundRect (getHorizontalScroll (), getVerticalScroll(), getWidth() getHeight(), 4, 1);

Good luck!

Tags: BlackBerry Developers

Similar Questions

  • Add a scroll bar to control opacity with scripts?

    First of all, thank you to David Torno (http://www.provideocoalition.com/after-effects-extendscript-training-complete-series).
    With the help of their tutorials, I managed to make several scripts with the UI, but when I try to add a scroll bar, I can't. can someone tell me what I am doing wrong? Here is the code:

    para preguntar scroll bar.JPG

    {

    function myScript (thisObj)

    {

    function myScript_buildUI (thisObj) {}

    var myPanel = (thisObj instanceof Panel)? thisObj: new window ('pallet', 'Opacity', undefined, {resizable: true});

    res = "group {orientation: 'row', alignment: ['fill ', ' fill'], alignChildren: \ ['fill ', ' fill']}"

    groupOne: group {orientation: 'column', alignment: ['center', 'center'], alignChildren: ['fill', 'center'],------}

    },\

    myPanelOne:Panel {text: 'Opacity', direction: "column", alignment: ['fill ', ' fill'], alignChildren: ['fill', 'center'],------}

    myScrollbar1:Scrollbar {text: 'Opacity'}, \

    },\

    }";

    myPanel.grp = myPanel.add (res);

    var myScrollbar1 = myPanel.grp.myPanelOne.myScrollbar1;

    var valueScroll = myPanel.grp.myPanelOne.myScrollbar1.value;

    myScrollbar1.onChanging = function () {}

    var curItem = app.project.activeItem;

    var selectedLayers = curItem.selectedLayers;

    var curLayer = curItem.selectedLayers [0];

    var opacity = curLayer.property("ADBE_Transform_Group").property ("ADBE opacity");

    Opacity = valueScroll;

    }

    Return myPanel;

    }

    var myScriptPal = myScript_buildUI (thisObj)

    ;

    If ((myScriptPal! = null) & & (myScriptPal instanceof window)) {}

    myScriptPal.center ();

    myScriptPal.show ();

    }

    }

    myScript (this);

    }

    I tested your code, and the scroll bar is added correctly.

    What does not work is the method the scroll bar onChanging.

    A few comments:

    (1) you must not define a variable valueScroll = myPanel.grp.myPanelOne.myScrollbar1.value; outside this function, because it is the value at the point where set you it. It does not update the scroll bar as is.

    (2) you will need to use "setValue" to set the value of a property.

    (3) it will probably disappoint you much: definition of a property value of layer using a slider/via script scroll bar creates billions of history entries and makes unusable history.

    (When you scroll the cursor property in After Effects, a history entry is created only for the purpose you by releasing the mouse (onChange event).) "But scripts do not have this capability, I believe). Check for yourself:

    myScrollbar1.onChanging=function(){
        var curItem = app.project.activeItem;
        if (curItem instanceof CompItem && curItem.selectedLayers.length>0){
            curItem.selectedLayers[0].transform.opacity.setValue(this.value);
            };
        };
    

    Xavier.

  • Can I add a scroll bar to a frame?

    I designed my first Web site using Dreamweaver, www.dancecampeast.org and some users have said that they cannot access all the items on the left frame, which is used in the navigation bar. I guess it's because their browser windows are too small, that is to say that they are viewing on a small screen or with large text. I want to add a scroll bar on the frame to allow access to items lower on the list, how can I do? Any advice gratefully received, just don't get too complex!

    If you have just started creating Web sites and chose to use images, I'm sorry to tell you that you started opposite. Frames were widespread in the mid-1990s, but are now considered as a very poor to build Web sites. So poor that frames are removed from the next version of HTML.

    Having broken the bad news for you, you still need a way to solve your problem while deciding how to redesign your website...

    In Dreamweaver, open the Panel frames (window > frames). Select the left image in the Panel to view the properties of the image in the property inspector. Change the value of No on Auto scrolling. Save frameset and upload it to your site.

    To learn more about why you made the wrong choice with images, take a look at the following explanation: http://apptools.com/rants/framesevil.php.

  • Why it produces error when I add a scroll bar to a stripchart?

    I want to add a horizontal scroll bar to a chart of the band. I have create a checkbox on the Strip Panel. If it is enabled I put

     SetCtrlAttribute (psmpanelHandle, PSM_PANEL_ACHART, ATTR_STRIP_CHART_PAUSED, 1);
    

    and I use

    GetCtrlVal(psmpanelHandle,PSM_PANEL_CHECKBOX, &val);
    

    to judge if the check box is marked. And the complete code:

    //Pause the stripchart traces
    int CVICALLBACK PauseChart (int panel, int control, int event,
                    void *callbackData, int eventData1, int eventData2)
    {
            int val;
            switch (event)
            {
                    case EVENT_COMMIT:
                         SetCtrlAttribute (psmpanelHandle, PSM_PANEL_ACHART, ATTR_HISTORY_BUFFER_SIZE, 86400);
                 GetCtrlVal(psmpanelHandle,PSM_PANEL_CHECKBOX, &val);
                 if (val==TRUE)
                     SetCtrlAttribute (psmpanelHandle, PSM_PANEL_ACHART, ATTR_STRIP_CHART_PAUSED, 1);
                else
                    SetCtrlAttribute (psmpanelHandle, PSM_PANEL_ACHART, ATTR_STRIP_CHART_PAUSED, 0);
                            break;
            }
            return 0;
    }
    

    However, I could not move the scroll bar to view historical data when I stop the curve in real time of the display on the graph of the band.

    You are very likely to get this error! As you probably know, you cannot work on a panel or control, before it is loaded into memory, so you must set the attribute table in Pause1Callback or Pause2Callback using the Panel appropriate to manage.

    According to the historical graph feature, having the scroll bar is unnecessary until you fill graphic display: once it starts moving and accumulating data on the left side you can move to review its history as well as the scroll bar.

  • Add vertical scroll bars to a content panel

    I need to use long passages of text in a fixed size content area, so I need to add a vertical scroll bar on the side. Muse support says that I have to use HTML code to do this. I'm a designer, not a coder, can someone walk me through it?

    Hi Jeff,

    I replied to your previous post, please refer to this topic:- https://forums.adobe.com/thread/1627033

    Kind regards

    Rohit Nair

  • Is it possible to add the scroll bar to a cluster of front control?

    I have a cluster control on my front.  The cluster contains many controls that I did not have enough room to display at a time. When a table contains more items is displayed, you can activate vertical or horizontal scroll bars.  This doesn't seem to be the case for cluster control.  I don't see a property of scrollbar for cluster control.  Is there a way to display one that I'm missing?  Thank you!

    As much as I know you can not display scrollbars on clusters.

    The only method I can think of that would be to show the cluster fully deployed on a secondary as a plugin and have attached an example how to do that.

    Hope that helps,

    Dave

  • does anyone know how to add a scroll bar on a form for calculations that change the numerical value when you scroll left and right?

    Screen Shot 2015-06-02 at 09.42.43.pngAnyone know how to create scrollbars that way in the forms in Adobe Acrobat format?

    There is no such control in PDF Forms. You will need to develop yourself

    If you wish to have. I suggest just using a text field with keys + /

    instead. It will save you a lot of headaches...

    Tuesday, June 2, 2015 at 10:56, rorys9206745 [email protected]>

  • How to add scroll bar to the field in the column of the report

    Hello again,

    I need to add a scroll bar to the field in the column of the report in my application "form.

    There is a table with columns of text and sometimes a lot of information must be filled in these areas, and thus the overview of the report becomes unreadable, because all rows have different heights according to the amount of text has been filled.

    What I want is to make all lines with the same height, and if there is more text in a field that can allow a height - a scroll bar appears so for this specific domain.
    Is it possible to do?

    Thank you in advance.

    Hello

    OK - it is important that tell you what type of report that you use like this makes a difference to what is possible!

    For interactive reports, you cannot use a CSS stylesheet in the same way with respect to normal relations. The easiest way is probably to include a complete div in your SQL statement directly. Something like:

    select      ID as "ID",
          '
    ' || "MY_BIG_FIELD" || '
    ' as "DETAILS" from TABLEX

    This will put the data in this column in the individual DIV tags, and then apply the style from the example of the Dene.

    Andy

  • I have the Scroll Bar in bookmarks are gone now can it get replaced

    The scroll bar is now missing when I click the icon of bookmarks instead he is just an arrow down. I have a lot of Favorites and now it takes forever to get to the bottom where are my most recent. Please add the scroll bar option.

    Thank you!

    I finally found it. After clicking on the bookmark icon, you must now click on view bookmark Sidebar and it takes you to the bookmarks that I am used to. (when you click the bookmark icon it used to take you directly there)
    I hope this helps someone else!

  • Tabs scroll bar

    I worked on a script that can pull of our models we use, and because there are groups for the models I created a tabbed window that opens with radio buttons.

    var businessTab = tpanel.add ("tab", undefined, "Group1");
            businessTab.children.alignment = "left";
        
    var temp1Group = businessTab.add("group",undefined);
            temp1Group.orientation = "row";
            temp1Group.alignChildren = "top";
            
    var rulers = temp1Group.add ("panel", undefined, "Rulers");
    rulers.spacing = 4;
    
    rulers.r5508 = rulers.add ("radiobutton", undefined, "5508");
    rulers.r5512 = rulers.add ("radiobutton", undefined, "5512");
    rulers.r5515 = rulers.add ("radiobutton", undefined, "5515");
    

    but now, I have a tab that has so many models in there it takes up the entire screen when the device on.  I got the radio buttons arranged in groups of 18, but I can't understand how to add a scroll bar of the window of the tab.

    Any ideas?

    Of course, you probably want to see something that makes more sense, so here's a working example:

    #target illustrator
    function ScrollPanels(){
        var w = new Window('dialog',"Scrollable Panels");
        var arr = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];
        var g1 = w.add('panel', undefined, 'Scrollable Content Here'); g1.orientation = "row";
        var g1_1 = g1.add('group'); g1_1.orientation = "column";
        g1_1.size = [200, 240];
        for(var i=0; i		   
  • In the text box scroll bar

    Guy, on one of my pages on the site I do with animate I have a textfield with text. There is more text the field can hold, so I add a scroll bar to this textfield, so that the user can scroll the text. Someone knows how to do?

    Thank you.

    Make sure that your text is display the value always or when you select your textfield.

    Example: auto.zip - Box overflow

  • How to develop a text field (no scroll bar)

    First of all, thank you for your time - I'm on a date limit to produce and I'm freakin ', that's not possible.

    What I'm trying to do is create a simple form that has the text field (7).  Each of these text fields can contain anywhere from one sentence to six paragraphs of the explanatory text.  All I want to box in the text field to do is develop as well as the content and break to another page if necessary.  I was able to create a text field that allows the long data to appear (multiple lines / develop to fit Y), but the text field box does not grow, it adds a scroll bar to the place!  Unfortunately, this is not what I need.  I need the story to be printed and easily visible for viewing.

    Can you help me please?

    Here is an example that explains this se...

    Oh... Oh... I don't see the option to attach any file... I don't know that I did earlier

    Here's how I did it... just an example...

    1. open a new blank template.

    2. in the page, select body (Untitled subform) (page 1)... call First_Sub

    3 Textfield in First_Sub and set the Hight: "Expand to fit" and "Allow multiple lines" in page layout and the object > pallets of field respectively.

    4. now in the Higerarchy palette select 'Fisr_Sub' and set Hight: "Develop to fit" in the page layout palette

    5 then under object > subform set palette "allow Page brakes with content."

    6. don't forget save it as a dynamic form

    7 try it now... that should do what you are looking for.

    Good luck

  • Customize the scroll bar

    Hello! I am trying to add a scroll bar with a few links it contains. I have, but the problem is I want to customize it... Add images/color to it to circulate better with my Web site. I'm sure that there is a way to do this through CSS (probably), but I don't know where. Could someone help me please? Thank you!

    > I found a site that handled the appearance of their scroll bar and it
    > works
    > on IE and Firefox.

    It is no modification of the scroll bar evident in Fx, at least not the
    page scroll bar. There is a custom widget scroll on the left. It was made
    with get, a plugin:
    http://www.kelvinluck.com/assets/jQuery/JScrollPane/JScrollPane.html

    --

    Walt

    "palombic" wrote in message
    News:gde8su$i6m$1@forums. Macromedia.com...
    > I am working on the absence of types of documents on my page. I appreciate your
    > concern. I'm working on the layout and transferring to each page
    > I
    > create.
    >
    > I found a site that handled the appearance of their scroll bar and it
    > works
    > on IE and Firefox.
    >
    > http://www.lisakline.com
    >
    > Of course I don't want to copy, but have my own ideas design
    > It
    > but want to know how to do this.
    >

  • How to insert the scroll bar in the text element

    Hi all
    Now I use form 10g.
    Is it possible to add the scroll bar in the text element? If, Yes...
    Please help me to insert the scroll bar in the multi line text item.

    Thank you

    Hello
    You should not do anything... to get a scroll bar...
    For all the elements of several lines, scroll bar is automatically
    the runtime if data exceeds the size of the
    field...

    Concerning
    Swati

  • Firefox please add a webkit for styling the div overflow scroll bars? Chrome has and they spend you upward.

    Firefox still leaves us the div overflow style scroll bars. Chrome and they are passing firefox upward! Do you think that one day before I got to the old code, they will add a webkit for styling the div overflow scroll bars?

    I see this question is about 7 years old I saw first, he asked in 2005

    Hello, this is a mainly managed by the community support forum is probably not the right place for the characteristics of the request (we are unable to implement all the features & devs read here).

    Please use https://input.mozilla.org/feedback for either your reactions or if you think that it is a missing feature in the browser file a bug at bugzilla.mozilla.org.

Maybe you are looking for