Gamestudio Links
Zorro Links
Newest Posts
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
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Trading Journey
by howardR. 04/24/24 20:04
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (wandaluciaia, AndrewAMD, 1 invisible), 765 guests, and 6 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 11 of 17 1 2 9 10 11 12 13 16 17
Re: LBGUI - RELEASE [Re: Lukas] #417370
02/11/13 22:59
02/11/13 22:59
Joined: Nov 2007
Posts: 318
Brasil, Paraná
NeoNeper Offline
Senior Member
NeoNeper  Offline
Senior Member

Joined: Nov 2007
Posts: 318
Brasil, Paraná
Oh Yea. Its Work Lukas. Tanks (^.^)


Please! Use easy words to be translated. because my English is not very good! Grateful.
_______________________________________________________
Re: LBGUI - RELEASE [Re: NeoNeper] #417808
02/18/13 08:19
02/18/13 08:19
Joined: May 2010
Posts: 117
Germany , Dortmund
B
Bone Offline
Member
Bone  Offline
Member
B

Joined: May 2010
Posts: 117
Germany , Dortmund
Hi,

I want to use LBGUI for my project but I have a problem.
I want to hide a window and show it later again so I tried to remove
the WF_SHOW Flag but nothing happen, also with LBG_update_window.
After that, I thought I have to recreate the Window because its destroyed with
a click on the close button but it seems that its still there but invisible.
How do I do it correctly?

My second problem is, that the listbox/listitems of a combobox doesnt react on mouse click where the combobox listbox overlays an other listbox.
I tried to set the layer of the combobox and the combobox menu to a high value but it doesnt work. The menu listbox is visible but how i explained, it
doesnt react on the mouse where it overlays an other listbox.
How can I solve this?

Thanks

Last edited by Bone; 02/18/13 11:51.
Re: LBGUI - RELEASE [Re: Bone] #417817
02/18/13 11:48
02/18/13 11:48
Joined: Jul 2005
Posts: 187
L
lostzac Offline
Member
lostzac  Offline
Member
L

Joined: Jul 2005
Posts: 187
to destroy a window look at LBG_WINDOW* LBG_destroy_window (LBG_WINDOW* win) in the manual....


John C Leutz II

Re: LBGUI - RELEASE [Re: lostzac] #417819
02/18/13 12:59
02/18/13 12:59
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline OP

Programmer
Lukas  Offline OP

Programmer

Joined: May 2007
Posts: 2,043
Germany
Hi Bones,

it's a known bug that windows don't react on changing their WF_SHOW flag. As a workaround, you have to make its panels and children manually invisible. This will be fixed in the update I hope to release this year.

Windows SHOULD be destroyed when you click on their x button. A reason it doesn't may be because you call LBG_stop_action in its Close function, if you assigned one, but that shouldn't make it invisible...
Or maybe you checked its WF_DONTDESTROYCHILDS flag, so only its children are still there. I don't know how it "seems to be still there" exactly, so I can't guess further than that.

I could not reproduce the combobox/listbox issue. It works fine for me. Maybe the problem is in your code?

Re: LBGUI - RELEASE [Re: Lukas] #417820
02/18/13 13:28
02/18/13 13:28
Joined: May 2010
Posts: 117
Germany , Dortmund
B
Bone Offline
Member
Bone  Offline
Member
B

Joined: May 2010
Posts: 117
Germany , Dortmund
Thanks Lukas,

this is my function I use to create the combobox and listbox in a window

Code:
window_linemanager = LBG_create_window(0, 96, 64, 512, 400, 12, 1,"Linienmanager",&win_bbmaps,&win_cbmaps,&win_tbmaps,1, 0,  WF_SHOW | WF_XBUTTON | WF_MAXBUTTON | WF_RESIZABLE );
	window_linemanager->xbutton_offx = -25; 
	window_linemanager->xbutton_offy = 1;
	window_linemanager->minsize_x = 64; 
	window_linemanager->minsize_y = 64;
	window_linemanager->tpos_y = 8;
	
	// Combobox für Linienfilter
	LBG_COMBOBOX* combobox_linefilter = LBG_create_combobox(window_linemanager, 10, 40, 240,16, 4, "Alle", LBG_ebmaps(editbox_left_tga,editbox_middle_tga,editbox_right_tga), 16, 16, 224, &listbox_bmaps, 	LBG_bbmaps(combobox_button1_tga,combobox_button2_tga,combobox_button3_tga,combobox_button1_tga,combobox_button2_tga,combobox_button1_tga), CBF_SHOW);

	// Comboboxes have a member listbox called menu. To add options to the combobox, we just have to add items to its menu:
	LBG_create_listitem (combobox_linefilter ->menu, 100, "Alle", 0);
	LBG_create_listitem (combobox_linefilter ->menu, 100, "Zug", 0);
	LBG_create_listitem (combobox_linefilter ->menu, 100, "Straßenbahn", 0);
	LBG_create_listitem (combobox_linefilter ->menu, 100, "Transrapid", 0);
	LBG_create_listitem (combobox_linefilter ->menu, 100, "Monorail", 0);
	LBG_create_listitem (combobox_linefilter ->menu, 100, "Bus und Lkw", 0);
	LBG_create_listitem (combobox_linefilter ->menu, 100, "Schiff", 0);
	LBG_create_listitem (combobox_linefilter ->menu, 100, "Flugzeug", 0);
	// Linien Liste
	
	// Create a listbox
	list_lines = LBG_create_listbox (window_linemanager, 10, 70, 240, 256, 16, 16, 220, 230, &listbox_bmaps, LF_SHOW | LF_AUTOVSCROLL);
	list_lines->tpos_x = 4; // This sets the text position of the items of this list relative to their positions
	list_lines->tpos_y = 1;
	list_lines->itemheight = 20; // This sets the height of the list items and thus the distance of two items. On default, the height is LBG_listitem_font.dy
	
	list_lines->bmaps_over.bmap_left = listitem_over_left_tga; // This determines the bitmap of the list items, when the mouse is over them.
	list_lines->bmaps_over.bmap_middle = listitem_over_middle_tga;
	list_lines->bmaps_over.bmap_right = listitem_over_right_tga;
	list_lines->bmaps_marked.bmap_left = listitem_over_left_tga; // This determines the bitmap of the list items, when they are selected.
	list_lines->bmaps_marked.bmap_middle = listitem_over_middle_tga;
	list_lines->bmaps_marked.bmap_right = listitem_over_right_tga;
	
	LBG_create_vscrollbar(list_lines, LBG_vsbmaps (vscrollbar_top_tga,vscrollbar_middle_tga,vscrollbar_bottom_tga,vscrollbar_bar_tga), LBG_bbmaps(vscrollbar_up1_tga,vscrollbar_up2_tga,vscrollbar_up3_tga,vscrollbar_up1_tga,vscrollbar_up2_tga,vscrollbar_up1_tga), LBG_bbmaps(vscrollbar_down1_tga,vscrollbar_down2_tga,vscrollbar_down3_tga,vscrollbar_down1_tga,vscrollbar_down2_tga,vscrollbar_down1_tga), VSF_SHOW);
	
	LBG_update_listbox(list_lines);



Its only possible to select the first listitem of the combobox menu.
Whats wrong?

I have another question. I add some listitems to the listbox 'list_lines' and assign a Select function to the listbox. In this function I want to
get the number of the selected listitem like this:

Code:
function selectLine(){
	selectedLineItem = list_lines.marked_item;
	num_selectedLineItem = LBG_object_getnum(list_lines, selectedLineItem);
	
}



But num_selectedLineItem is always 0, else if I dont select the first listitem .
How get I the correct number of the selected listitem?

Last edited by Bone; 02/18/13 13:29.
Re: LBGUI - RELEASE [Re: Bone] #417821
02/18/13 13:51
02/18/13 13:51
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline OP

Programmer
Lukas  Offline OP

Programmer

Joined: May 2007
Posts: 2,043
Germany
To your combobox/listbox problem: You simply forgot to update your combobox after creating all the list items.

As for the problem of getting the number of a listitem: list_lines is NOT the first list item in the linked list, it's the parent listbox! So you have to use LBG_object_getnum(list_lines->item_first, selectedLineItem); instead.

Re: LBGUI - RELEASE [Re: Lukas] #417892
02/19/13 11:30
02/19/13 11:30
Joined: May 2010
Posts: 117
Germany , Dortmund
B
Bone Offline
Member
Bone  Offline
Member
B

Joined: May 2010
Posts: 117
Germany , Dortmund
Thanks Lukas, it works.

Re: LBGUI - RELEASE [Re: Bone] #417980
02/20/13 00:43
02/20/13 00:43
Joined: Nov 2007
Posts: 318
Brasil, Paraná
NeoNeper Offline
Senior Member
NeoNeper  Offline
Senior Member

Joined: Nov 2007
Posts: 318
Brasil, Paraná
is there any way to use parameters in the event function of the button?
Sample:
mybuttom->Event = myfunction(myparamiter);


Please! Use easy words to be translated. because my English is not very good! Grateful.
_______________________________________________________
Re: LBGUI - RELEASE [Re: NeoNeper] #417981
02/20/13 00:52
02/20/13 00:52
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
nope, not possible in Lite-C


Visit my site: www.masterq32.de
Re: LBGUI - RELEASE [Re: MasterQ32] #418015
02/20/13 11:44
02/20/13 11:44
Joined: Nov 2007
Posts: 318
Brasil, Paraná
NeoNeper Offline
Senior Member
NeoNeper  Offline
Senior Member

Joined: Nov 2007
Posts: 318
Brasil, Paraná
Tanks (^.~)


Please! Use easy words to be translated. because my English is not very good! Grateful.
_______________________________________________________
Page 11 of 17 1 2 9 10 11 12 13 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