MFC combobox dropdown/drop list: displaying only one item - c++

I've got several comboboxes which has approx. 40 items in each of them and no matter what I've tried to set in the VS 2013 comboxbox parameter box, it still shows only one item at time. I want to show several items at one time (doesn't matter if there will be vertical scrollbar or not) right now it looks like this
http://imgur.com/qU2UVrL
thank you for possible ideas.
mk

You can change combo-box expansion area directly in dialog editor: http://msdn.microsoft.com/en-us/library/4cta1x1t.aspx

Related

WinUI3 : Incrementally add contents to ListView On scroll

I am working on WinUI 3 desktop application in C++. I was trying to achieve an experience where when we scroll ListView, we will incrementally add rows to the end of the listviews dropdown during runtime.
For example, I might have 100,000 results to fit in a list view, I only want to show a limited number of contents in the list view, then as the user scrolls I'll add more contents to the list view.
I was not able to get any scroll-based events in ListView directly, so I extracted the ScrollViewer from the list view and handled the ViewChanged event. This event was fired when the scroll happened. But I was not able to get how many rows were scrolled or currently which row is been scrolled.
I want to get how many rows are scrolled so that I can insert enough rows to the end of the ListViews Item Source. It would be of great help if you could help me with this.
Thank You

Oracle APEX 21.2.6 Interactive Grid - double-click to edit popup LOV shifts data rows over. How to prevent this?

I have an IG display that looks like this without clicking anything else:
Only Supervisor, and Direct Supervisor are editable, and they are both Popup LOV's.
If I double-click the Supervisor data, and immediately type any letter for the Popup LOV search, the data row(s) display shifts to the left like this:
It doesn't matter how wide the window is when I test this. I've been looking for ways to prevent that shift. Do you have any tips to resolve that?
Thank you
I've since learned that this is a known issue, and a bug report was logged: https://community.oracle.com/tech/developers/discussion/4340268/apex-20-1-popup-lov-in-interactive-grid-causing-issue/p1?new=1
I've also noticed that it seems to happen from a single click plus typing to search - not necessarily from a double-click.
Finally, freezing a column or two in place in the IG display appears to prevent the visual shift of the columns.

Winforms controlling controls

I couldn't think of a coherent search term for my problem so please forgive me if this has been asked before.
I have 24 combo boxes sitting on a panel control, displayed in 4 rows of 6.
After the user defines the value for each combo and hits the "go" button, I add all combo boxes to list so I can use the values in another section of my program.
The problem is that the order the comboboxes are added to the list is messed up, compared to their visual layout on the panel, and I would like to define the order. Currently, it adds the 9th combobox to the list first then the 20th, 2nd, 16th etc etc.
I tried TabIndex but that didnt work.
Before I manually rename and relabel all of the boxes, any other suggestions will be gratefully received.
The controls of your form exist in Controls collection of the container controls, for example when you add a Panel and a Button to a Form and two ComboBox to the Panel, then:
Form.Controls contains button1 and panel1
Panel.Controls contains comboBox1 and comboBox2
Controls are added to the Controls collection, with the same order that you add them to designer. Open designer.cs, look at the end of InitializeComponent to see the order.
You can also see/change the order using Document Outline window.
That said, now it should be obvious that panel1.Controls.OfType<ComboBox>() returns combo boxes with the same order that you see in Document Outline (or based on their z-index, and it doesn't have anything to do with their x/y placements).
You may want to order them based on TabIndex, or any other property that you like:
panel1.Controls.OfType<ComboBox>().OrderBy(x=>x.TabIndex)
Note
In general, if you are going to use those values for a search, instead of relying on the order of values, a much better idea is creating a SearchModel class which has a few properties, the set those properties to the selected value of the corresponding combo box (manually or using databinding) then pass the search model to the other classes.

Oracle APEX: Add list boxes on demand

I am new to APEX and was wondering if you could point me in the right direction. I have an app that has 24 pairs of list boxes, (24 is the limit per requirements). What I did was create and show all 24 and it looks weird. (See image here).
My question is this: Is there a way to have maybe just one pair show and as they make their selection, a new pair of list boxes appears? Or maybe have a button that says something like "add a new category / type" and once clicked, a pair of list boxes is created? This would go on until they've populated the 23 sets of list boxes since 24 would be the limit.
By the way, the selected category value drives the type value. On the linked image, the size of the list boxes varies because of this. Can those list boxes be made with a fixed width?
Oh, I'm using 4.2.
Having read through the posts on this, if you did want to attempt creating a report which has cascading select lists you could try the approach found at this link:
https://apex.oracle.com/pls/apex/f?p=39514:1:
It's a slightly long winded process so it may not be the easiest solution, however having read through the instructions the guy provides it seems do-able:
https://apextipps.wordpress.com/2010/11/02/cascading-lov-in-tabular-form/
Hope that is of some help.

Can I add multiple columns in MFC CListBox?

I have a dialog with a CListBox .I have to add 3 Columns in this list box.
Is there any way to have several different columns in CListBox ?
Or Can CListCtrl help in this regard?
Listbox has list of items in 1 column, a list-control can have zero or more columns.
Natively, listbox does not have icon attached to it, list control has.
List control has "header control" on top of it, which can be used to arrange and/or sort the items in columns.
List Control (also know as report control) can have 4 or more view types (depending on OS) - icon, small icon, details/report, list and thumbnail.
The windows explorer file view (right side) is list control, fonts in Fonts dialog box is listbox.
Source : http://forums.codeguru.com/showthread.php?358739-CListBox-and-CListCtrl.
use CListCtrl::InsertColumn to add new column.
here is the reference
here is a example