Profile Picture

Is it possible to add user/custom button on nuipanel bar?

Posted By JSW W. 13 Years Ago

Is it possible to add user/custom button on nuipanel bar?

Author
Message
JSW W.
Posted 13 Years Ago
View Quick Profile
Supreme Being

Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 127, Visits: 1
I need to add my own buttons especially on the left of the title of nuipanel.
I willing to pay some fee, if you don't have this feature yet.

Thanks

Attachments
dockingpanel.gif (201 views, 6.00 KB)
Nevron Support
Posted 13 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,350 reputation)Supreme Being (4,350 reputation)Supreme Being (4,350 reputation)Supreme Being (4,350 reputation)Supreme Being (4,350 reputation)Supreme Being (4,350 reputation)Supreme Being (4,350 reputation)Supreme Being (4,350 reputation)Supreme Being (4,350 reputation)

Group: Forum Members
Last Active: 7 hours ago
Posts: 3,043, Visits: 3,777
Hello JSW W.,

I guess you are asking about docking panel not NUIPanel.

if so, you can add a button to the right side of the panels' header using NCaptionButton:

NCaptionButton button = new NCaptionButton(buttonID);
nDockingPanel1.Caption.Buttons.Add(button);

There are predefined buttonID's defined in CaptionButtonID enum. However, you can set any int value for button's ID.

To handle button's click event you need to attach to panels's CaptionButtonCliecked event.



Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic