Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Top level form does not get the focus
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00627628
Message ID:
00628094
Vues:
19
>>>>Hi George,
>>>>
>>>>May I ask you a little bit unrelated question? I got a project to finish, which starts with Login form. The form has focus, but I don't see a cursor in a textboxes (login and password). I've searched the project for SET CURSOR OFF setting, but didn't find it. What else may cause the cursor to disappear in textboxes?
>>>>
>>>>Thanks a lot in advance.
>>>
>>>Is the login dialog within the confines of the _SCREEN? And is the test platform Win2K Pro? With the latter, I've noticed that simply switching to a given application may not appropriately set the focus to it. I've encountered cases where, when I start typing, I get a "ding" (as if a bell) sound. I then need to click on the desired application in order to get it to receive the focus properly.
>>
>>Hi George,
>>
>>I'm testing on Windows 95 machine. Screen is on and the form is Fixed Dialog in Top-Level Form. The whole project looks like a nightmare... The original developer seems to just start with VFP and gets a taste of OOP. This project has more than 20 class libraries, one of them is Set_Utils.vcx with classes for each possible VFP setting. Each class has almost the same code in its Init method, I don't see a reason for all of them...
>
>Try the default setting (In-Screen) and see if that doesn't help.
>
>Sounds like someone was trying to get a taste of OOP. In reality, having one class to do this isn't that bad an idea, especially if private data sessions are being used because of the number of settings that are scoped to the datasession. However, doing it more than once, is a bad idea, and IMV, lumping those commands that aren't scoped to the datasession with those that are is probably worse.

Hi George,

I've re-started VFP and now the cursor appears just fine. Weird! As for the project and usage of classes, I guess, it almost impossible to understand this project and the necessety of all these classes (I think, most of them should be just removed, but it means, what the project's code should be changed as well). I got this project to just add some functionality, which it currently lacks, but I think, I need to understand the project first. However, it seems like a titanic task and with no value... :(

I agree, what one class, which would save every setting and restore it at the end would be nice, however, it should not be spreaded between 30+ classes, it should be just one class...
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform