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  |
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
Github page: https://github.com/ismail-yilmaz
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
TerminalCtrl package https://github.com/ismail-yilmaz/Terminal
|
|
|
|
Goto Forum:
Current Time: Thu Sep 17 01:18:30 GMT+2 2026
Total time taken to generate the page: 0.01026 seconds
|