Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resources GUI: no file names, only checkboxes in OF 11, windows #190

Open
dasoe opened this issue Jun 7, 2023 · 2 comments
Open

Resources GUI: no file names, only checkboxes in OF 11, windows #190

dasoe opened this issue Jun 7, 2023 · 2 comments

Comments

@dasoe
Copy link
Contributor

dasoe commented Jun 7, 2023

Hi all,

as always cheers(!) for this incredible piece of software!

when building exaple_basic with OF 11.2, on Windows, I have only checkboxes in the Resources GUI, no names of files.
when building exaple_basic with OF 10.1, same machine, it looks as expected. (checkboxes and names of files).

It seems, there's some bug or breaking change in OF 11 ofxGui? I don't know if there's other parts of the code, that might need adjustment, too, nore if there's a better solution, but as a quick fix, I used the following change to solve the issue for me:

// ofxPiMapper/src/UserInterface/Radiolist.cpp, Line 45:

void RadioList::setup(std::string title, std::vector<std::string> & labels, std::vector<std::string> & values){

	// Store title for later use
	storedTitle = title;
	guiGroup.setName(title);
+	guiGroup.setWidthElements(220.0f);
	setup(labels, values);
}

I used a hardcoded width value, as the position is hardcoded too, in ofxPiMapper/src/Gui/Widgets/SourcesEditorWidget.cpp

have a great day!
oe

P.S.: Sorry for not filing a pull request. my git seems broken, it does not reflect any changes I do on my local machine. I'm lost here.

@kr15h
Copy link
Owner

kr15h commented Jun 13, 2023

I will need to check this, but it is not going to be super fast.

@doctea
Copy link

doctea commented Sep 28, 2023

I'm getting the same problem with OF 12.0 on Linux. Your workaround does the job for me, thanks @dasoe !

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

No branches or pull requests

3 participants