How to get drop downs on top o figure Matlab App Designer - matlab

I want a drop down box to be in my figure. The figure will be updated based on drop down selection; thus I want drop down to remain on top. I think I want the drop down to be a child of the figure/axis, but I do not know where to put this in the script. I am using App Designer in MATLAB 2017B. The Mathworks Documentation doesn't provide an example. It states under UI Figure Parent/Chlildren, "empty GraphicsPlaceholder array (default) | 1-D array of component objects"
Can someone provide an example code. I am sure this is simple, but spent hours searching. Thanks in Advance.
Tim

When I made the app, I added the drop downs, then the figure. The only way I could fix this was to delete the drop downs and then add them back. Unfortunately, the part of the script that Matlab creates the components is locked, so there was no way of moving the drop downs to after the figure. It took alot of work since I had a lot of drop downs, but its done.
Tim

Related

Ag-grid enterprise: possibility to deselect cells in rangeselection via user interaction

I am currently using the Ag-grid enterprise angular version 20.2.0 in a project and we cannot find an option to deselect already selected cells during the range selection. In addition to that, I cannot find any information about that option in the given doc. https://www.ag-grid.com/javascript-grid-range-selection/.
Is there any possibility to deselect cells with ctrl and another key or do I have to create a feature request, so that they may implement that?
Just as further information, we use the api.getRangeSelections() to process and visualize the given values in a custom status bar component. We expect that customers demand to exclude unexpected data instead of deselecting everything and restart from scratch.
Thank you in advance for your assistance :)
Very good question. After a quick research on the doc, I can recommend you to enable advance range selection, and prompt users that they can exclude their selection only if they go around the cells they want not to select.
For example:
Here above, I selected cells with 'advance range select' ( CTRL + selection ) and remained a cell none-selected. Before I start to select with range, I figure it out which one I am not going to select, so it becomes easier to manage cells to be none-selected.
Go and experience yourself with this link: https://www.ag-grid.com/javascript-grid/range-selection/#example-range-selection-advanced

QField - Sub menus in input form for input fields

I just discovered QField and I amazed by its features! Now I am trying to create a project that will fit my needs and have come quite far. I just have one questing on adding features in the app:
When adding a feature in the Qfield App in my project, everything is on one page and I have to scroll down in order to reach all input fields. This can be quite tedious while working in the field.
In the documentation and the demo project, that follows when downloading Qfield from Play store (offline_bees.qgs), the input is split up into sub-menus which you can reach by scrolling sideways (see image). This is much more effective than having everything on one page and having to scroll downwards. Unfortunately, I haven't found out how you can split your feature into such sub-menus as seen here. I have played a bit around with the available input widgets in the attribute form, to no avail.
I have also read the available documentation for Qfield 1.0 multiple times, but since I am neither a frequent user of QGIS nor a programmer, it is a bit challenging for me to understand the instructions (https://qfield.org/docs/project-management/vector-layers.html). Does it have something to do with the Relation Widget or Relation Reference?
I am thankful if somebody could point me in the right direction.
Looks like I didn't play around enough. I found out how to solve my problem. Here are the instructions
In QGis while preparing the project for QField:
Go to layer properties/ attribute forms
Set to "Drag and drop designer" (I failed to find this at first)
Create groups (these will be the sub menus) with the "+" button
Drag and drop your fields into the created groups

auto complete a search

I have searched the questions so far, and it seems that most auto complete questions are about the console.
How can we auto complete a search and load it like the image below. I am new to xcode, so if you have instructions on what I need to do to get it to look like this, then I will appreciate it.
Basically I have an empty table cell, when i touch it to edit, a search box should come up (at the top), and as soon as I type a, all the values for a show up below in individual cells. I can select a cell when I see the value, and it will take me back to the original table and input that value into that cell.
What is the structure after i click the initial cell to bring up the search box
Auto complete with cells?
After this, I imagine I store the value of the variable, and assign it to the cell it originated from.
Attached is an image for reference.
Thank you in advance.
PS - The list to auto complete from has a few thousand values.
Thanks!
For several thousand entries it's unlikely Core Data will give you good performance. Instead you'll need to load the data as a Directed Acyclic Word Graph (DAWG). See other answers on this for further info.
Directed acyclic graph
Best way to implement address book autocompletion on iPhone?

Dynamics AX Form Item Ordering

For the most part, AX forms seem to follow the AOT layout and appear in order. However, in some cases, the form items appear in seemingly arbitrary order, and in others, the items in the AOT won't even reorder. No matter how you drag and drop items in the AOT, they are always in the same order. This problem happened on occasion in AX 2009, but seems to be worse in AX 2012. The only way I've found to get around it is to drop the non-reordering items and recreate them.
Has anyone else had similar experiences? Anyone have a fix?
Ok, I've found that dragging and dropping only works part of the time. However, if you use ALT+the arrow keys to move items up and down in the hierarchy, that seems to work just fine.
The way I read your question it seems you are referring to control layout within a form. If your question is about something else please clarify.
To change form control layout you need to use AOT \Forms[FormName]\Designs\Design node. You can drag and drop controls and control groups.
If you drag a control (let's call it "dragControl") and drop it on top of another control (say "dropControl"), then dragControl will be placed after dropControl. This means that if you want to change the first control of a control group, you need to drag the first control, as dropping any control on top of the first one will place them after the first control.
Also make sure your form does not have changes is some higher layer that would override the changes you are making in a lower layer.
Does this answer your question?

Arrange GUI elements in WPF in a similar way to the applications on the iPhone

I would like to arrange UIControls in WPF in a similar way to the applications on the iPhone. They should be positioned on a grid, but a user should be able to drag them somewhere else, after releasing the mouse button (or the finger in case of an iPhone) the selected UIControl should snap back to the next position in the grid. The other UIElements should be rearranged automatically.
Further the user should also be connect two elements with a line or something.
I'm not experienced with WPF. The first question is if there is a container which is suitable for something (System.Windows.Controls.Grid ?) or if I have to extend canvas or somethig else for this.
I would like to know which elements from the WPF framework can be used and which elements I have to write myself.
For people who do not own an iPhone: http://www.youtube.com/watch?v=3omhu2AUWC8
Update
I've looked at AnimatedTilePanel in the BangOTricks examples (see below), this one explains how to create your own Panel and how to let it arrange things there.. However I still need an idea how to implement drag and drop correctly in this example..
Unfortunately, you'll have to write a lot of things yourself, as WPF doesn't automatically do what you're looking for.
For positioning the controls, you can use either UniformGrid or Grid. Assuming it's much like the iPhone video you showed, you can just use the UniformGrid with 4 columns and however many rows you need.
For the dragging animation, layout-wise, you could start by manipulating the RenderTransform property on whatever is being dragged, but you'll have to set a handler to check once you've met whatever threshold necessary to move into the another "cell" -- and at that point, you'll have to changed the order of the items in the tree.
Take a look at AnimatedTilePanel from Kevin's Bag-o-Tricks at:
http://j832.com/bagotricks/
It doesn't do everything you want but it will show you how to write a panel that animates its children when changing size or order.
New input to this old post in 09. Earlier this year (2012) someone has wrote a FluidWrapPanel and open sourced it. I tried it and it works like a charm - just like that on the iPhone menu.
You can also apply to other UI Elements or UserControl.