0 registered members (),
18,008
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: LBGUI progress bar
[Re: Lukas]
#377845
07/17/11 09:21
07/17/11 09:21
|
Joined: Jul 2011
Posts: 15
Coover
OP
Newbie
|
OP
Newbie
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.htmlanother 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

Programmer
|

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  ). 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]
#377869
07/17/11 13:32
07/17/11 13:32
|
Joined: Jul 2011
Posts: 15
Coover
OP
Newbie
|
OP
Newbie
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
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
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
Coover
OP
Newbie
|
OP
Newbie
Joined: Jul 2011
Posts: 15
|
|
|
|
|