Feature rq: RVStyleTemplateComboBox BorderStyle = bsNone

General TRichView support forum. Please post your questions here
Post Reply
max.beliy
Posts: 26
Joined: Tue Jul 12, 2016 11:35 pm

Feature rq: RVStyleTemplateComboBox BorderStyle = bsNone

Post by max.beliy »

Hi,
I want request feature for RVStyleTemplateComboBox - Zero Border.
Some thing like BorderStyle = bsNone
Sergey Tkachenko
Site Admin
Posts: 17566
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

This combobox is based on the standard TComboBox. It only overrides DrawItem method to draw preview of styles, but all other parts of the combobox (border, button) are drawn like in a normal combobox.

In future, we plan to create style comboboxes based on thirdparty components (SpTBXLib, DevExpress, etc.)
Steku
Posts: 9
Joined: Fri Dec 13, 2013 4:01 pm

Post by Steku »

Sergey Tkachenko wrote:This combobox is based on the standard TComboBox. It only overrides DrawItem method to draw preview of styles, but all other parts of the combobox (border, button) are drawn like in a normal combobox.

In future, we plan to create style comboboxes based on thirdparty components (SpTBXLib, DevExpress, etc.)
+1 (DevExpress)
max.beliy
Posts: 26
Joined: Tue Jul 12, 2016 11:35 pm

Post by max.beliy »

Sou then

Code: Select all

 SetWindowRgn(ComboBox1.Handle, CreateRectRgn(2,2,ComboBox1.Width - 2,
               ComboBox1.Height - 2), True)
will be enough.

thanks
Post Reply