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 )
DropList Items Text highlight area height [message #62055] Wed, 16 September 2026 16:31 Go to next message
lmonda is currently offline  lmonda
Messages: 8
Registered: March 2025
Location: USA
Promising Member
Hello

I am working with a U++ project ( Upp version 17490), that recently migrated to newer hardware that uses touchscreen.

It is difficult to make a droplist selection using finger on a std Droplist as the text highlight area in the droplist Text items are very small.

Is there a way to increase the text selection rectangle height for a droplist control?

In the attached image, how to increase the blue rectangle height to like a button height so it is easy to select?

Thank You
lmonda

  • Attachment: DropList.png
    (Size: 30.28KB, Downloaded 6 times)
Re: DropList Items Text highlight area height [message #62056 is a reply to message #62055] Wed, 16 September 2026 18:38 Go to previous message
Oblivion is currently offline  Oblivion
Messages: 1280
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


Previous Topic: GridCtrl not following SetDateScan / Format
Next Topic: Add compilable testcases for nontrivial problems!
Goto Forum:
  


Current Time: Thu Sep 17 01:18:30 GMT+2 2026

Total time taken to generate the page: 0.01026 seconds