U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Widgets - General questions or Mixed problems » DropList Items Text highlight area height (How to increase the DropList Items Text highlight area height )
Re: DropList Items Text highlight area height [message #62056 is a reply to message #62055] Wed, 16 September 2026 18:38 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1284
Registered: August 2007
Senior Contributor
Hi lmonda,

Yes, you can change the height. Even independently, per-line:

#include <CtrlLib/CtrlLib.h>

using namespace Upp;

struct MyApp : TopWindow  {
	DropList list;
	MyApp()
	{
		Sizeable().Zoomable().CenterScreen().SetRect(0, 0, 400, 400);
		Add(list.HCenterPos(300).VCenterPos());

		for(int i = 0; i < 5; i++)
			list.Add(i).SetLineCy(i, GetStdFontCy() * max(i, 1));
		list.GoBegin();

	}
};

GUI_APP_MAIN
{
	MyApp().Run();
}

Best regards,
Oblivion


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GridCtrl not following SetDateScan / Format
Next Topic: all ctrl's frame inset/outset inverted
Goto Forum:
  


Current Time: Wed Sep 30 05:31:00 GMT+2 2026

Total time taken to generate the page: 0.01789 seconds