Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

Outline for each widget #254

Open
nkint opened this issue Jul 21, 2015 · 0 comments
Open

Outline for each widget #254

nkint opened this issue Jul 21, 2015 · 0 comments

Comments

@nkint
Copy link

nkint commented Jul 21, 2015

Hi!
I'm facing with a situation where I have to manually set properties of each widget added to the main canvas gui:

    w= gui->addSlider("BACKGROUND",0.0,255.0,100.0);
    w->setDrawOutline(true);
    w->setColorOutline(ofColor(255));

    w = gui->addToggle("FULLSCREEN", false);
    w->setDrawOutline(true);
    w->setColorOutline(ofColor(255));

Because gui->setDrawOutline(true); set only the outline of the canvas.
It is a lot of repeating code.. any hints on how doing it automatically?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant