Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 730 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 12 of 17 1 2 10 11 12 13 14 16 17
Re: LBGUI - RELEASE [Re: NeoNeper] #418061
02/20/13 15:45
02/20/13 15:45
Joined: Dec 2008
Posts: 1,218
Germany
Rackscha Offline
Serious User
Rackscha  Offline
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 Offline
Senior Member
NeoNeper  Offline
Senior Member

Joined: Nov 2007
Posts: 318
Brasil, Paraná
I do not know what it means "routinepointer"
One solution that I usually use is:

Code:
//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 Offline
Senior Member
NeoNeper  Offline
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 Offline
Senior Member
NeoNeper  Offline
Senior Member

Joined: Nov 2007
Posts: 318
Brasil, Paraná
I'm doing this way, but not working correctly.

Code:
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] #418781
03/01/13 15:37
03/01/13 15:37
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Save it in a void* (pointer)...

Re: LBGUI - RELEASE [Re: Ch40zzC0d3r] #418870
03/02/13 14:57
03/02/13 14:57
Joined: Nov 2007
Posts: 318
Brasil, Paraná
NeoNeper Offline
Senior Member
NeoNeper  Offline
Senior Member

Joined: Nov 2007
Posts: 318
Brasil, Paraná
is not this the problem!


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 Offline
Senior Member
NeoNeper  Offline
Senior Member

Joined: Nov 2007
Posts: 318
Brasil, Paraná

this work!.
Code:
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 Offline
Member
NeutronBlue  Offline
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 Offline
Senior Member
NeoNeper  Offline
Senior Member

Joined: Nov 2007
Posts: 318
Brasil, Paraná
Quote:


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:

Code:
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:
Code:
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 Offline
Senior Member
NeoNeper  Offline
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.
_______________________________________________________
Page 12 of 17 1 2 10 11 12 13 14 16 17

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