4.x: Communication between custom widgets - arcgis

How to make custom widgets communicate with each other in ArcGIS JavaScript 4.x?
To elaborate, when a button clicked on first custom widget it should update a label in the second custom widget and vice versa.

Related

Add a menu button on control bar in videojs

Hi I am using videojs player framework version 5.2.4.
I am trying to add a custom button in control bar menu. I tried code given here add item in control bar
But it seems that our version of video js is causing a problem in calling functions.
Is there any help for current version of video js? Also I want it to show/hide automatically as control bar hide and show.
Please help.

.Net Form Layout - create Chat UI like facebook or google hangouts

I want to create an application and chatting is involved. I am currently struggling to format existing controls or to create a control with the following conditions:
a container is docked to the main form's bottom
inside of that container, a button can be used to toggle a chat
component (e.g. text edit) to become either visible or invisible
if visible, the chat component is aligned with the button that was
pressed but does not force a resize on the container of the button
So basically I want to achieve a facebook or google hangouts like chat layout in vb.net that can also scale dynamically according to the current window size. Nevertheless it should always stick to the bottom.
Please keep in mind that this question is not about making the chat work but only the layout/design problem I am facing.
My current approach is the following:
FlowLayoutPanel docked to bottom with buttons
RichEdit as placeholders to simulate the chat component
My current layout
Is there an easier way to do what I want to do?
Set the anchors to the bottom of the page/panel.
On the designer, click the control you want to edit, find the Anchor property and change it to bottom (and left/right/top, whatever you'd like).

Change style of the widgets in GTK#

Are there other methods for changing style of the widgets in GTK# like gtkrc themes? I already tried to use themes but not successfully. Pixbuf engine is the only engine which correctly rendered in my GTK# application, but when I trying to resize any widget, my UI is working slowly and freezes. So are there any other methods for changing style of the widgets in GTK# app without gtkrc?
You must using cairo library to draw new widget.
below references is useful:
http://pygtk.org/articles/cairo-pygtk-widgets/cairo-pygtk-widgets.htm
http://www.tortall.net/mu/wiki/PyGTKCairoTutorial
http://manwhocodes.blogspot.com/2013/04/drawing-with-cairo-in-pygtk.html
http://zetcode.com/gui/pygtk/
you can inherit from a gtk widget similar EventBox and change face of this and draw different face on firing different events.

objects inside Ext.tab.Panel

I am writing simple apps with Sencha Touch 2. I see that the basic object in app/view/Main.js is Ext.tab.Panel.
What other Ext objects can be embedded directly into Ext.tab.Panel? Where can I look up this information?
From the Sencha Touch 2.3.1 docs, Ext.tab.Panel section:
http://docs-origin.sencha.com/touch/2.3.1/#!/api/Ext.tab.Panel
Tab Panels are a great way to allow the user to switch between several
pages that are all full screen. Each Component in the Tab Panel gets
its own Tab, which shows the Component when tapped on. Tabs can be
positioned at the top or the bottom of the Tab Panel, and can
optionally accept title and icon configurations.
Basically, you can put any view class which is subclass of Ext.Container inside a tab panel.
You can put any view you want.You can even put another container inside a container
Have a look at sencha touch docs.
http://docs.sencha.com/touch/2.3.1/#!/guide/views

Objective-C: How to create a Menu with custom UI?

I'm trying to develop an application in Xcode 4.1. I would like to create an application located in the menu bar, like described in this tutorial:
http://cocoatutorial.grapewave.com/2010/01/creating-a-status-bar-application/
But instead of showing a standard Menu when clicking, I would like to show a more graphical UI with some text fields, buttons, etc. like they do in Fantastical:
http://flexibits.com/fantastical
I hope someone can tell me, how I can do.
Here's the Status Bar Programming Topics guide.
Make an NSStatusItem. Set the item's view to a custom view that you create. This view will appear in the status bar and receive mouse clicks.
Make your custom view handle a mouse click by presenting a window with your custom UI.
It's not necessary to use a custom view. All you have to do is set the status item's target & action to your method which shows the window:
[self.statusItem setTarget:self];
[self.statusItem setAction:#selector(ShowOrHideWindow:)];