• AVR Freaks

AnsweredHot!Harmony laListWidget Scroll Bar Size

Author
bbalneav
New Member
  • Total Posts : 1
  • Reward points : 0
  • Joined: 2019/04/29 08:48:15
  • Location: 0
  • Status: offline
2019/05/09 12:30:52 (permalink)
0

Harmony laListWidget Scroll Bar Size

Hello;
 
I have a question about how the scroll bar on the laListWidget is generated.  I don't see any option to set the size of the scroll bar in the properties or the header file.  When I add entries to the list the scroll bar stays very small.  Is there a way to manually set its value?
 
edit: That fixed the problem, thanks a bunch!
post edited by bbalneav - 2019/05/10 12:06:42
#1
Ed@Microchip
Super Member
  • Total Posts : 143
  • Reward points : 0
  • Joined: 2017/04/06 09:39:29
  • Location: 0
  • Status: offline
Re: Harmony laListWidget Scroll Bar Size 2019/05/10 11:09:19 (permalink) ☼ Best Answerby bbalneav 2019/05/10 12:05:42
5 (2)
Hi,
 
    Try adding this line to libaria_init.c, after the code block where the list widget is created and initialized.
 
             laScrollBarWidget_SetExtentValue(ListWidget1->scrollbar, 80);
 
    Change ListWidget1 to your widget's variable name, and adjust the second parameter (80) to a value that works for your application.
 
    We will consider adding an option in MHGC to set the scrollbar height in future releases.
 
Thanks,
 
Ed
#2
Jump to:
© 2019 APG vNext Commercial Version 4.5