http://bugs.winehq.org/show_bug.cgi?id=58914
--- Comment #5 from Bart Kindt info@sartrack.nz --- Right. I found a Linux laptop back to test with. The previous data came from a user. Running Ubuntu 22.04, and the latest Wine from your website. Installed SARTrack. And I see exactly the same issues here.
Wrote a small test program, copied the relevant code over from the main program. Checked the Font and other settings, all the same. Guess what: Of course it works fine in the test program.
So I played with the SARTrack source code: In the entries 'Add "IMT" then Add "EOC" the "EOC" is missing. So I duplicated these two entries. And the second time both showed normally (under the missing first "EOC").
So I wanted to see what actually ended up in the Combobox by reading it back by Index: Index := RefTypeCombobox.Items.Add(rtrIMT); Log('RefTypeCombobox Index: '+Index.ToString+' = '+RefTypeCombobox.Items[Index]); Index := RefTypeCombobox.Items.Add(rtrEOC); Log('RefTypeCombobox Index: '+Index.ToString+' = '+RefTypeCombobox.Items[Index]);
And now it works. The Log entry inserted between the 'Combobox.Items.Add' caused the problem to go away. So I thought it is a timing issue. - I then replaced the Log entry with a 'Sleep(100)'. But this did NOT work. - I then added a 'application.processmessages' in between. But this also did not work.
The only way I can make it work, is to have a Log entry in between. This Log entry just processes the string, writes it into a TMemo or a TRichEdit, depending on a setting. Now the interesting bit: When the Log entry is saved to the (Windows DLL) TRichEdit, it works. If the Log entry is saved into a TMemo, it does NOT work.
So the call to RichEdit is causing the Combobox to work correctly.
Any ideas?
PS: The installation directory was selected 19 years ago, because it would not install on New Zealand Police laptops. It has stayed like that ever since: C:\users(username)\AppData\Roaming\SARTrack\ Everything is there, except the Debug lots etc. in Documents/SARTrack. The Registery is not used.