Gamestudio Links
Zorro Links
Newest Posts
Is Text Box data check possible?
by gamers. 02/17/20 11:09
Behaviour of user-defined bars
by Petra. 02/15/20 13:34
Optimization parameters results
by Petra. 02/15/20 13:22
Bollinger Band - Multi Timeframe
by migo. 02/15/20 06:50
Votes for future features
by 7th_zorro. 02/13/20 05:50
Quote size
by Zheka. 02/12/20 17:10
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
6 registered members (thomasprv, jenGs, AndrewAMD, Zheka, gamers, txesmi), 800 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
DebraSteed, Ricard, Apollo1, ziphnor, thomasprv
18377 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 4 of 4 1 2 3 4
Re: Imgui Lite-c Development [Re: EVO] #478951
01/23/20 21:18
01/23/20 21:18
Joined: May 2009
Posts: 5,145
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,145
Caucasus
Thank you for quick reply! I just saw that you were using that 'imgui_h_button' in your example, my bad. I need to be more attentive. I was previously using imgui_button(text), which doesn't allow to set the size, but only created a button, which will change it's size automatically depending on the text length.

Small tip: just found out how to remove close button from the window, without using NoTitleBar flag seton. In 'imgui_begin(char *name, void *p_close, long flags);' simply pass NULL for p_close.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Re: Imgui Lite-c Development [Re: EVO] #478952
01/23/20 23:26
01/23/20 23:26
Joined: Jun 2007
Posts: 1,286
Hiporope and its pain
txesmi Online
Serious User
txesmi  Online
Serious User

Joined: Jun 2007
Posts: 1,286
Hiporope and its pain
You are welcome
Originally Posted by 3run
pass NULL for p_close

nice to know wink

edited__________
Just updated the file browser: A new way based on TEXT structs.

Last edited by txesmi; 01/24/20 09:36.
Re: Imgui Lite-c Development [Re: EVO] #478970
01/29/20 13:28
01/29/20 13:28
Joined: May 2009
Posts: 5,145
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,145
Caucasus
There was a memory leak:
Code
Unfreed: 1082,    , 8 bytes
Unfreed: 1083,    , 876 bytes

In original and txesmi's examples, so I had to add this:
Code
void on_exit_event()
{
	sys_free(ImGui->lpVtbl);
	sys_free(ImGui);
}

void main()
{
	on_exit = on_exit_event;
        ....
}

Also, there is a typo (no space between ImGuiWindowFlags_AlwaysUseWindowPadding and 1) in imgui_enums.h, in line 35.
Code
#define ImGuiWindowFlags_AlwaysUseWindowPadding1 << 16 // Ensure child windows without border uses style.WindowPadding (ignored by default for non-bordered child windowsbecause more convenient)


Looking for free stuff?? Take a look here: http://badcom.at.ua
Re: Imgui Lite-c Development [Re: EVO] #478982
01/30/20 10:26
01/30/20 10:26
Joined: Jun 2007
Posts: 1,286
Hiporope and its pain
txesmi Online
Serious User
txesmi  Online
Serious User

Joined: Jun 2007
Posts: 1,286
Hiporope and its pain
@3run
I will try to fix that inside the module...

Page 4 of 4 1 2 3 4

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1