1 registered members (TipmyPip),
679
guests, and 3
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: LBGUI - RELEASE
[Re: NeoNeper]
#418061
02/20/13 15:45
02/20/13 15:45
|
Joined: Dec 2008
Posts: 1,218 Germany
Rackscha
Serious User
|
Serious User
Joined: Dec 2008
Posts: 1,218
Germany
|
@NeoNapper: What are you trying to do? Calling an event with a parameter or somehow attach a routinepointer with predefined parameters?!
MY Website with news of my projects: (for example my current Muliplayer Bomberman, GenesisPrecompiler for LiteC and TileMaster, an easy to use Tile editor) Sparetime-Development
|
|
|
Re: LBGUI - RELEASE
[Re: Rackscha]
#418076
02/20/13 19:56
02/20/13 19:56
|
Joined: Nov 2007
Posts: 318 Brasil, Paraná
NeoNeper
Senior Member
|
Senior Member
Joined: Nov 2007
Posts: 318
Brasil, Paraná
|
I do not know what it means "routinepointer" One solution that I usually use is:
//only logic
LBG_BUTTON* button_test (..., ..., ..., ..., NULL); //event function NULL
...
//Function thread for button press
...
while(button_test)
{
//if mouse over
//if mouse left
//work parameters
}
I am creating a chat system for an MMO that I'm working. for each player who talk to me in private chat, I create a LISTBOX and a BUTTON. If there is any SIMPLER WAY, PLEASE TEACH ME Preview.
Last edited by NeoNeper; 02/20/13 20:04.
Please! Use easy words to be translated. because my English is not very good! Grateful. _______________________________________________________
|
|
|
Re: LBGUI - RELEASE
[Re: NeoNeper]
#418760
03/01/13 02:44
03/01/13 02:44
|
Joined: Nov 2007
Posts: 318 Brasil, Paraná
NeoNeper
Senior Member
|
Senior Member
Joined: Nov 2007
Posts: 318
Brasil, Paraná
|
I'm having trouble creating a function that removes all items within a ListBox.
Please! Use easy words to be translated. because my English is not very good! Grateful. _______________________________________________________
|
|
|
Re: LBGUI - RELEASE
[Re: NeoNeper]
#418779
03/01/13 14:18
03/01/13 14:18
|
Joined: Nov 2007
Posts: 318 Brasil, Paraná
NeoNeper
Senior Member
|
Senior Member
Joined: Nov 2007
Posts: 318
Brasil, Paraná
|
I'm doing this way, but not working correctly.
void clean_log()
{
//number of items in the list
int total = LBG_object_getnum(_listbox->item_first,LBG_object_last(_listbox));
int ping; //for loop
for(ping =0; ping < total; ping ++)
{
LBG_destroy_listitem(_listbox->item_first);
_listbox->item_first = _listbox->item_first->next;
}
}
I believe the problem is the following reason: I am destroying the ITEM before knowing what is next on the list. LBG_destroy_listitem(_listbox->item_first); _listbox->item_first = _listbox->item_first->next; ?????? know someone give me an idea?
Last edited by NeoNeper; 03/01/13 14:24.
Please! Use easy words to be translated. because my English is not very good! Grateful. _______________________________________________________
|
|
|
Re: LBGUI - RELEASE
[Re: NeoNeper]
#418872
03/02/13 15:08
03/02/13 15:08
|
Joined: Nov 2007
Posts: 318 Brasil, Paraná
NeoNeper
Senior Member
|
Senior Member
Joined: Nov 2007
Posts: 318
Brasil, Paraná
|
this work!.
void clean_log()
{
//number of items in the list
int total = LBG_object_getnum(_listbox->item_first,LBG_object_last(_listbox));
int ping; //for loop
LBG_LISTITEM* item_old;
for(ping =0; ping <= total; ping ++)
{
item_old = _listbox->item_first->next;
LBG_destroy_listitem(_listbox->item_first);
_listbox->item_first = item_old;
}
}
Please! Use easy words to be translated. because my English is not very good! Grateful. _______________________________________________________
|
|
|
Re: LBGUI - RELEASE
[Re: NeoNeper]
#419075
03/05/13 20:58
03/05/13 20:58
|
Joined: Aug 2003
Posts: 180 Reactor Core
NeutronBlue
Member
|
Member
Joined: Aug 2003
Posts: 180
Reactor Core
|
This is exactly what I've been looking for - THANKS!! (There used to be a GUIControls package years ago, now I can't find it...)
I just downloaded your package today, and the files are dated around July 2010.
Am I using the correct link? - Did I miss an update somewhere?
Thanks Again.
Dreaming ain't Doing..! <sigh> Darn semicolons - I always manage to miss at least 1..!
|
|
|
Re: LBGUI - RELEASE
[Re: NeutronBlue]
#419083
03/05/13 22:53
03/05/13 22:53
|
Joined: Nov 2007
Posts: 318 Brasil, Paraná
NeoNeper
Senior Member
|
Senior Member
Joined: Nov 2007
Posts: 318
Brasil, Paraná
|
I just downloaded your package today, and the files are dated around July 2010.
Am I using the correct link? - Did I miss an update somewhere?
I'm also using this package. Doubt:
LBG_LISTITEM* item_folow = LBG_rightclick_add_option(_lbgrightclick1,1,"Seguir",LIF_SHOW,NULL);
//Its work, the item is created
Once created an item in a LBG_RIGHTCLICK* I can not make it invisible. Sample:
reset(item_folow,LIF_SHOW); //no WORK
//or
item_folow.flags &= ~LIF_SHOW); //no WORK
Why? how can I do this?
Please! Use easy words to be translated. because my English is not very good! Grateful. _______________________________________________________
|
|
|
Re: LBGUI - RELEASE
[Re: NeoNeper]
#419644
03/12/13 22:33
03/12/13 22:33
|
Joined: Nov 2007
Posts: 318 Brasil, Paraná
NeoNeper
Senior Member
|
Senior Member
Joined: Nov 2007
Posts: 318
Brasil, Paraná
|
I continue with this problem and I can not solve! Anyone know give me a hand? reset(item_folow,LIF_SHOW); in LBG_RIGHTCLICK* no work.
Please! Use easy words to be translated. because my English is not very good! Grateful. _______________________________________________________
|
|
|
|