Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create form from .PRG code
Message
De
19/04/2006 16:14:41
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
19/04/2006 11:11:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01114462
Message ID:
01114747
Vues:
18
>>>Hi,
>>>
>>>How can I to convert this form1 class to .SCX form ?
>>>
>>>
>>>Local loForm as Form
>>>loForm = NewObject("form1")
>>>loForm.Show(1)
>>>***
>>>DEFINE CLASS form1 AS form
>>>	DoCreate = .T.
>>>	Caption = "Form1"
>>>	Name = "Form1"
>>>	ADD OBJECT command1 AS commandbutton WITH ;
>>>		Top = 12, ;
>>>		Left = 12, ;
>>>		Height = 27, ;
>>>		Width = 84, ;
>>>		Caption = "Click me", ;
>>>		Name = "Command1"
>>>	Procedure command1.Click
>>>		MessageBox("Click")
>>>	EndProc
>>>EndDefine
>>>
>>
>>1) Create a new form (command window: create form myForm)
>>2) From form controls toolbar, add a commandbutton on form
>>3) Dblclick newly added commandbutton
>>4) Type in opened code window (which is by default is the 'Click' procedure for a commandbutton):
>>MessageBox("Click")
>>5) Close form saving
>>
>>Do form myForm
>>
>>Cetin
>
>
>Excuse me, Cetin. I don't explain the situation.
>
>
>I need to create a form and insert the controls, procedures and propperties programmatic.
>
>To understand, I'm creatting a utility to create Class Diagram(UML)... than the utility generate the code from the Class Diagram. Now I'm starting to implements the creation forms method in my utility.
>
>Read the Class Diagram and write a class form in a .PRG file is easy, but in SCX form is not easy to me. So I want to write in .PRG file and than convert to SCX form.

So you want something like prg2scx ? If so then check scctext.prg under tools folder. It can convert a scx to text (sca) and text to scx.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform