Jump to content


Photo

Event OnEdit & OnChange from NxInspector 4&5


  • Please log in to reply
3 replies to this topic

#1 AndreyDelphi

AndreyDelphi
  • Members
  • 3 posts

Posted 20 March 2017 - 03:02 PM

Hello guys!

I'am user NextSuite.

I'am using this product from 4&5 versions, i using in 5&4 onEdit event for handiling hot editing items.

Example:

Inspector := TNextInspector.Create(nil); // NextSuite 5
Inspector.Parent := Form;
Inspector.Align := alClient;
Inspector.BorderStyle := bsNone;

// Edit and button node
Edit := Inspector.AddChild(TNxButtonItem, 'YourSelf');
Edit.Value := 'Type here';

Inspector.OnEdit := editing;
...
procedure editing(Sender: TObject; Item: TNxPropertyItem);
var 
     Value: String;
begin
     Value := Item.Value;
end;

Now, i'am seen only events:
onEditing, onAfterEdit, and others, onEditing - only works on edit buttons and text nodes.

I want handling all nodes edit.

Thank'you.

* Sorry i'am know only based english language.



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,450 posts
  • Gender:Male

Posted 20 March 2017 - 07:50 PM

Hi,

If you connect InplaceEdit property to one of the Editors (NxButtonEdit, NxSpinEdit etc.) you can use other events you need from edit.

You place (or create in code) instance of (for example) TNxButtonEdit and then connect:

MyItem.InplaceEdit := NxButtonEdit1;
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 AndreyDelphi

AndreyDelphi
  • Members
  • 3 posts

Posted 21 March 2017 - 08:36 PM

Hi,

If you connect InplaceEdit property to one of the Editors (NxButtonEdit, NxSpinEdit etc.) you can use other events you need from edit.

You place (or create in code) instance of (for example) TNxButtonEdit and then connect:

MyItem.InplaceEdit := NxButtonEdit1;

Please, i need a example.

 

Best regards.



#4 AndreyDelphi

AndreyDelphi
  • Members
  • 3 posts

Posted 23 March 2017 - 04:19 PM

Sorry. I decided that using AutoAssign := True;






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users