Jump to content


uli

Member Since 31 Oct 2006
Offline Last Active Apr 12 2010 09:36 AM
-----

Posts I've Made

In Topic: DropDownList ComboBox columns can't be dropped down with mouse

24 November 2006 - 11:02 AM

Thank you, Boki. Problem solved.

Uli.

In Topic: Lib directory

21 November 2006 - 06:53 PM

OK, I'll try to ignore them smile.gif. Thank you for answering, Boki.

Uli.

In Topic: Delphi 5 compatibility

21 November 2006 - 05:31 PM

QUOTE (uli @ Nov 7 2006, 11:48 AM) <{POST_SNAPBACK}>
(4) In TNxCustomGridControl.SaveToTextFile, you use Write(f, ...) to output WideStrings. D5 doesn't seem to support this. Do you have an idea how to solve this task D5 compatibly?

Judging from what I've found in Usenet (and from the fact that the problem occurs in a routine called WriteAnsi smile.gif), Write(f, ws) for a WideString ws does the same as Write(f, AnsiString(ws)). Can anybody confirm this?

Thanks in advance,
Uli.

In Topic: Editing formatted TNxNumberColumns

17 November 2006 - 03:03 PM

QUOTE (uli @ Nov 16 2006, 06:01 PM) <{POST_SNAPBACK}>
without coEditorAutoSelect: The user get's 5.00678, because the grid formats the cell text after typing the first character.

Maybe I've found a solution to this:
  1. In TNxCustomGridControl.EditCell, delete the variable EditText and all of its occurences.
  2. Replace the line "Columns[ACol].UpdateEdit;" with
    CODE
      if Length(AText) > 0 then
        InplaceEdit.Text := AText
      else
      begin
        InplaceEdit.Text := Cells[ACol, ARow];
        Columns[ACol].UpdateEdit;
      end;
This leaves the "Key" parameter that TNxCustomGrid.KeyPress passes to EditCell as "AText" untouched (=unformatted) but retains the old behaviour in all other cases AFAICT.

Regards,
Uli.

In Topic: Delphi 5 compatibility

09 November 2006 - 05:42 PM

QUOTE (Markus @ Nov 9 2006, 03:12 PM) <{POST_SNAPBACK}>
In general, I'm doing almost the same as you proposed in your first post. It works quite well this way.

OK, then I guess I'll keep it that way.