Recent

Author Topic: combobox problem on crosscompiling  (Read 2894 times)

douglas.cast

  • Guest
combobox problem on crosscompiling
« on: May 31, 2016, 08:35:07 pm »
Hi guys, I'm having a weird behavior on a cross compiling application that I'm doing.

I'm developing the application under Arch Linux and compiling it under Windows, but my comboboxes doesn't work right on Windows.

Inside of my application I'm loading some MySQL data to the fields to create a list (I'm not using a table inside of Lazarus but a SQL query, so I'm not using dbcombobox or another db elements), if I load one of the values to the Text property under Arch everything runs fine but Windows doesn't work.

That's the text I'm trying to put on the combobox.
combobox.Items.Text:='Text'

Someone knows what's happening? something missing under the 'interface - uses'

Ty for the help.

douglas.cast

  • Guest
Re: combobox problem on crosscompiling
« Reply #1 on: June 04, 2016, 08:33:42 pm »
I discover that Windows need a item index reference with the text assignment.

Code: Pascal  [Select][+][-]
  1. combobox.Items.Text:='Text'
  2. combobox.ItemIndex:=0;
  3.  

 

TinyPortal © 2005-2018