Topic: Dropdowns stopped working

Hi All,
I have a weird problem.  My cbo Dropdowns have stopped working.
Here' one of my procedures
procedure frmEvents_cboState_OnEnter (Sender: TObject);
begin
  frmEvents.cboState.DroppedDown := true;
end;

-
I'm doing some final testing of my application and what's strange is that they all had been working fine and now they have stopped working for some unknown reason.
-
Here's what I do to fix them.
I Ctrl X the line procedure frmEvents_cboState_OnEnter (Sender: TObject);
Then I erase the procedure from the script file.
Then I delete the OnEnter Event
Then I put it all back.
And that fixes the problem.
-
What's frustrating is that I have 25 forms and some of them have multiple dropdowns.  So totally I probably have 50-100 dropdowns to fix.
This is not very nice to say the least (:
-
Is this something anyone has seen before?
-
I had been doing a bunch of work on my 30-day Trial Feature before I found this. (Thanks to much help from the forum this feature is working great) smile
-
Thanks, Frank

2 (edited by sibprogsistem 2020-11-18 07:53:38)

Re: Dropdowns stopped working

где находится фокус когда загружается ваша форма?
where is the focus when your form loads?

http://myvisualdatabase.com/forum/misc.php?action=pun_attachment&item=7239&download=0

Post's attachments

Attachment icon Безымянный.png 115.67 kb, 90 downloads since 2020-11-18 

Re: Dropdowns stopped working

sibprogsistem,
My cbo dropdown fields are in various places on my forms.
I make sure the Tab Orders are set so you can Tab from one field to the next.
So a cbo Dropdown Tab order could be something like 3 or 7 or 11 etc.
-
What's strange to me is that I didn't have this problem before yesterday.  The Tab Orders and the Dropdown settings were all working OK.
-
I 'fixed' about half of my dropdowns yesterday and they are still OK. However the ones I have not fixed yet still don't work the way they should.  I'm concerned that this may happen to users after I have distributed my program?
-
Also, nothing else that I can see has changed in my program. Strange.
-
Thanks, Frank

Re: Dropdowns stopped working

Papafrankc,


I don't have an answer to your problem but, I think once you have solved the problem your end users will not see this, but each time you compile the program you might have to recheck all your drop down boxes before distributing your program.



As an example my project suffers from two annoyances.


1. A group box and labels keep moving each time I compile the program.
2. My date time pickers like to untick themselves between compilations.

So I have to test to make sure after I have added a new form or script code that these items are reflecting what I want before I recompile.

I suspect your dropdown box problem may well require a similar approach.

On a clear disk you can seek forever

Re: Dropdowns stopped working

CDB, I agree it might just be one of those things to watch out for.
It's strange that it showed up only recently and I've been working on this program for the past few months.
-
I think it might be aliens again (lol)  I know they do other strange unexplainable things to my computer from time to time smile
-
Thanks, Frank