Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

Handling Events

 Post Reply Post Reply
Author
Shalabi Nader View Drop Down
New Member
New Member
Avatar

Joined: 18 Jun 2014
Posts: 28
Post Options Post Options   Quote Shalabi Nader Quote  Post ReplyReply Direct Link To This Post Topic: Handling Events
    Posted: 03 Aug 2016 at 2:06pm
I am trying the following with NSToolbar:
1 - Add a toolbar and create 3 items (buttons) using the "Items" property
2 - Add event handlers to each sub item
3 - Testing the event handling works
4 - Add 3 NSViews to the form and assign each one to the View property of each sub item
5 - Event handling is no longer working
6 - Add a handler to each NSView OnTap event, still event handling is not working

How can I handle the click events if I assign an NSView to the NativeNSToolbarItem?

Regards 
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3187
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 03 Aug 2016 at 7:07pm
Hi, 

There is currently no event to detect clicks on an NSView, the NSView is currently a container for other controls. The OnClick event of the toolbar button will not be triggered as this is consumed by the sub NSView control assigned to the View property. Is there any reason you need an onclick event handler on the NSView sub view?
Back to Top
Shalabi Nader View Drop Down
New Member
New Member
Avatar

Joined: 18 Jun 2014
Posts: 28
Post Options Post Options   Quote Shalabi Nader Quote  Post ReplyReply Direct Link To This Post Posted: 03 Aug 2016 at 9:34pm
Yes, I am not using Bitmaps on the toolbar items, I am using a view that I custom draw it by overriding it's OnDraw handler...
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3187
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 05 Aug 2016 at 9:12am
Hi, 

We have exposed the OnClick event that is triggered when clicking the view, the next version will address this.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down