Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
When does my code run?
I've made my own search dialog that has a few params passed to it by the calling button. One of those params is a description of what's being searched for, and I'd like to change the look of the caption beside the results box to reflect this dynamic change. Well I've succeeded, however I can't get it to change the position of the caption...when should I be executing this code? I've tested it and the form only sees the new width of the caption when the whole form becomes visible, so if I try and reposition before it sees this new width it uses the width of the caption from the design process.
Also, in a related, but not so related subject...I'm also using VFP foundation class for sorting and setting the sort on the table being searched. However, there is a method that it uses that it uses to get the active session, well it looks to the ACTIVE form to find this, but until the form is visible, it's not active. Where should I be putting the code?
I guess really, my question is what (if any) event I can put the above code that will work with the visible search form window.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement