Autor Beitrag
Horst-Dieter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 91
Erhaltene Danke: 16



BeitragVerfasst: Sa 28.02.09 12:27 
Ich habe mir in Delphi 7 einen Taschenrechner als Komponente geschrieben.
Hat noch jemand Verbesserungsvorschläge?
Einloggen, um Attachments anzusehen!
Jakob_Ullmann
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: So 01.03.09 16:27 
Also das sieht ja schon ganz gut aus. Aber: Wozu? Wann braucht man einen Taschenrechner als Komponente?

edit: Was ist A(d)?
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: So 01.03.09 16:50 
user profile iconJakob_Ullmann hat folgendes geschrieben Zum zitierten Posting springen:
edit: Was ist A(d)?

A(d) berechnet die Kreisfläche, wobei d vermutlich für den Durchmesser stehen soll. ;)

Ich halte es aber auch für fraglich, wofür man einen Taschenrechner als Komponente braucht. Hätte eine simple Opensource-Unit da nicht mehr Sinn gemacht?

Grüße,
Marc
Jakob_Ullmann
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: So 01.03.09 19:38 
Bzw. wenn schon eine Taschenrechner-Komponente, dann sollte sie zumindest mit GANZEN TERMEN (Suche in: Delphi-Forum, Delphi-Library PARSER) arbeiten können.
ffgorcky
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 573

WIN XP/2000 & 7Prof (Familie:Win95,Win98)

BeitragVerfasst: So 01.03.09 19:57 
Der ist wirklich nicht schlecht!
Ich finde es nur schade, dass man dort nicht einfach mit dem (auf der Tastatur rechten) Num-Block rechnen kann... :-(
Also wäre dort ja noch die Behandlung einer OnKeyPress()-Methode recht gut.
Nur mal so als Anregung.

- Aber sonst: Alle Achtung!
Den hätte ich nicht so ohne weiteres hinbekommen...
Hidden
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2242
Erhaltene Danke: 55

Win10
VS Code, Delphi 2010 Prof.
BeitragVerfasst: So 01.03.09 20:04 
Also ich kann mir das eigentlich sehr gut vorstellen: Überall, wo ein Programm Zahleneingaben verlangt, die einigermaßen wahrscheinlich vorher berechnet werden müssen, spart das zumindest ein c&p.

mfG,

_________________
Centaur spears can block many spells, but no one tries to block if they see that the spell is a certain shade of green. For this purpose it is useful to know some green stunning hexes. (HPMoR)
Jakob_Ullmann
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Mo 02.03.09 19:31 
user profile iconHidden hat folgendes geschrieben Zum zitierten Posting springen:
Überall, wo ein Programm Zahleneingaben verlangt, die einigermaßen wahrscheinlich vorher berechnet werden müssen ...


:?: Zum Beispiel? Eine Taschenrechneroberfläche brauche ich normalerweise nur bei einem Taschenrechner. Wenn die Komponente das komplette Programm darstellt, ist das schon traurig. Und ansonsten benutze ich doch entweder Delphi oder einen Parser :nixweiss:

EDIT: Die Symbole für Plus, Minus, Mal und Durch könnte man noch verbessern.
Hidden
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2242
Erhaltene Danke: 55

Win10
VS Code, Delphi 2010 Prof.
BeitragVerfasst: Mo 02.03.09 21:11 
Dachte das vom Erscheinungsbild her eher so als ModalView-Fenster. Ein konkreter Anwendungszweck will mir gerade nicht einfallen, aber beispielsweise bei Simulationen könnten Eingaben verlangen, für die es Sinn macht, dass für die Eingebe eine komplettes Rechenwerkzeug bereitgestellt wird.

Andererseits bemüht man sich dann wohl eher um eigenes Design, das in die Anwendung passt und bindet zu den Funktionen und zum Parser eine Unit ein..

_________________
Centaur spears can block many spells, but no one tries to block if they see that the spell is a certain shade of green. For this purpose it is useful to know some green stunning hexes. (HPMoR)
Jakob_Ullmann
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Mo 02.03.09 21:54 
Naja, ich glaube, das war auch eher als Übung gedacht. :wink: