| Autor |
Beitrag |
Coolman1974
      
Beiträge: 38
|
Verfasst: Di 18.04.06 11:45
Hallo zusammen,
in dem Betrieb in dem ich mein Praktikum mache, wird seit einigen Tagen Delphi 2006 Architekt eingesetzt.
Beim ausprobieren der Möglichkeiten von BDS sind mir einige Sachen aufgefallen:
- Ich möchte z.B. eine Active Form erstellen und diese in eine Html-Seite einbinden.
Folgender Workflow: File->New->others->Activex->(doppelklick auf Active Form). Kann ich so nicht durchführen, weil mir "Active Form" nicht zur Verfügung gestellt wird. Ich bekomme nur zwei andere Einträge "Active Libary, Type Libary". Wenn ich aber nun unter File->New->costumize gehe und den Ordner Activex wähle, werden mir seltsamer weise alle Eintäge angezeigt die zu ActiveX gehören.
- Ich möchte eine Win32-Anwendung erstellen und mir ist aufgefallen, dass mir die Rubrik "Activex" in der Toolbox fehlt. Ich habe nun versucht über "installed .Net Components" eine Axtivex-Komponente der Tolbox hinzuzufügen. Es hat auch alles ohne Fehlermeldung funktioniert, aber die Lasche ActiveX ist nicht da.
- Ich wollte für eine ASP.Net-Anwendung ein User-Control erstellen, doch auch diese Auswahl ist nicht vorhanden. Schaue ich mal wieder unter "costumize" nach, siehe da, hier wird der Eintrag angezeigt.
Nun meine Frage: Ist das bei euch auch so, oder mache ich grundsätzlich etwas falsch.
Falls ihr euch fragt, warum ich nicht meine Kollegen frage: Es wäre mir ziemlich peinlich, wenn diese Sachen nur simple Bedienungsfehler sind.
Ich bedanke mich aber schon einmal für eure Antworten.
Moderiert von Tino: Überflüssige Zeilenumbrüche entfernt und List-Tag eingefügt.
|
|
jaenicke
      
Beiträge: 19346
Erhaltene Danke: 1754
W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
|
Verfasst: Di 18.04.06 11:59
Hmm, das könnte teilsweise daran liegen, dass eine bestimmte Personality nicht gestartet wurde. Wenn du beispielsweise im Startmenü Delphi für Win32 startest, dann ist alles, was mit .NET zu tun hat, nicht da.
Ich hab jetzt zwar nicht im Einzelnen nachgesehen, ob das auf deine Einträge zutrifft, es ist aber erstmal die simpelste Erklärung. Und unter Customize wird es vielleicht angezeigt, damit man dort alles so anordnen kann, wie man es möchste, auch wenn der befehl im Moment nicht verfügbar ist.
Wissen tue ich letzteres aber nicht, ist nur ne Vermutung...
|
|
Coolman1974 
      
