I use a NextInspector, on this I have a item added on design-time called "customers".
On run-time I add subitems to this "customers" item with this code:
Posted 27 January 2016 - 05:31 PM
I use a NextInspector, on this I have a item added on design-time called "customers".
On run-time I add subitems to this "customers" item with this code:
Posted 28 January 2016 - 10:13 PM
Hi,
OnChange event should work fine. If you can send me mini-demo I can see where it stops (and why it won't trigger in your case).
You can also use OnToolButtonClick event of Item too.
Posted 31 January 2016 - 05:35 PM
If I use the code inside OnChange I have 2 problems:
1. The code is call for all item and not only for itemCustomers childs.
2 The code is call also on form creation when I put default value to NextInspector items.
Posted 01 February 2016 - 02:00 AM
A have create a small demo.
As you can see when the form is create you show message about "client changed" besides you can see the same message if you edit any items of NextInspector.
I have add also 3 button to report another problem, this time with TNxButton, as you can see if I sett ShowArrow the caption (and the image) is not centered. I think in this case you must move caption and image on leftto try to avoid the arrow.
Posted 14 February 2016 - 06:37 PM
I have attached the demo application! See preview message.
Posted 14 February 2016 - 06:49 PM
Hi,
Sorry for delay,
I will work on it today.
Posted 19 February 2016 - 07:27 PM
Hi,
Sorry again for delay,
I have altered your sample bellow.
CheckBox item include event from ToolbarItem. I didn't liked this for v6 so I added OnCheck event for CheckBox item only.
unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, NxPropertyItemClasses, NxPropertyItems, NxScrollControl, NxInspector, NxCollection; type TForm1 = class(TForm) insExample: TNextInspector; insMainItemGeneral: TNxToolbarItem; insItemGeneralTitle: TNxTextItem; insItemGeneralType: TNxComboBoxItem; insItemGeneralDate: TNxDateItem; insMainItemClients: TNxToolbarItem; btnPoligoni: TNxButton; NxButton1: TNxButton; NxButton2: TNxButton; procedure FormCreate(Sender: TObject); procedure insExampleChange(Sender: TObject; Item: TNxPropertyItem; Value: WideString); procedure DoToolButtonClick(Sender: TNxPropertyItem; ButtonIndex: Integer); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.DoToolButtonClick(Sender: TNxPropertyItem; ButtonIndex: Integer); begin ShowMessage('checkbox click'); end; procedure TForm1.FormCreate(Sender: TObject); var i: Integer; Child: TNxPropertyItem; begin for i := 1 to 5 do begin Child := insMainItemClients.AddChild(TNxCheckBoxItem, 'Client' + IntToStr(i)); TNxToolbarItem(Child).OnToolButtonClick := DoToolButtonClick; end; end; procedure TForm1.insExampleChange(Sender: TObject; Item: TNxPropertyItem; Value: WideString); begin if insMainItemClients.Items.IndexOf(Item) > 0 then begin ShowMessage('Client item changed!'); end; end; end.
Posted 28 February 2016 - 04:32 PM
Thanks, It's work.
Please fix also image button bug (see my demo) in next version.
I'd like know your position about v5 version of your components.
V5 will still be developed or your will devote only to v6?
In this second case (which it is understandable) you think to add all component of v5 to v6 and release a tool to help migration from v5 to v6?
Posted 28 February 2016 - 08:40 PM
0 members, 0 guests, 0 anonymous users