-
Content Count
211 -
Joined
-
Last visited
-
Days Won
5
Posts posted by haentschman
-
-
Hi...
QuoteAnybody has any info is this ever going to be fixed
...I hope not. WITH is out of date.
QuoteWITH doesn't work in debugger
...this has always been so. That´s the reason why i never had a WITH in my code.
- 1
-
Hi...
QuoteINPUT dialogs
I have not needed it yet. But..." scalable...dialog with every controls you want (inheritance)"
...you must programming it by yourself.
You must have:
1. A base (form) dialog, where the others inherited from. This form encapsulates the logic for the Buttons, Colors, Parent.
2. A new one inherited from the base.
3. design your dialog with treeview, checkboxes, edits, animations...
4. programming the logic for your controls
5. overload the class function with your new dialog
...in saxony (Germany) we say "Fertsch" (like finish)
-
Hi...
QuoteMessageDlg show the dialog in the center of the SCREEN
...you programming a own MessageDialog.
TOwnMessageDialog = class strict private // own formular class function ShowMessage(MessageCaption: string; MsgType: TMsgDlgType; Buttons: TMsgDlgButtons; MessageLines: TStrings; Help: LongInt = 0; MessageColor: Integer = clBlack; Parent: TForm = nil): Integer; public constructor Create; destructor Destroy; override; class function MessageDlg(MessageText: string; MsgType: TMsgDlgType; Buttons: TMsgDlgButtons; Help: LongInt = 0; MessageColor: Integer = clBlack; Parent: TForm = nil): Integer; overload; // wie MessageDialog Original class function MessageDlg(MessageText: string; MessageHeader: string; MsgType: TMsgDlgType; Buttons: TMsgDlgButtons; MessageColor: Integer = clBlack; Parent: TForm = nil): Integer; overload; class function MessageDlg(MessageLines: TStrings; MessageHeader: string; MsgType: TMsgDlgType; Buttons: TMsgDlgButtons; MessageColor: Integer = clBlack; Parent: TForm = nil): Integer; overload; class function MessageDlg(E: EDatabaseError; MessageHeader: string; MsgType: TMsgDlgType; Buttons: TMsgDlgButtons; MessageColor: Integer = clBlack; Parent: TForm = nil): Integer; overload; end;
Advantages:
1. own formular with corporate design
2. Parent for the message
3. own high (Count of MessageLines)
4. own with (longest text in MessageLines)
5. own Colors (Text)
6. scalable...dialog with every controls you want (inheritance)
...and so on.
- 1
-
Hi...
TForm.Contraints are your friends. http://docwiki.embarcadero.com/Libraries/Seattle/en/Vcl.Controls.TControl.Constraints
-
Looping </>
in VCL
Hi all...
QuoteYou should think twice before using TMEMO as a list handler
Proposal:
1. create a TStringList as a private variable
2. read the *.txt file into a TStringlist http://docwiki.embarcadero.com/Libraries/Seattle/en/System.Classes.TStrings.LoadFromFile
List.LoadFromFile
3. show the content of the *.txt File in the MEMO
Memo.Text := List.Text
4. iterate through the lines of the List if you want to Work with the data
for I := 0 to List.Count - 1 do begin // your work end;
5. if you change the data in the list, reload the MEMO
Memo.Text := List.Text
...finish.
German names? If you search the german DP ... https://www.delphipraxis.net
-
-
QuoteI'm laughing at my own code
The same procedure as everywhere...
-
Hi...
How about Frames? Load the appropriate frame according to your requirements...
- 1
-
-
Hi...
QuoteI have an application where I would like the user to be able to "build" what data he wants to see. As I can not expect the user to be an expert in SQL
Imho is not a good idea to allow the end user to generate statements. Especially with an input in a TDEDIT.
SQL injection: https://en.wikipedia.org/wiki/SQL_injection
-
Thanks...
-
Quote"year 2020 bug"
"putzig"
-
-
Hi...
I also will be there on Monday and Tuesday.
-
Hi...
Quotesimplest/fastest way
...it is the only way. watches...
More information: http://docwiki.embarcadero.com/RADStudio/Rio/en/Overview_of_Debugging
-
Hi...
QuoteI slightly miss Python's print() function
In Delphi is debugging easier... You set breakpoints in the editor. The debugger holds at this line. The debugger shows variables or a complete object in a hint.
- 1
-
Quotehas it changed in later versions
...no. Typing mistake?
-
Hi...
At the left side is showing the IDE line numbers. At the right side i think the line numers from CnPack or like the Options "...all lines"
-
I say Fastreport. I think he can all what you want...
- 4
-
QuoteI have used several different report products
which?
-
[OT]
1068 Hints
1937 Warnings
How do you see anything ...the most important things.
[/OT]
- 3
- 1
-
QuoteBut I already owned it (second entry)
Now it is clear...
-
Ok, Ok... but why can you download it ... and i not?
-
Does debugger handle WITH better in latest versions, 10.3+?
in General Help
Posted · Edited by haentschman
Hi...
Why WITH? How long would it take to remove all WITH?
...imho: The topic is since D1 so.