Hello!
I have a problem, i'm trying to use a combobox and get the result selected.
I'm looking for a example in internet and in the forum.
Please, I need help.
Code:
void comboClick()
{
  LBG_LISTITEM* item;
  if(comboboxForeign->chosen_option!=NULL)
  {		
    printf(comboboxForeign->chosen_option->caption);
  }
   else printf("No selected");
}
...

  comboboxForeign = LBG_create_combobox(window_menu,30, 110, 256, 16, 4, "Select the language", 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);

  LBG_create_listitem (comboboxForeign->menu, 100, strSpanish, 0);
  LBG_create_listitem (comboboxForeign->menu, 100, strEnglish, 0);
  LBG_create_listitem (comboboxForeign->menu, 100, strChinese, 0);
		
  comboboxForeign->Open=comboClick;
  comboboxForeign->Close=comboClick;
  comboboxForeign->Destroy=comboClick;


The problem is that when i close, the printf don't show the correct selected item text, only show rubish.

I looked the manual but i didn't see nothing about.

Please, help.

Thanks a lot!