Disable Toolbar in custom TextEditor Control

Dear Gurus ,
I made a custom Texteditor control in my own screen. The problem is that i can't disable the toolbat above the control .
Please see my code ....
CREATE OBJECT G_EDITOR_3
    EXPORTING
       PARENT = G_EDITOR_CONTAINER_3
       WORDWRAP_MODE = CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION
       WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>TRUE
       WORDWRAP_POSITION          = 70
    EXCEPTIONS
        OTHERS = 1.
    IF SY-SUBRC NE 0.
      CALL FUNCTION 'POPUP_TO_INFORM'
        EXPORTING
          TITEL = G_REPID
          TXT2  = SPACE
          TXT1  = TEXT-001.
    ENDIF.
Thanks a lot ....

Hi,
Try this code to disable your custom designed texteditor.
  CALL METHOD: editor_s->set_toolbar_mode
                   EXPORTING toolbar_mode = '0'.
pls don't forget to place your container name inplace of mine,i.e  "editor_s".
do rply if it's workable.
Edited by: izullah on Feb 16, 2010 7:24 AM

Similar Messages

  • I'm unable to lock the toolbars so that disabled toolbars remain disabled. HELP!

    I want to be able to disable toolbars; enable as needed, e.g., Yahoo toolbar. However, every time I open Firefox in a new window, there are the toolbars I just disabled in a previous window. What am I doing wrong/not doing?
    I'm also not able to control Panel uninstall certain toolbars, e.g., Absolutist Games Customized Web search..which i feel like using a bomb on to get it off of my toolbar group!
    Please help. Do I have to completely uninstall Foxfire, reinstall?
    Mizharmony

    Do you think people can't read? I know where extensions and add-ons and plug-ins are, and where the options are, but what I don't know is why Firefox 4 was released with so much that doesn't work. How about some advice that's not screamingly obvious?
    And why does Hotmail looks so good on Chrome and so dire on Firefox?
    Why do icons keep moving and disappearing?
    And why does yahoo keep taking over as the search engine?
    And why does the yahoo toolbar keep coming back no matter how many times I get rid of it?
    Why is Firefox still so slow opening?
    How could Mozilla release this monstrosity? IE9 (I can't believe I'm saying this) is better.

  • Issue in custom delegate control

    hi 
     am  creating a custom delegate control with controlid ="AdditionalPageHead" . i deployed and activated as a  site collection feature.
    but i am not sure how to see the activated control/  how to see this control in action.
    below is my code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.Administration;
    using Microsoft.SharePoint.Utilities;
    using Microsoft.SharePoint.Diagnostics;
    namespace OPUserDispName
      public  class EcmaScriptDelegateControl :WebControl
          protected override void OnLoad(EventArgs e)
              base.OnLoad(e);
              string helloAlert = "alert('Hello, world!');";
              this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "popup", helloAlert, true);
    //          if(!HttpContext.Current.User.Identity.IsAuthenticated)
       //              return;
          //       SPUser user = //SPContext.Current.Web.EnsureUser("i:0#.f|OPMembership|OPAdmin");
       //          user.Name = "OPAdmin";
          //       user.Update();
    in my  elements.xml file  of my module :
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
        <Control Id="AdditionalPageHead" ControlAssembly="OPUserDispName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=467af93481413beb" ControlClass="OPUserDispName.EcmaScriptDelegateControl"
    ></Control>
    </Elements>
    here i wanna see alert when the activated/or page load happened.
    may i know, how to see this, in working. as per the current scenario, am unable to see any output even after feature activation. 
    do i need to do any settings in master page? do i need to perform any changes in web.config.
    help is appreciated!

    This has complete solution.
    http://www.codeproject.com/Articles/113704/SharePoint-Master-Page-Customizations-Through
    can you try RegisterStartupScript instead
    of RegisterClientScriptBlock?
    Bala

  • Windows Phone - Cannot bind custom user controll with listview item source property

    It is Windows Phone 8.1 (runtime)
    I have some problem of binding custom user controll with list of data. I'll make it simple as I can.
    My problem is that somehow if I use DataBind {Binding Something} inside my custom controll it will not work.
    I need to transfer binded data (string) to custom controll.
    It is strange that if I do not use DataBind, it will work normally. Eg MyCustomControllParameter = "some string" (in my example 'BindingTextValue' property)
    Does anyone Know how to bind custom user controll with inside ListView with DataTemplate.
    Assume this:
    XAML Test-Main page
    <Grid  Background="Black">        <ListView x:Name="TestList" Background="#FFEAEAEA">                    <ListView.ItemTemplate>                <DataTemplate>                    <Grid Background="#FF727272">                        <local:TextBoxS BindingTextValue="{Binding Tag, FallbackValue='aSource'}" local:TextBoxS>                    </Grid>                </DataTemplate>            </ListView.ItemTemplate>        </ListView>    </Grid>
    XAML Test-Main page c#
    public sealed partial class MainPage : Page    {        List<TTag> tags = new List<TTag>();        public MainPage()        {            this.InitializeComponent();            this.NavigationCacheMode = NavigationCacheMode.Required;        }        public class TTag        {            public string Tag { get; set; }        }        private void InitializeAppData()        {            TTag tag = new TTag() { Tag = "hello world" };            tags.Add(tag);            tags.Add(tag);            tags.Add(tag);            TestList.ItemsSource = tags;        }             protected override void OnNavigatedTo(NavigationEventArgs e)        {            InitializeAppData();        }           }
    User Control XAML:
      <UserControl    x:Class="CustomControllTest.TextBoxS"    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    xmlns:local="using:CustomControllTest"    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"    mc:Ignorable="d"    d:DesignHeight="300"    d:DesignWidth="400">      <Grid x:Name="LayoutRoot" Background="#FF4F4F4F"   >        <RichTextBlock x:Name="MyTestBlock">        </RichTextBlock>    </Grid></UserControl>
    User Control c#
    public TextBoxS()       {            this.InitializeComponent();            LayoutRoot.DataContext = this;        }        public static readonly DependencyProperty BindingTextValueProperty = DependencyProperty.Register(                                         "BindingTextValue",                                         typeof(string),                                         typeof(TextBoxS),                                         new PropertyMetadata(default(string)));        public string BindingTextValue        {            get            {                return GetValue(BindingTextValueProperty) as string;            }            set            {                SetValue(BindingTextValueProperty, value);                //This method adds some custom logic into RichTextBlock, pointed correctly                SetupBox(value);            }        }
    Thanks for helping ;)

    If you use a built-in control rather than your custom control, does binding work? You should verify that first.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • How do I reuse a custom java control in another project?

    Relatively simple question, but I am having a lot of trouble with this. Documentation
    alludes to this being possible and easy, but never says how (and the only tutorials
    I can find describe creating a custom java control in the same project where they
    are used):
    "You can design a custom control for use in one project, or you can design a custom
    control for easy reuse in multiple projects." (from WLS docs on Java Controls)
    "When the control project builds, all of the controls and associated files are
    compiled into a single jar file and pushed onto the classpath of the containing
    application for immediate use and testing by other projects in the application.
    This jar is self-contained and can be moved to any other application by adding
    it to the application’s Library folder. Appropriately marked controls in the Library
    it will automatically appear on the user’s palette, ready for incorporation into
    an application." (from dev2dev article on controls, P. Hussey)
    I have a Workshop application which contains a few projects. One project is a
    component project, another is a web project. I created a custom java control in
    the control project and built it (JAR appeared in the Libraries folder). Now I
    open up the page flow in my web app project, and try to drag the java control
    onto my page flow - but I get an eror that the control must reside in the same
    project! It does not automatically appear on my palate, so if I go over to the
    palate on the right, and try to "add control" I only get a list containing the
    BEA controls - no custom controls are listed.
    What am I doing wrong? How can I incorporate my custom control into a web project?
    I don't want to move the control in the web project, since this contradicts the
    concept of a separate shared library. I should be able to build a library of controls
    and reuse them in our web projects right?
    -Bob

    Please disregard... I got it to work. For some reason I had to close Workshop,
    restart it, then I reloaded the application, rebuilt the control project, and
    now my control appears in the list of controls and can be easliy added to the
    palette.
    "Bob" <[email protected]> wrote:
    >
    Relatively simple question, but I am having a lot of trouble with this.
    Documentation
    alludes to this being possible and easy, but never says how (and the
    only tutorials
    I can find describe creating a custom java control in the same project
    where they
    are used):
    "You can design a custom control for use in one project, or you can design
    a custom
    control for easy reuse in multiple projects." (from WLS docs on Java
    Controls)
    "When the control project builds, all of the controls and associated
    files are
    compiled into a single jar file and pushed onto the classpath of the
    containing
    application for immediate use and testing by other projects in the application.
    This jar is self-contained and can be moved to any other application
    by adding
    it to the application’s Library folder. Appropriately marked controls
    in the Library
    it will automatically appear on the user’s palette, ready for incorporation
    into
    an application." (from dev2dev article on controls, P. Hussey)
    I have a Workshop application which contains a few projects. One project
    is a
    component project, another is a web project. I created a custom java
    control in
    the control project and built it (JAR appeared in the Libraries folder).
    Now I
    open up the page flow in my web app project, and try to drag the java
    control
    onto my page flow - but I get an eror that the control must reside in
    the same
    project! It does not automatically appear on my palate, so if I go over
    to the
    palate on the right, and try to "add control" I only get a list containing
    the
    BEA controls - no custom controls are listed.
    What am I doing wrong? How can I incorporate my custom control into a
    web project?
    I don't want to move the control in the web project, since this contradicts
    the
    concept of a separate shared library. I should be able to build a library
    of controls
    and reuse them in our web projects right?
    -Bob

  • Is it possible to create a custom filter control in SSRS 2005?

    Hello!
    I need to make a custom filter control for my reports which will provide some options for date parameter:
    - year and month selection
    - Some RadioButtons: "Yesterday", "Today", "Tommorow", "Last week", "Next week"
    - Date range
    Please, give any suggestion which can help to solve this task.

    Vsevolod,
    Unfortunately there is no built-in support for this customization in SSRS so far. You have to code to implement this feature in your custom application. For example, use a ReportViewer control in an ASP.NET application or a Win Form application.
    Anyway I think that you promote a good suggestion to improve Microsoft product's feature. Could you please give your feedback to our product team here?
    https://connect.microsoft.com/sql
    Thank you.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Custom Table Control in VA21/22/23 Tranaction Issue

    Hi Friends,
    Working on SAP R/3 Release 4.6C.
    There is a custom Table Control in one of the screen of VA21 Transaction.
    My requirement is to insert one more Field/Column to this table Control.
    The following are the sequence of fields in Table Control.
    Column1
    Column2
    Column3
    Column4
    After Inserting the Field in the middle of Column1 and Column2.
    The Sequence of Table Control is getting Changed.
    The Table Control has to show like this.
    Column1
    Column2     "New Field which is added
    Column3
    Column4
    Column5
    But I'm getting as below
    Column5
    Column3
    Column2     "New Field which is added
    Column1
    Column4
    When executing the Table Control Screen in SE51 with Screen Name and Screen Number,I am getting the perfect output.
    When executing thro VA21/22/23, Iam getting sequence mismatch.
    Anyone come across this scenario. Please guide to solve this.
    Thanks.

    Solved.
    Thanks.

  • How to implement a custom UI control

    I need to display interactive maps on the Windows SAP GUI. The maps
    are dynamically generated and fetched from an external map server using ABAP.
    The interactive map should be scrollable and allow the user to select a single or multiple POIs (Point Of Interest) using the mouse and drag and drop them into
    a table and/or tree. There should be an visual indication on the map
    for selected POIs and a tooltip displaying additional information should
    pop up if the cursor is placed above a POI. I've implemented all this using
    SWT / Java already which was pretty straight forward.
    I looked at the CL_GUI_PICTURE control but it seems that I would need more
    events (such as OnMouseMove, OnLeft/RightButtonDown, OnLeft/RightButtonUp,
    OnDrag) in order to implement this. I think that the CL_GUI_PICTURE has
    just a few events in order to minimize client/server interactions.
    What are my options to implement such an interactive map on SAP GUI?
    I found this blog where a custom control is implemented using ActiveX:
    /people/thomas.jung3/blog/2004/09/01/using-net-windows-controls-in-the-abap-control-framework
    Is this the way to go? Is there an official developers guide for custom
    UI controls from SAP?

    Hi Dominik,
    Sorry but I don't have an answer - I have been trying to solve the same problem for a while now. I even contacted Thomas Jung directly, but was not able to solve the event sink\handler problem. Although I did manage to re-create his example and display a .NET VB Textbox within the SAP GUI...
    If you do manage to get any further - please let me know how you managed to get the event handling to work...
    Tx,
    N

  • Disable some columns in table control?

    Hi
    How to disable some columns in table control.
    For Ex: Table contains 8 columns.
    In first row i want to disable first 4 columns.
    in second row i want to disable last 4 columns.
    In third row i want to disable first 2 and last 2 columns.  How can we achieve this?
    Cheers,
    Venkys.

    HI
    Create three attribute in the node which is bound to the table as data source.
    say pro1, pro2, and pro3 of type wdy_boolean.
    now bind the enabled property of first four column editors to pro1, last 4 to pro2, and pro3 to first 2 and last 2.
    then go to the eventhandler of the dropdown 's on select event and write the code to update the values of these attribute
    according to the selected value.
    here is the sample code.
    DATA lo_nd TYPE REF TO if_wd_context_node.
        DATA lo_el TYPE REF TO if_wd_context_element.
            DATA lv_VAL LIKE ls_dealer1-name.
        lo_nd = wd_context->get_child_node( name = 'DEALER1').
      lo_el = lo_nd->get_element(  ).
        lo_el->get_attribute(
          EXPORTING
            name =  `NAME`
          IMPORTING
            value = lv_VAL ).
         DATA PR1 TYPE WDY_BOOLEAN.
         DATA PR2 TYPE WDY_BOOLEAN.
         DATA PR3 TYPE WDY_BOOLEAN.
      PR1 = ABAP_TRUE.
    PR2 = ABAP_TRUE.
    PR3 = ABAP_TRUE.
    IF LV_VAL EQ 'A'.
    PR1 = ABAP_FALSE.
    PR2 = ABAP_TRUE.
    PR3 = ABAP_TRUE.
       ELSEIF LV_VAL EQ 'B'.
    PR1 = ABAP_TRUE.
    PR2 = ABAP_FALSE.
    PR3 = ABAP_TRUE.
    ELSEIF LV_VAL EQ 'C'.
      PR1 = ABAP_TRUE.
    PR2 = ABAP_TRUE.
    PR3 = ABAP_FALSE.
      ENDIF.
       LO_EL->SET_ATTRIBUTE(
       NAME = 'PRO1'
       VALUE = PR1
       LO_EL->SET_ATTRIBUTE(
       NAME = 'PRO2'
       VALUE = PR2
       LO_EL->SET_ATTRIBUTE(
       NAME = 'PRO3'
       VALUE = PR3
    thanks
    sarbjeet singh

  • Disable rows of a table control

    Hi Experts,
      I want to disable a row in table control, whenever SAVE is pressed.
      Scenario: A Table control having 5 rows. User entered data in the first row and pressed SAVE, then
                    that particular row should become greyed out or disabled, so that the user cant change or edit
                    anymore.
    Thanks
    Chandan

    Hi Chandan,
    in the PBO write the code to make the field display by the below logic..
    first read the table control internal table line and check whether the field is filled if the field had value make it display mode else make it input filed..
    see the below logic how to write it..
    PROCESS BEFORE OUTPUT.
    * Table control for OUTPUT
      LOOP AT t_zcxref_classes INTO wa_zcxref_classes
           WITH CONTROL tc_batch .
        MODULE charac_classname_out.            
      ENDLOOP.
    MODULE charac_classname_out OUTPUT.
    * Table control reading values from input screen & displaying on screen
      READ TABLE t_zcxref_classes INTO wa_zcxref_classes
                                INDEX tc_batch-current_line.
    * Logic for screen Display when Required Flag = 'D'
      IF wa_zcxref_classes-required_flag is not intial.      "if the input field has some value making as disaply
        LOOP AT SCREEN.
          IF screen-name = 'WA_ZCXREF_CLASSES-ATWRT'. "field to make as display
            screen-input = 0.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    ENDMODULE.                
    Regards,
    Prabhudas

  • Could you please send me the links to get an idea on Custom table controls

    Hi Friends,
               I am working on custom table controls, Could you please send me any links on Custom table controls or documentation.
       Thanks and Regards,
       Sandeep Kumar Bonam

    Hello Sandeep,
    See here for the latest table features in 2004s.
    <a href="/people/bertram.ganz/blog/2006/07/03/web-dynpro-java-foundation--whats-new-in-sap-netweaver-2004s:///people/bertram.ganz/blog/2006/07/03/web-dynpro-java-foundation--whats-new-in-sap-netweaver-2004s
    This link also has a lot information on tables
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d43bb0e5-0601-0010-3a97-d9760726bf4c">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d43bb0e5-0601-0010-3a97-d9760726bf4c</a>
    Regards,
    Sudeep.

  • Building custom date control in WAD

    Hi,
    Plz. let me know how can I build a custom date control in WAD which will take date intervals.
    OR
    How can I represent a date interval variable in WAD by not using the variable screen feature of the web template.
    Thanks,
    Priya

    Hi Ashish,
    Actually I searched for quite sometime & also consulted with SAP, but could not find an answer. I thus ended up building the whole logic myself. I used Input Field & Button Group web items to build the date controls & made it look like the standard SAP date control complete with icon etc. I enabled Javascript on the Button Group webitems that called a Calendar control for input date selection (my requirement was a date interval, so from & to dates). I then passed the input selection thru' Javascript using Command API to the query variables on click of another Button Group webitem along with some other inputs from Drop Down webitem etc.
    --Priya

  • CProjects -error after modifying and then reverting custom field control

    Hi,
    We want to make a field non-mandatory in cProjects. We first changed the config of the field in the custom field control  in SPRO by making it changeable.But after that cProjects is giving a dump when we try to view or create any project.
    We reverted this change and restarted the servers but still see the dump.
    Any pointers on how to solve this issue will be helpful.
    Thanks,
    Simmi

    Vivek, Thanks for your reply.
    We did not modify the standard field control.We just tried to make the one of the standard fields 'Changeable' in the custom field control we have.But we got the dump, so we reverted the change back to 'Mandatory'.
    Now everything is same in the development server as other servers.. but still the dump shows up. Tried clearing IE cache , restarting server.. but the dump doesn't want to leave it seems.. Any ideas on what else we can try ?
    Thanks,
    Simmi
    Edited by: Simmi Balakrishnan on Sep 15, 2010 4:15 PM

  • MFC Custom static control state is always 4

    Hi,
    I am creating a custom static control, and want to load different bitmap for different state.
    I inherited CMyStatic from CStatic and override the below functions. And i created the static control using SS_NOTIFY macro. 
    I am getting the state of the static control is 4. Then i called staticCtrl..EnableWindow(TRUE),
    also the state is 4.
    Can some one please help, how to find the correct state of static control like, STN_ENABLED, STN_DISABLE,
    STN_CLICKED etc..
    //CMyStatic.cpp
    BEGIN_MESSAGE_MAP(CMyStatic, CStatic)
    ON_WM_DRAWITEM()
    END_MESSAGE_MAP()
    void CMyStatic::DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct)
    int state = lpDrawItemStruct->itemState;
    void CMyStatic::PreSubclassWindow()
    CStatic::PreSubclassWindow();
    ModifyStyle(0,SS_OWNERDRAW);
    //MyDlg.cpp
    staticCtrl.Create(L"",BS_FLAT |  WS_VISIBLE | SS_CENTER | SS_NOTIFY,CRect(20,20,100,100),this,1111111); //state:4
    staticCtrl..EnableWindow(TRUE); //State:4
    Can someone please help on this.
    Thanks

    Hi LokanathNayak,
    From your description, you add SS_NOTIFY style to your static control, so the parent windows will get the notification message, STN_ENABLED, STN_DISABLE, STN_CLICKED etc..
    You need to manually add the notify message handler. Something like this:
    afx_msg void OnClicked();
    afx_msg void OnDoubleClicked();
    afx_msg void OnEnabled();
    BEGIN_MESSAGE_MAP(CMFCStaticNotifyDlg, CDialogEx)
    ON_WM_SYSCOMMAND()
    ON_WM_PAINT()
    ON_WM_QUERYDRAGICON()
    ON_STN_CLICKED(ID_STATIC, &CMFCStaticNotifyDlg::OnClicked)
    ON_STN_ENABLE(ID_STATIC, &CMFCStaticNotifyDlg::OnEnabled)
    ON_STN_DBLCLK(ID_STATIC, &CMFCStaticNotifyDlg::OnDoubleClicked)
    ON_BN_CLICKED(IDC_BUTTON1, &CMFCStaticNotifyDlg::OnBnClickedButton1)
    ON_BN_CLICKED(IDC_BUTTON2, &CMFCStaticNotifyDlg::OnBnClickedButton2)
    END_MESSAGE_MAP()
    void CMFCStaticNotifyDlg::OnClicked()
    TRACE(L"clicked");
    void CMFCStaticNotifyDlg::OnEnabled()
    TRACE(L"enabled");
    void CMFCStaticNotifyDlg::OnDoubleClicked()
    TRACE(L"double click");
    Best regards,
    Shu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • In-App Purchasing disabled. Check your parental control settings and try again

    I have played games for quite a while and have used the purchased many "lives" for games, etc. For about a week now, whenever I go to purchase some like this, I receive the following error message: "In-App purchasing disabled. Check your parental control settings and try again later."
    I have read the threads about this and have done everything that was said to do. I go to settings > General > Restrictions. I ensured that "enable Restrictions" is turned off.
    But I still receive the same error message. I have an ipad 2 with IOS 7.1.
    ANy further ideas? Is there something in the iTunes store that needs to be checked?
    I've about given up. Thanks for any help

    I will try doing this, but I would like to add ... if I'm playing Candy Crush and want to buy additional lives, etc., I have no problem in purchasing them. Could it be the specific game that is not allowing me to buy anything? And I know this doesn't make much sense either, but I'm grasping at anything here because I've purchased them before.
    You said to turn on in app purchases .. When I go into Settings > General, I'm ensuring that Restrictions are Disabled, correct? I can see the "in-App purchases" but I'm not able to do anything with it since my restrictions are disabled ... Is this correct? I'm a little confused here.

Maybe you are looking for