disable items in a combobox - vb6

I have a combobox from which i need to programmatically disable items depending on an external event. The external event is done, I just need to disable the selection of the item and have it greyed out (like a context menu when certain options aren't available).
It was decided that having items simply disappear would confuse users but having them greyed out like menu items would be familiar.
How do you do that in VB6?

There is no way to do this with the stock VB6 combobox. You can simulate it in any third-party combobox that supports owner-drawing. vbAccelerator's version supports this and is open-source.

This can not be done with a combobox. You could get a similar result with a listbox, though.

Related

How to create context menus which appear on right clicking in oracle apex report?

I need to display a context menu when a user right clicks on a report
and the user can perform an action on the rows selected. How to achieve this?
I can see there is already an action button on top of an interactive report. Can we customize that?
There's no built in way to do this. I see a few options:
You could hack together your own actions. You would add a Dynamic Event on mousedown on your report, then some Javascript to handle the action.
If it doesn't have to be a right click option, you can add a custom menu to a report. Here's one way of doing it. http://hardlikesoftware.com/weblog/2015/07/13/apex-5-0-custom-menus/
Also, if using the Interactive Grid is an option, that menu can also be customized. See: http://hardlikesoftware.com/weblog/2017/01/24/how-to-hack-apex-interactive-grid-part-2/
If you're willing to use a commercial Apex add-on product, I have used the FOEX add-ons with great success. However, it's not cheap and it would require changing your report to use their report-style (which we like). Then you can add a context menu that's maintained via the Shared Components -> Lists.
https://www.foex.at/home/
I'm just a user, not a shill or employee...

Delete Custom Events in Mixpanel

Me and my teammates created a custom event, which we don't want anymore. Is there a way to delete Custom Events in Mixpanel? To delete regular events, we need to contact mixpanel.
If that is not possible without contacting Mixpanel, is there any way to at least hide it? To hide an event, one can use 'Data Management'. Mixpanel documentation mentions that one cannot hide custom events using this option.
Yes, you can delete the Custom Events.
Go to Segmentation
Select the Custom Event
A Pencil will appear near the event name. Click it.
Click the trash icon
Albert's answer still holds true with as couple small caveats!
You can edit Custom events from several reports including Insights, Segmentation and the Funnels builder.
A pencil icon will appear next to the selected custom event.
Pencil Icon to Select
Select the pencil icon and the edit menu will result. If deleting from Insights, the trash can icon will appear at the bottom left side of the menu.
Delete Trash Icon

where is the specific button on design mode?

how can i find the specific button on design mode where i have several buttons ie: hundered of buttons so that they all like spaghetti and one button may be under another button or a groupbox (i might be playing with the visibilities ) and i want to see my button number 83 on the design. how can i see him? where is he hiding? :) i use visual studio as an IDE. thanks.
MessageBox.Show(" where is the specific button? i know that he is somewhere on the form but cant distinguish it on the design since its somewhere under something i cant find it");
Use Document Outline (View - Other Windows - Document Outline)
Just pick the button from the tree and voila.
PS: this works for other types of designers (WPF/Silverlight, ASP.NET)
You can access it via the Properties Window. There is a drop-down that will list all of the items in your form in design mode.
Then use the drop-down. The drop-down will list all of the items on your form so you will scroll through the list to find Button number 83.
Images were pulled from MS Visual Studio: The properties Window which contains an explanation of the window.
Have you tried using the properties window?

Win32 textBox in treeview

I want to add textbox in treeview as child of one of the parent node. Is it possible> If yes how to achieve this?
The native TreeView control isn't going to be helpful at all to make this work. Programming one yourself is a tricky proposition. It is however a very popular UI gadget. Any component vendor sells one, invariably called "TreeList".
You'll have to do some shopping if you want to use such a component from unmanaged C/C++. An ActiveX version of such a control is as close as you can get. Most component vendors have however put that in their legacy bag.
Depending on your requirements, you may be able to use the built-in label editing features of the Win32 tree view. See TVM_EDITLABEL.
To make an item act like an edit control, you could send this message yourself when the item is clicked. You could also use owner-draw techniques to make the item look more like an edit control when it isn't in label-editing mode.

How can I add an editable ComboBox to Vista's Common Item Dialog?

Vista introduced the new Common Item Dialogs for opening and saving files that supersede the old Common File Dialogs. Custom controls can be added by utilizing the simple IFileDialogCustomize interface. One of them is a standard ComboBox which is non-editable. Is there any way to create an editable ComboBox or modify an existing one (by adding the CBS_DROPDOWN style)?
Unfortunately, you can't. There is no guarantee that the controls you add with IFileDialogCustomize are Win32 controls. (And in fact, I believe they aren't.) Since they aren't Win32 control, there's nothing to set the CBS_DROPDOWN style on. Sorry.

Resources