Jump to content


wvd_vegt's Content

There have been 7 items by wvd_vegt (Search limited from 26-April 23)


By content type

See this member's

Sort by                Order  

#15803 How to use the InsertRow

Posted by wvd_vegt on 03 July 2011 - 09:54 PM in NextGrid .NET

Hi Boki

Please forgive me if I didn't understand it correctly ;)

You need a method and property which will:
- Move content of double-clicked row into a InsertRow.

Am I correct?


I would like to use the InsertRow to edit rows (not only for adding new ones). I just do not like inplace edit together with full row select.

So i need a method to start editing a row and the InsertRow code should be smart enough to replace the row being edited when done instead of adding it to the end of the grid.

Wim van der Vegt



#15799 How to use the InsertRow

Posted by wvd_vegt on 03 July 2011 - 01:44 PM in NextGrid .NET

Hi Boki

I'll look into the code changes.

SecondClickEdit only seems works for the grid itself and only on cell level.

What I try to do is use the InsertRow as edit area when full row select is enabled. Ideally double or second clicking a row would copy the rows values into the InsertRow for editing. After editing the Selected Row should be replaced instead of adding a new one. The InsertRow should keep track of if it's editing a row or creating a new one. For this I could live with having to call a (Do)EditRow method on RowLevel.

I think this would be a nice addition in functionality.

Wim van der Vegt



#15792 Enter Key and Editing

Posted by wvd_vegt on 02 July 2011 - 11:39 PM in NextGrid .NET

Hi Boki,

I've placed a NextGrid on a Dialog that has the OK button set as AcceptButton (see the screenshot of the previous posting).

Now when I edit something in the NextGrid's InsertRow and press Enter the dialog closes (probably because Enter is not handled inside NextGrid's InsertRow).

Wim van der Vegt



#15791 Minor Bug in InsertRow / Indicator

Posted by wvd_vegt on 02 July 2011 - 11:31 PM in NextGrid .NET

Hi Boki

Two for the list of issues (of v1.06):

When I have both an InsertRow and an Indicator and i edit and add a row by clicking the grid, I can end up with two indicators (both black with no visible triangle). Selecting the newly inserted row two indicators are selected and black.

When i just click the InsertRow and then the Grid itself I frequently end up with empty rows (not very visible but annoying enough ;-)

See the screenshot for both effects.

Wim van der Vegt

Attached Thumbnails

  • NextGrid BugReport #1.png



#15789 How to use the InsertRow

Posted by wvd_vegt on 02 July 2011 - 10:47 PM in NextGrid .NET

Hi,

I was wondering how to use the InsertRow correctly.

The functionality I would like is:

  • Be able to enter new rows and append the entered values at the end of the grid when the Enter key is pressed.

    Escape should end editing and clear the InputRow without adding a new row.

    Default the InsertRow only adds to the grid when I click the grid to end editing.
  • Be able to edit an existing row by double clicking it.

    The original values have to be replaced by new ones if I press Enter.

    Escape should just clear the InsertRow.

Question: How to code above?

Wim van der Vegt



#15682 Exe Demos are uploaded

Posted by wvd_vegt on 04 June 2011 - 04:16 PM in NextGrid .NET

Hi Boki

Your new components are still hard to find hrough Google.

WvdV



#15478 TNxFormulaParser?

Posted by wvd_vegt on 28 March 2011 - 11:59 PM in Next Addons

QUOTE (Thomas Steinmaurer @ Oct 9 2010, 12:34 AM) <{POST_SNAPBACK}>
Hi!

my expression includes variable names, e.g. something like that:

ExecutionTime > 200

variable names then need to be replaced by its concrete value at run-time, so I need a way to access variables in an expression somehow. Is this possible?

Something like FieldByName or ParamByName from the Delphi database world comes to my mind.

Thanks,
Thomas


Answering a bit late but the formulaparser allows you to register your own function and variables of certain types and the parser will evaluate them for you at runtime. No need for preprocessing. Have a look at:

CODE
procedure Addobject(adres : pointer; name  : string; typ   : Ftype);


and the declaration of Ftype. For your sample, call it like:

CODE
procedure Addobject(@ExecutionTime, 'ExecutionTime', tfp_intvar);


If you add a string variable the string is evaluated too.