RichTextToolStrip, where is localization?


Author
Message
Michel Levy
Michel Levy
Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)
Group: StrataFrame Users
Posts: 193, Visits: 9K
Hi,

I can't find any localization for the RichTextToolStrip... Unsure Is it missing ?

Replies
Michel Levy
Michel Levy
Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)Advanced StrataFrame User (607 reputation)
Group: StrataFrame Users
Posts: 193, Visits: 9K
Thanks Trent,

I'll send you french strings (I've translated ToolTipTexts).
Please, don't forget to change the pictures for cmdBold and cmdUnderline, so they must be respectively the letter G and S.

I needed to use it quickly, so I copy/paste from SF sources into my RichTextToolStrip subclass, but I've 2 issues:

1)
I could not modify brwImage.Title for localize it, so I create a new OpenFileDialog, and add a method

Private Sub cmdPicture_click(ByVal sender As System.Object, ByVal e As Windows.Forms.ToolStripItemClickedEventArgs) Handles Me.ItemClicked

If e.ClickedItem.Name = "cmdPicture" Then

Dim rtfControl As System.Windows.Forms.RichTextBox = Me.ActiveRichTextControl
If rtfControl IsNot Nothing Then

Dim PictControl As New System.Windows.Forms.OpenFileDialog
Dim loResult As Windows.Forms.DialogResult
With PictControl
        .Filter =
"Fichiers d'Images(*.bmp, *.jpg , *.png , *.gif) |*.bmp;*.jpg;*.png;*.gif"
        .Title = "Quelle Image ?"
End With

loResult = PictControl.ShowDialog()
If loResult = DialogResult.OK Then
        Me.MLSFInsertImageIntoRTF(rtfControl, PictControl.FileName)
End If

End If

End If

End Sub

But your brwImage pops up after my PictControl, how to prevent it?

2)
Where do you store your tooltiptexts for those 3 buttons corresponding to keystrokes? when disabled, cmdbold shows my tooltip, but when the richtextbox is in editmode, it's your tooltip which is added before the keystroke?
Where did you write it? makes me Crazy !

(please, don't forget I'm beginner in .net Sad )

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Please, don't forget to change the pictures for cmdBold and cmdUnderline, so they must be respectively the letter G and S.

This probably won't happen.  This is a static image, so in this case you will want to supply your own images by inheriting the RTS Toolstrip and the setting the images that you want in code.  You can do that for the translations as we speak as well also so that you do not have to wait on us.

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Where do you store your tooltiptexts for those 3 buttons corresponding to keystrokes? when disabled, cmdbold shows my tooltip, but when the richtextbox is in editmode, it's your tooltip which is added before the keystroke?

It is in the SetToolbarAvailability method on the RichTextToolstrip class.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search