Button for change the text in the RTB ?

Hi
It been long time since i do some codes. so i forget the basic
What i want to do is that when i click on a (Bold or Italic) button the text on the RTB become bold and another click on that button the text go back normal.
Can some code this please ?
Thank you

Hi
Here is something to work on:
BOLD
' bold
If Not RTB.SelectionFont Is Nothing Then
Dim cf As System.Drawing.Font = RTB.SelectionFont
Dim nf As System.Drawing.FontStyle
If RTB.SelectionFont.Bold = True Then
nf = FontStyle.Regular
Else
nf = FontStyle.Bold
End If
RTB.SelectionFont = New Font(cf.FontFamily, cf.Size, nf)
End If
ITALIC
' italic
If Not RTB.SelectionFont Is Nothing Then
Dim cf As System.Drawing.Font = RTB.SelectionFont
Dim nf As System.Drawing.FontStyle
If RTB.SelectionFont.Italic = True Then
nf = FontStyle.Regular
Else
nf = FontStyle.Italic
End If
RTB.SelectionFont = New Font(cf.FontFamily, cf.Size, nf)
End If
Regards Les, Livingston, Scotland

Similar Messages

  • What is the button to change the variant in alv?

    Hi guys,
              can u tell me  is there any button to change the variant in alv?. what is tanscation varient in report , hw it will used.

    Hi
    The ALV Grid Control is a tool with which you can output non-hierarchical lists in a
    standardized format. The list data is displayed as a table on the screen.
    The ALV Grid Control offers a range of interactive standard list functions that users need
    frequently (find, sort, filter, calculate totals and subtotals, print, print preview, send list,
    export list (in different formats), and so on. These functions are implemented in the
    proxy object class. You as the programmer have the possibility to turn off functions not
    needed. In most cases the implementations of the standard functions provided by the
    control are sufficient. However, if required, you can adjust these implementations to
    meet application-specific needs.
    You can add self-defined functions to the toolbar, if necessary.
    The ALV Grid Control allows users to adjust the layout of lists to meet their individual
    requirements (for example, they can swap columns, hide columns, set filters for the
    data to be displayed, calculate totals, and so on). The settings (list customizing) made
    by a specific user are called a display variant. Display variants can be saved on a userspecific
    or on a global basis. If such display variants exist for a list, they can be offered
    to the user for selection. If a display variant is set as the default variant, the associated
    list is always displayed based on the settings of this variant.
    <b>2. REUSE_ALV_LIST_DISPLAY
    REUSE_ALV_GRID_DISPLAY
    REUSE_ALV_FIELDCATALOG_MERGE
    REUSE_ALV_COMMENTARY_WRITE</b>
    3. Use of Field Catalog is to determines the technical properties & add formating information of the column.
    6. all the definition of internal table, structure, constants are declared in a type-pool called SLIS.
    7.fieldcat-fieldname
    fieldcat-ref_fieldname
    fieldcat-tabname
    fieldcat-seltext_m
    5. Form user_command using r_ucomm like sy-ucomm rs_selfield type slis_selfield.
    Sap provides a set of ALV (ABAP LIST VIEWER) function modules which can be put into use to embellish the output of a report. This set of ALV functions is used to enhance the readability and functionality of any report output. Cases arise in sap when the output of a report contains columns extending more than 255 characters in length.
    In such cases, this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display. This is a very efficient tool for dynamically sorting and arranging the columns from a report output.
    The report output can contain up to 90 columns in the display with the wide array of display options.
    The commonly used ALV functions used for this purpose are;
    <b>1. REUSE_ALV_VARIANT_DEFAULT_GET
    2. REUSE_ALV_VARIANT_F4
    3. REUSE_ALV_VARIANT_EXISTENCE
    4. REUSE_ALV_EVENTS_GET
    5. REUSE_ALV_COMMENTARY_WRITE
    6. REUSE_ALV_FIELDCATALOG_MERGE
    7. REUSE_ALV_LIST_DISPLAY
    8. REUSE_ALV_GRID_DISPLAY
    9. REUSE_ALV_POPUP_TO_SELECT</b>
    Purpose of the above Functions are differ not all the functions are required in all the ALV Report.
    But either no.7 or No.8 is there in the Program.
    How you call this function in your report?
    After completion of all the data fetching from the database and append this data into an Internal Table. say I_ITAB.
    Then use follwing function module.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = 'Prog.name'
    I_STRUCTURE_NAME = 'I_ITAB'
    I_DEFAULT = 'X'
    I_SAVE = 'A'
    TABLES
    T_OUTTAB = I_ITAB.
    IF SY-SUBRC <> 0.
    WRITE: 'SY-SUBRC: ', SY-SUBRC .
    ENDIF.
    ENDFORM. " GET_FINAL_DATA
    The object F_IT_ALV has a field, the activity ACTVT, which can
    contain four permitted values: 01, 02, 03 and 70. Each of the
    activities 01, 02 and 70 controls the availability of particular
    functions (in the menu and the toolbar) of the ALV line item list:
    a) 01: "Settings -> Display variant -> Save..."
    b) 02: "Settings -> Display variant -> Current..." and
    "Settings -> Display variant -> Current header rows "
    c) 70: "Settings -> Display variant -> Administration..."
    Activity 03 corresponds to the minimum authorization, which is the
    most restricted one: The user can only select layouts which have
    been configured already. In particular, all of the other functions
    named above are inactive with activity 03.
    Now if you want to permit a user to change the column selection and
    the headers as well as to save the layout thus created, for example,
    but if you do not want to permit the user to administrate the
    layouts, you grant him or her the authorization for activities 01
    and 02.
    Check this link it will be mosty usefull for u
    http://www.sap-img.com/fu017.htm
    Reward all helpfull answers
    Regards
    Pavan

  • The divice for changing the an ipod touch to an iphone?

    Hi,everybody, how do you know the divice for changing the an ipod touch to an iphone? I have an ipod touch now. I really want to own an iphone, however, the price were far beyond my ways. I hear that there is a device can change the ipod to an iphone, how is it?Anybody can tell me?
    Thanks so much!

    I do a LOT of calling on mine. Simply install the Skype app and get a SkypeOut account and SkypeIn number. They run about $60.00 a year for both. You get unlimited US & CA long distance, plus voicemail. For texting, I bought and use the TextFree app. You will need a wifi connection though for all this to work, but there are public wifi hot spots all over. I've even found open networks driving down the street. I just pull over, logon and make my call.
    Check out the new remodeled MacOSG website! 24-hour Apple-related news & support.
     MacOSG: An Apple User Group  iTunes: MacOSG Podcast  Follow us on Twitter: MacOSG

  • Fuba or Report for Change the OBJECT_ID in one order documents

    Hi Guru's
    we want to reuser the Order-ID in CRM contracts (CRMD_BUS2000121)
    So I search a FuBa or a report for Changing the OBJECT_Id in the one order document or is there any other possibility.
    we use SAPCRM 4.0
    thanks
    Reiner

    Hi Reiner,
    changing a Order or Contract ID is not possible because they are the key of the Object. Perhaps I've don't get your point. Please describe your requirement in more detail.
    Regards
    Gregor

  • T-Code for changing the default Exchange Rate reference for creating PO?

    Dear All,
           Can somebody kindly give me the T-Code for changing the default
    Exchange Rate reference for creating PO? Is there a Step by Step
    procedure before changing the default exchange rate?
    Thank you in advance.
    Regards,
    Gopesh

    Hi
    There is not such Tcode to change the default exchange rate from the PO.
    If you want you can confugure the exchange rate in the following path in the IMG,
    SPRO>MM>LIV>Incoming Invoice>Configure How Exchange Rate Differences Are Treated
    Hope it helps you.
    Cheers
    Umakanth

  • Scripts for changing the address of the user when they have been in the box for 6 months

    Scripts for changing the address of the user when they have been in the box for 6 months
    If users are in a folder for deactivated users and disabled users in Active Directory, and been there for 6 moths do: change email address in exchange to existing email address.old 
    Anyone have suggestions on how I can go about it?

    What is this "box"?  What is this "folder" you're asking about?  You'll likely get a better answer if you use standard terminology.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • I need to reset security question but the email that was saved for changing the password and security question is blocked , what can i do

    i need to reset security question but the email that was saved for changing the password and security question is blocked , what can i do?
    i purchased my account but i cant use that because apple ask me about security question and i forgot the correct answer

    Alternatives for Help Resetting Security Questions and/or Rescue Mail
         1. If you have a valid rescue email address, then use this procedure:
             Rescue email address and how to reset Apple ID security questions.
         2. Fill out and submit this form. Select the topic, Account Security. You must
             have a Rescue Email to use this option.
         3. This is the only option if you do not already have a valid Rescue Email.
             These are telephone numbers for contacting Apple Support in your country.
             Apple ID- Contacting Apple for help with Apple ID account security. Select
             the appropriate country and call. Ask to speak to the Account Security Team.
    Note: If you have already forgotten your security questions, then you cannot
             set up a rescue email address in order to reset them. You must set up
             the rescue email address beforehand.
    Your Apple ID: Manage My Apple ID.
                             Apple ID- All about Apple ID security questions.

  • Hello there .. When I want to change my security question I can't and show me Emil not for me to send the information for change the security question how to fix this problem

    Hello there .. When I want to change my security question I can't and show me Emil not for me to send the information for change the security question how to fix this problem

    Alternatives for Help Resetting Security Questions and/or Rescue Mail
         1. If you have a rescue email address or a Security Questions issue, then see:
             If you forgot the answers to your Apple ID security questions - Apple Support.
             Manage your Apple ID primary, rescue, alternate, and notification email addresses - Apple Support
         2. Fill out and submit this form. Select the topic, Account Security. You must
             have a Rescue Email to use this option.
         3. This is the only option if you do not already have a valid Rescue Email.
             These are telephone numbers for contacting Apple Support in your country.
             Apple ID- Contacting Apple for help with Apple ID account security. Select
             the appropriate country and call. Ask to speak to the Account Security Team.
         4. Account security issues almost always require you to speak directly to an
             Apple representative to securely establish your identity as the account holder.
             You can set it up so that Apple calls you, either immediately or at a time
             convenient to you.
                1. Go to www.apple.com/support.
                2. Choose Contact Support and click Contact Us.
                3. Choose Other Apple ID Topics and choose the appropriate topic for
                    your issue.
                4. Follow the onscreen instructions.
             Note: If you have already forgotten your security questions, then you cannot
             set up a rescue email address in order to reset them. You must set up
             the rescue email address beforehand.
    Your Apple ID: Manage My Apple ID.
                            Apple ID- All about Apple ID security questions.

  • I followed the directions for changing the name of my iPad and it did so in iTunes but the old name remains on the actual iPad. How can I change the name on the iPad itself?

    I followed the directions posted in questions/answers for changing the name of my iPad and it changed the name in iTunes but not on the actual iPad. How can I change the name on the iPad too?

    On your iPad, go to settings, general, about and click on name then change it.
    I did it on my iPad with iOS 5, i dont know if it works on iOS 4.3.2

  • This is not a question just an observation. happy birthday ipod. thank you for the fantastic 10 years, thank you for changing the way we think about music.

    this is not a question just an observation. happy birthday ipod. thank you for the fantastic 10 years, thank you for changing the way we think about music.

    frank,
     every negative experience is an opportinity to learn.   deleting or moderating these experiences would be turning away the chance to learn.   as long as users follow the participation rules, we allow even the most negative posts to remain. 
    as you said, forums are inherently negative by nature as users typically come here to solve a problem.   those of us who try to solve the problems are in the minority.   we certainly appreciate users such as yourself who voluntarily return to the forum to help out, especially those who initially came here to solve a problem themselves.
    thank you as well.
    -erik
    ThinkStation C20
    ThinkPad X1C · X220 · X60T · s30 · 600

  • If we dont want to use sleep/wakeup button for dissconnect the call so there is any other option for dissconnect the call without using sleep/wakeup button in ios 8.1.3. kindly suggest

    if we dont want to use sleep/wakeup button for dissconnect the call so there is any other option for dissconnect the call without using sleep/wakeup button in ios 8.1.3 . kindly suggest..!

    Hello kumar kalptaru, 
    Thank you for participating in the Apple Support Communities. 
    It sounds like you're wondering how to hang up a call besides using the Sleep/Wake button. 
    Other than this, you can tap the red hang up button on the Phone app. See the iPhone User Guide for more help:
    While on a call - iPhone
    End a call. Tap  or press the Sleep/Wake button.
    Best Regards,
    Jeremy 

  • I have set up my work Exchange email/calendar. After setting up I am getting passcode expired message and asking for changing the passcode with a 16   digit and 4 special characters. No combination of numberic, alphanumeric, special characters works. Help

    I have set up my work Exchange email/calendar. After setting up I am getting passcode expired message and asking for changing the passcode with a 16 +  digit and 4 special characters. No combination of numberic, alphanumeric, special characters is working. Help!!

    I have set up my work Exchange email/calendar. After setting up I am getting passcode expired message and asking for changing the passcode with a 16 +  digit and 4 special characters. No combination of numberic, alphanumeric, special characters is working. Help!!

  • Button for changing scaling of key figures in BEx?

    Hi everybody!
    Does anybody know if it is possible to create a button in BEx Analyzer for changing the scaling of all/certain key figures?
    Is it possible to use functions from the BEx API? I don't want to use Excel formulas like "divide by 1.000".
    Thanks in advance,
    Joerg

    Hi,
    you cannot  create button in Bex analyzer....infact you can change it's properties at the local view level once the query is run in the key figure properties when you execute the query thorugh bex analyzer....you canot put a buttin justto change the scaling factor...aslo you can change this at the ewb template level...if you run the query on the web.....
    Thanks
    Ajeet

  • On Button click change the button display text from LOCK to UNLOCK

    Hi Freinds,
    I am rendering a TreeByNestingTableColumn with two columns  like:  Name , Status as below shown. In The status column I inserted a Table Cell editor Button type and  the button element property text mapped to the context attribute called statusButton and set the button name in the code to display as LOCK. When the tree renders all the vales are displaying in status column as LOCK. Now whrn the user click on LOCK i should fire the event and change the button text from LOCK to UNLOCK. The same way when they click on UNLOCK and i have change to LOCK. please help how to do this.
       Name                          Status
    |> Employee1------------------LOCK (when i click on lock  button here, his and under neath of him button status should                 
            |>Employee2-----------LOCK    change from LOCK status to UNLOCK)                                                     
                   |>Employee3----LOCK
    Thanks in advance.
    Thanks
    Srini

    Armin,
    Yes I removed the method and created the calicualted value as you suggested and I able to get the out put what i have asked.
    My complete scenario is some thing like this, i able to complete upto certain level but not able to make it work for complete scenario, I appreicate your comments or advice for getting me the below output
    I have a TreeByNestingTableColum UI rendering with three columns as NAME(node |>), STATUS(Toggle Button) and PLANNING (Text view)  (developed based on sample tutorial Integration of a Tree Structure in a Web Dynpro Table.pdf)
    I am trying to get this output:
    From the sap backed i am getting flag value, based on that i have to render Tree UI columns NAME,  STATUS(Toggle Button) and PLANNING (Text view). if the flag is null i have to show as LOCK and In Planning else Unlock and Submitted  (please see the below picture for clear idea)*
    if (statusflag = ""){
    i have to show values in two columns like Lock ...Planning
    } else
    show values in two columns like Un Un Lock ...Submitted
    One more thing is , If i lock a record at secound node level , then all the records should locked underneath of that node (it could be 2 nodes or 10 nodes) and then the status column values should change from lock to Unlock and Planning column values should change from In Planning to Submitted. where as when i Click on Unlock , only that perticular record (not node level) should changed from unlocked to Lock and planning is  from Submitted to In Planning.
    This is the functionality actually I am looking for.
    Here the tree sample:
    Name                        Status              Planning
    |>M1                         Lock                 In Planning
       |>M2                      Lock                 In Planning
         *M2a                    Lock                 In Planning
       |>M3                    Un Lock                Submittd
    Thank you.
    Srini

  • Create a duplicate of a button and change the text on THAT button only

    something is frustrating me w/Flash. Not sure if there is a workaround within Flash itself or not. I have a group of buttons with fancy backgrounds and text. They may have originally been imported from Ilustrator, but are now MC's. I tried to select one in the library, right click (on PC) and duplicate. This does create a new instance. I give the new instance a different name and drag onto the stage. When I change the test though it changes the text ALSO on the button which I duplicated from. Don't want this. Each button needs to have it's own unique text. Is there a way to accomplish this in Flash? I know one alternative is to try and find the Illustrator template and create a new one, but I would rather not do this if possible.
    TIA

    This could be happening for a couple of reasons. The good news is its easily fixable, and you have options.
    Option 1.
    From your explanation of the problem I am assuming you are using static text inside your MCs.
    First, find out what's really happening with your two mcs.
    make sure you aren't using 2 of the same clip (either the original or the duplicate).Not the  instance names, but the actual names of the clip as found in the Library.
    If they are different, i.e. "myclip" and "copy of myClip", then odds are there is another mc that holds your text inside them. So, go into either one of your movie clips and check for nested movie clips inside them. If there are nested clips, you need to duplicate each of those clips as well otherwise you will continue to have the text change in both.
    Option 2.
    if you are ok with a little bit of scripting, you can just go inside your mc and make your text fields "dynamic" and give it an instance name.
    then open up the actions panel, create new layer, and add the following frame script:
    //insert your instance names where necessary
    myMC.pathToMyTextField.myTextField.text = "the text for this button";
    do this for each button and it should fix your issue.
    hope this helps.
    M.

Maybe you are looking for

  • Links Pallet Missing. Adobe Help Line baffled.

    A day killed on the Adobe Help Line and no hope in sight. The Links Pallet is AWOL and Adobe tech support can't find it. Originally the problem was an error when trying to export a 275 page book to idml format as something was going wrong with the mi

  • HT1203 Multiple users on one account

    I have one account, and I want to be able to have multiple users with access to the library, but I don't want everything to sync. How can I do this?

  • Oel updates and oracle 10g

    Hi Can i get updates for oel4/5 ?(using for testing at home) can i install oracle 10g oel 5 ? thanks

  • Two proposed RAID configs on P965 - Which is better and why?

    Hello again, I've upgraded my signature to indicate my current status - case and power supply due in today. I'm considering getting a 3ware, Promise or Adaptec, dedicated RAID controller card and have a few questions.      1. Am I correct in assuming

  • I have to contact customer support to remove a fraking credit card?!?!?!?!!

    good lord do i hate itunes.  i'm just trying to buy a gift certificate that i can print and 3 freaking hours later it's just not going to happen.  First i had to install itunes on my parents computer, but no where does it say that's necessary. Then o