-
Posts
12 -
Joined
-
Last visited
Content Type
Blogs
Forums
Store
Gallery
Videos
Posts posted by CodeChomper
-
-
-
I haven't seen anything in the docs to make a window always on top? Am I just missing it?
Thanks!
-
19 minutes ago, Josh said:
No, but there are some characters that don't seem to be working in passwords. I recommend only using letters and numbers.
My bad, I was putting my email in the user name spot of UAK. UserName != Email
- 1
-
I reset my password for UAK and now I can't login. Is there a delay for new passwords to take affect? It has been about 20 mins so far. Thanks.
-
10 hours ago, Josh said:
It includes the nlohmann JSON library. I added a LoadJSON() convenience function. This was only intended for internal use but you can still use it.
https://github.com/nlohmann/jsonPerfect, I was looking at adding that library, now that I know it is in there I can use it! Thanks again for such a cool tool kit! I added my review to steam.
-
I know UAK uses JSON for themes. Is there a utility in UAK for reading and writing JSON?
-
It would be really nice to be able to set the Notify and Confirm window positions! Currently they pop up in the middle of the screen and I would like them to pop up in the middle of my application.
- 1
-
Ok, I am getting the hang of custom widgets! Thank you @Josh for posting the widget code on Github! Seeing how you did the original ListBox has really helped me start making my BillListBox. Now each property of a bill is it's own Block in the row and I can adjust the width of each to format the text instead of relying on boost::format( ) since that didn't work with non monospaced fonts.
- 1
-
36 minutes ago, Josh said:
@CodeChomper In your situation I would recommend a custom widget:
https://www.ultraengine.com/learn/CPP/CustomWidgetsWould I end up making two custom widgets? One that is like a ListBox to hold the bills and another that is like a WidgetItem to represent the bill?
P.S. I am enjoying C++ again thanks to UAK
-
I too am begging to be able to change the font of UAK. I was playing around making a bill app and wanted to display more info in a ListBox. Ok I thought this would be easy and made a formatted toString() function for my Bill object. The string formatting doesn't work because the font isn't a monospaced font. So the 90 char width I give for the bill description is different pixel widths depending on the content of the description.
Without the ability to change the font UAK uses does anyone have another solution to my ListBox problem? I am guessing I will have to make my Widget to hold rows of bills that are made up of separate Labels for Description, Due Date, Amount, and Paid booleans?
Here are the bills added to the ListBox
Here are the same bills printed in a monospaced font in the console
- 1
-
Hi I am new at Ultra App Kit. I am trying to set the background color of a textarea widget and it doesn't seem to be working.
// Create output pannel auto panel = CreatePanel(0, menu_sz.y, sz.x, sz.y - menu_sz.y, ui->root); auto panel_sz = panel->GetSize(); panel->SetColor(0, 0.08, 0.002, 1); panel->SetLayout(1, 1, 1, 1); // Create text area auto text_area = CreateTextArea(10, 10, panel_sz.x - 20, panel_sz.y - 20, panel, TEXTAREA_WORDWRAP); text_area->SetColor(0, 1, 0); text_area->SetLayout(1, 1, 1, 1);
As you can see it is as if it ignores the text_area->SetColor( ) function all together.
Please what am I doing wrong?
[EDIT]
I figured out what I was doing wrong. You must set the color for the WIDGETCOLOR_SUNKEN to change the background.
text_area->SetColor(0, 1, 0, 1, WIDGETCOLOR_SUNKEN);
You can close this post or leave it up if it may help others.
- 1
UAK Tree View not scrolling
in Programming
Posted
Some added context... It does scroll I found out. It only works if I grab the scroll bar handle and move pretty far past the bottom of it, then it will scroll. The arrows do not work correctly, the bottom arrow will only scroll up. Also if I click on the scroll bar the window scrolls up even if I click below the handle.