korasoglu Posted November 12, 2013 Share Posted November 12, 2013 (edited) RichText Set Text dediğimde istediğim fontu ve rengi nasıl kullanabilirim Edited November 12, 2013 by korasoglu Quote Link to comment Share on other sites More sharing options...
xarax Posted November 12, 2013 Share Posted November 12, 2013 -- RichText object properties table. tblRichTextProps = {}; tblRichTextProps.Text = "Sample Text"; tblRichTextProps.RawRTF = "{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 MS Shell Dlg;}}\\viewkind4\\uc1\\pard\\f0\\fs17 Sample Text\\par}"; tblRichTextProps.VScrollbar = true; tblRichTextProps.HScrollbar = true; tblRichTextProps.Transparent = true; tblRichTextProps.BackgroundColor = 16777215; tblRichTextProps.Border = BORDER_SUNKEN; tblRichTextProps.ReadOrder = READ_STANDARD; tblRichTextProps.ReadOnly = true; tblRichTextProps.AutoDetectURL = false; tblRichTextProps.ShowContextMenu = true; tblRichTextProps.Enabled = true; tblRichTextProps.Visible = true; tblRichTextProps.X = 0; tblRichTextProps.Y = 0; tblRichTextProps.Width = 200; tblRichTextProps.Height = 120; tblRichTextProps.ResizeLeft = false; tblRichTextProps.ResizeRight = false; tblRichTextProps.ResizeTop = false; tblRichTextProps.ResizeBottom = false; tblRichTextProps.TooltipText = ""; RichText.SetProperties("RichText1", tblRichTextProps); Bunun gibi bir özellik tablosu oluştur ve istediğin değişiklikleri yap. Bu şekilde kullan 4.satırdaki RawRTF de düzenleme yaparak istediğin hale getirebilirsin. Quote Link to comment Share on other sites More sharing options...
korasoglu Posted November 12, 2013 Author Share Posted November 12, 2013 Tabloyu oluşturdum text text rengi değiştiremiyorum tabloda o yok kendisinden hangi rengi seçersem seçiyim siyah oluyor. RawRTF oynama yapıyorum renk yine değişmiyor. Ben Yazdırma konusunda sorun yaşamıyorum text rengini değiştiremiyorum. Quote Link to comment Share on other sites More sharing options...
xarax Posted November 12, 2013 Share Posted November 12, 2013 http://www.tnctr.com/topic/180580-rich-text-kodlary-yazy-rengini-dedhithtirmek/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.