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

AG_ProgressBarSetWidth does nothing #82

Open
scaramacai opened this issue Apr 22, 2024 · 1 comment
Open

AG_ProgressBarSetWidth does nothing #82

scaramacai opened this issue Apr 22, 2024 · 1 comment
Assignees

Comments

@scaramacai
Copy link

May be related to #81 ?
I tried to modify widgets.c in agartest to vary the width of the horizontal progress bar, but nothing happens

--- widgets.c.orig  2024-04-10 03:26:54.000000000 +0200
+++ widgets.c      2024-04-21 08:13:39.214345473 +0200
@@ -526,6 +526,7 @@
                pb = AG_ProgressBarNewHoriz(hBox, AG_PROGRESS_BAR_EXCL |
                                                  AG_PROGRESS_BAR_SHOW_PCT |
                                                  AG_PROGRESS_BAR_HFILL);
+               AG_ProgressBarSetWidth(pb, 2);
                AG_BindInt(pb, "value", &myVal);
                AG_BindInt(pb, "min", &myMin);
                AG_BindInt(pb, "max", &myMax);
@JulNadeauCA JulNadeauCA self-assigned this May 6, 2024
@JulNadeauCA
Copy link
Owner

I'm currently working on adding a proper width attribute to the style engine so you'll be able to use something like: AG_SetStyle(pb, "width", "2"). The AG_ProgressBarSetWidth() will likely be deprecated.

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

2 participants