Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Modal form from Object.NewObject()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00555269
Message ID:
00555382
Vues:
15
Hi!

I guess formset require to be modal too to add modal subforms into it. Or just formset could be modal, but forms in it never modal (this is from logical point of view - why multiple forms in formset when you cannot navigate them - modal form does not allow to switch to another form?) It looks like it is better to use the top-level form with modeless forms in it and modal form that you require. Or just use modal form outside of formset.

(personally, I do not like formsets much...)

HTH.

>Thanks John.
>
>Here's the code I have before inserting the .Show(1) option:
>
>Local oForm
>
>oForm = ThisFormSet.NewObject("frmNewShifts","frmNewShift","Forms")
>
>If oForm
> If Type("ThisFormSet.frmNewShifts.Name") = "C"
> With ThisFormSet.frmNewShifts
>
> .cmbStart.RowSourceType = 5
> .cmbStart.RowSource = "ThisFormSet.gaShiftStart"
>
> .cmbEnd.RowSourceType = 5
> .cmbEnd.RowSource = "ThisFormSet.gaShiftEnd"
>
> .cmgNewShift.BorderStyle = 0
> .txtName.SetFocus()
>
> .Visible = .T.
>
> EndWith
> EndIf
>EndIf
>
>Doesn't act modal in either case. Any other ideas? I thought about checking for this form's existence in the GOTFOCUS method of all other objects behind it and transferring focus back to an object (text field) on the form, but I'd rather not do something like this....
>
>Thanks,
>
>Keith
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform