Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,449 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: LBGUI progress bar [Re: Lukas] #377811
07/16/11 13:58
07/16/11 13:58
Joined: Jul 2011
Posts: 15
C
Coover Offline OP
Newbie
Coover  Offline OP
Newbie
C

Joined: Jul 2011
Posts: 15
0, 4, 8,36,59,99,100

7-5 means frames. Because it is executed one time per frame.

Re: LBGUI progress bar [Re: Coover] #377825
07/16/11 20:24
07/16/11 20:24
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
Ok, I think I misunderstood you with the 2 frames. So it is always 5 to 7 frames. And the numbers look good. Sorry, but I can't think of any other reason for your problem right now.

The only thing you might do is to try if you get the same problem with ordinary panel digitis. If you do, it's not related, to the progressbar. If you don't, it most propably is.


Oh, and just to make sure: You called LBGUI_open(), right?

Re: LBGUI progress bar [Re: Lukas] #377845
07/17/11 09:21
07/17/11 09:21
Joined: Jul 2011
Posts: 15
C
Coover Offline OP
Newbie
Coover  Offline OP
Newbie
C

Joined: Jul 2011
Posts: 15
i made a new projekt to test it and there it works with normal panels.
but it confuses me that there the whole bar is shown on top of screen and then the normal bar at the position where i want it.

Maybe you can take a look or get an idea http://www.materialordner.de/l6So4EAXry0yHTau7juOae1iEgqhiJiv.html

another thing that i see is that if i create a background panel without windowparent and then a editbox without window parent i cant click into the editbox. What layers do i have to change?

Last edited by Coover; 07/17/11 11:13.
Re: LBGUI progress bar [Re: Coover] #377863
07/17/11 12:27
07/17/11 12:27
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
Ok, I played around a bit with your script and I think I know what the problem is now. It seems that the size of the panel is updated too late. Probably the event is called even after PROC_LATE-functions, but I think this would only explain a delay of one frame. I'll look into it and try to fix it or I'll put the workaround into the manual of the next LBGUI version (which I'm already working on wink ).

Here's the workaround: Put this line
LBG_manage_progressbar(my_progressbar);
into the event after you set the progress. Then it should work.

Re: LBGUI progress bar [Re: Lukas] #377865
07/17/11 12:42
07/17/11 12:42
Joined: Jul 2011
Posts: 15
C
Coover Offline OP
Newbie
Coover  Offline OP
Newbie
C

Joined: Jul 2011
Posts: 15
thx works fine.
Any idea about the editbox?

Re: LBGUI progress bar [Re: Coover] #377866
07/17/11 12:57
07/17/11 12:57
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
What about the editbox? I am working on a multiline editbox, if you mean that?

Re: LBGUI progress bar [Re: Lukas] #377867
07/17/11 13:05
07/17/11 13:05
Joined: Jul 2011
Posts: 15
C
Coover Offline OP
Newbie
Coover  Offline OP
Newbie
C

Joined: Jul 2011
Posts: 15
no^^ 3 posts before i wrote that when i create a background panel with no window parent and then a editbox with no window parent i cant click into the editbox.

if i make a mouse crsor change it also doesnt chaneg when i am over the editbox

Re: LBGUI progress bar [Re: Coover] #377868
07/17/11 13:27
07/17/11 13:27
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
Oh, you mean that.
Do you mean that the editbox just doesn't work or that it's covered by the panel? Theoretically, the editbox should function anyway, because it doesn't "care" about the panel.
You can try changing the layer of the editbox to 1. Then it should be above the panel.

Re: LBGUI progress bar [Re: Lukas] #377869
07/17/11 13:32
07/17/11 13:32
Joined: Jul 2011
Posts: 15
C
Coover Offline OP
Newbie
Coover  Offline OP
Newbie
C

Joined: Jul 2011
Posts: 15
if i set the flag EF_ACTIVE i can type in but when i click out of it or dont set the flag i cant clik in but with layer 1 ic an see the bmaps befor only the text.

i have this
Code:
void mouse_startup()
{
	while(1)
	{
		switch(LBG_mouse_cursor)
		{
			case 0: 
			mouse_pointer = 2;
			break;
			case 1: 
			mouse_pointer = 1;
			break;
			case 2:
			mouse_pointer = 8;
			break;
			case 3: 
			mouse_pointer = 9;
			break;
			case 4: 
			mouse_pointer = 6;
			break;
			case 5: 
			mouse_pointer = 7;
			break;
			case 6: 
			mouse_pointer = 5;
			break;
		}
		wait(1);
	}	
}



but the mouse cursor dont change when i am over the edit box.

i will make an test programm when i have some time and upload it if it helps

editbox
Code:
lbg_menu_pan = LBG_create_panel(NULL,0,0,menu_pan,PF_SHOW);
	
	make_screen_size_pan(menu_pan);
	make_screen_size_pan_lbg(lbg_menu_pan);
lbg_edit_name = LBG_create_editbox(NULL,screen_size.x*0.5-125,screen_size.y*0.5,250,12,1,"name",LBG_ebmaps(edit_left_tga,edit_middle_tga,edit_right_tga),EF_SHOW | EF_ACTIVE);
		lbg_edit_name->Key = getKeyName;
		lbg_edit_name->layer = 1;
		LBG_update_editbox(lbg_edit_name);
		
		while(user.name == NULL)
		{
			wait(1);	
		}
		
		LBG_destroy_editbox(lbg_edit_name);



Last edited by Coover; 07/17/11 13:34.
Re: LBGUI progress bar [Re: Coover] #377873
07/17/11 14:54
07/17/11 14:54
Joined: Jul 2011
Posts: 15
C
Coover Offline OP
Newbie
Coover  Offline OP
Newbie
C

Joined: Jul 2011
Posts: 15

Page 2 of 3 1 2 3

Moderated by  aztec, Blink, HeelX 

Gamestudio download | 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