Beiträge: 38
|
Verfasst: Di 18.04.06 13:45
Also, das ASP.NET-User Control hat sich erledigt.
- 1. Eine neue ASP.NET-Anwendung erstellen.
2. File->New->others->new ASP.NET file-> User Contol
fertig.
Aber das ActiveX-Problem besteht immer noch.
Ich poste mal den Workflow von den Borlandern um ein ActiveX-Contol zu erstellen und
dieses dann in eine Html-Seite einzubinden.
Könnte das mal jemand genau so ausprobieren ?
Oder ist dieser Workflow falsch?
In der Delphihilfe ist der Wokflow unter "Creating a VCL Forms ActiveX Active Form" zu finden.
| Zitat: |
Creating a VCL Forms ActiveX Active Form
Like a Delphi control, an ActiveX control generates program code when you place the component on a form or other logical container in the IDE. The main difference between an ActiveX control and a Delphi control is that an ActiveX control is language independent. You can create ActiveX controls for deployment to a variety of programming environments on Windows, not just Delphi or C++Builder, for example.
This procedure uses the VCL forms ActiveX Active Form wizard to create an Active Form containing two components. To test the control, you can deploy it to the Web. This procedure consists of the following major steps:
Create an ActiveX library project for an ActiveX Active Form.
Add controls to the Active Form.
Add event handling code for the controls.
Deploy the project to the Web.
Display the form and test the controls in your Web browser.
To create an Active X library project for an ActiveX Active Form
Create a directory on your local drive for the ActiveX project. Give it an easy to find name, for example, ActiveX.
Create a second directory to contain the ActiveX component and an HTML file for deploying the Active Form to your Microsoft Internet Explorer Web browser. Name this directory ActiveX_Deploy.
Choose FileNewOther and select the ActiveX page in the New Items dialog.
On the ActiveX page, double-click Active Form.
The Active Form Wizard displays.
Accept the default settings and click OK.
The wizard generates the code needed to implement the ActiveX control and adds the code to the project. If the project is already an ActiveX library, the wizard adds the control to the current project. Note:
If the project is not already an ActiveX library, a Warning dialog displays and asks you if you want to start a new ActiveX library project.
Click OK to start a new ActiveX library project.
An ActiveX Active Form displays.
To add some functionality to the Active Form
From the Standard page of the Tool Palette, add TEdit and TButton components to the form.
Select the button.
On the Events tab in the Object Inspector, double-click the OnClick event.
The Code Editor opens with the cursor in place in the TActiveFormX.Button1Click (Delphi) or TActiveFormX::Button1Click() (C++) event handler block.
Enter the following code at the cursor:
[Delphi]ShowMessage(Edit1.text);
[C++]ShowMessage( Edit1–>Text )
Save the project files to your ActiveX directory.
To deploy the Active Form to your Web browser
Choose ProjectWeb Deployment Options....
The Web Deployment Options dialog displays.
On the Project page, use the Browse button to enter the path to the ActiveX_Deploy directory.
Enter the same path for the HTML dir.
For Target URL, enter .\ to indicate the current directory.
Click OK.
Choose ProjectWeb Deploy.
HTML and OCX files are created in the ActiveX_Deploy directory.
To test the Active Form
Launch your browser.
Choose FileOpen, and browse to the ActiveX_Deploy directory.
Double-click the HTML file to launch it in the browser window.
The Active Form displays in the browser window.
Click the button.
A pop-up dialog displays the text in the Edit box.
Change the text, and click the button again.
The new text you entered displays in the pop-up.
|
|
|
Coolman1974 
      
Beiträge: 38
|
Verfasst: Di 18.04.06 13:51
ach ja,
wichtig zu erwähnen sein noch:
Ich kann zwar eine Active Form erstellen, aber dieses vorgehen weicht von dem beschriebenen Workflow ab:
1. Active Libary erstellen (nun ist der Eintrag "Active Form" verfügbar)
2. Active Form erstellen.
Problem:
Kann den Menüeintag "Project->Web Deployment" Options nicht finden !!!
|
|
Coolman1974 
      
Beiträge: 38
|
Verfasst: Fr 21.04.06 10:35
Also mal ganz ehrlich,
ich kann es kaum glauben, das bei den 66 Neugierigen keiner dabei war der ein wenig mehr über dieses ActiveX-Problem bei BDS weiß.
Bin echt für jeden Beitrag dankbar.
Ich kann einfach nicht glauben, dass das ein BDS-Fehler ist. Wie üblich wird sich der Fehler mal wieder zwischen den Kopfhörern befinden! --- Aber wo und welcher ist es ?
Oder gebt mir doch z.B. einen Link zu einer Quelle in der mir dann erklärt wird, wie ich über BDS eine ActiveForm erstelle und diese wie oben beschrieben in eine Html-Seite einbinde.
|
|
Beiri22
      
Beiträge: 42
|
Verfasst: Di 23.05.06 14:43
is zwar etwas umständlicher die active x form zu erstellen, aber geht,
nicht wie eine activex componente (wie mit dem Wizard von D7) das geht nicht mehr..
|
|
|