Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Having font issue with ControlP5 GUI library

$
0
0

I am having an issue with setting the font of the DropdownList items, I know how to edit the font of the caption labels but can't figure out how to do the same for the items in the menu. I really need to make the font bigger as it is so tiny I am struggling to read it on my screen, and that means the end user will have just as hard of a time.

What I have done to change the font of the labels is:

ControlP5 main = new ControlP5(this);
ControlFont font = new ControlFont(createFont("Arial", 18, true), 241);
//^^^^ For reference

main.getController("Select_Vehicle")    // <- Select_Vehicle is a button, this is just a reference to how I have done it so far
    .getCaptionLabel()
    .setFont(font)
    .toUpperCase(false)
    .setSize(14);

This works very well for things that only have labels, but this will not change the font for the items in the dropdown menu. What I thought was maybe I need to replace the .getCaptionLable() with something similar that grabs the items from the menu and allows me to then change it, but what I have tried never worked, then again I haven't been able to try much.


Viewing all articles
Browse latest Browse all 2896

Trending Articles