VSTO Outlook: programmatically add a custom column of type PR_ICON_INDEX to an existing view - outlook

Is it possible to add the PR_ICON_INDEX property programmatically as a custom field (column) to an existing view using the Add method of the ViewFields object? If so how?
UPDATED 10/11/2022:
Okay, it looks like body properties are not supported in table object (I guess it is applied to TableView as well): https://github.com/MicrosoftDocs/VBA-Docs/blob/main/outlook/How-to/Search-and-Filter/unsupported-properties-in-a-table-object-or-table-filter.md

Related

Outlook 2016 - Modify Appointment Window

Wondering if there is a way to modify the Appointment window in outlook 2016 to add new fields?
A resource field that would be a drop down menu containing
different alphanumeric text field selections.
A Numeric data type entry field.
A Text data type entry field.
Thanks in advance.
Yes, you can create a custom form based on the IPM.Appointment class or create a form region associated with that class. See: https://msdn.microsoft.com/en-us/vba/outlook-vba/articles/customizing-form-pages-and-form-regions.
You can also host your UI in a custom Windows Form on a custom Task Pane adjoining the Appointment window by using a .NET add-in.

Add custom cell after the creation of a handsontable

I'm trying the Handsontable for the first time. My requirement is this: I want to be able to add a cell after the table has been created, in which I want to customize the content using renderer methods.
My goal is to add action buttons, such as "edit, delete, etc." for each row.
It seems possible to do so when creating the table, using the renderers, but I really need to be able to do this later on.
Is such a feature possible with Handsontable ? Any hint ?
On your action handlers, try calling HOT's updateSettings passing in the new options. options takes in a list of name-value pairs which can be any handsontable property that can be configured.

How to create a header view for NSCollectionView

I need to set a header view for my NSCollection view. When I researched I found that NSCollection view don't support a default header view like NSTableView. I need a header almost like the one used in skype. ie. apart from displaying just a title, I may need to perform some actions upon clicking header corresponding to a column. for eg. Sort by name upon clicking 'Name' column.
What is the best way to implement this if I subclass and create my own header view? Which view should I subClass to get both, the look and feel of NSTableview header and the clickable properties like that of NSButton?

MVC3 WebGrid showing custom class objects from model into columns

I'm trying to show a model in a WebGrid which has one column with a custom class. Without using the "format:" parameter to customize the column in the WebGrid, can I add something to my custom class (something like a default cast= to show a custom text instead of the full class name in the WebGrid?
I tried implicit/explicit conversion operators to string or HtmlString without success...
Thanks in advance!
Without using the "format:" parameter to customize the column in the
WebGrid, can I add something to my custom class (something like a
default cast= to show a custom text instead of the full class name in
the WebGrid?
AFAIK you should use a custom format: in the corresponding column.
I found it, easier than I expect: override ToString()!!!

Giving a Boolean property to a controller object in Interface Builder

After I drag a controller object to the document window, how do I give it a Boolean property?
Assuming you want the ability to expose and edit the property values of your custom controller as attributes showing up in IB's inspector, you'll need to write your own plugin which tells IB what the inspector should look like. This really can't be answered briefly.
Here's Apple's reference on IB Plugins:
http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/IBPlugInGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40004323-CH1-SW1
And here's the inspector portion:
http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/IBPlugInGuide/CreatingInspectors/CreatingInspectors.html#//apple_ref/doc/uid/TP40004323-CH6-SW1
If you truly just want to add a property to the controller's interface, you do this in Xcode (modifying the interface and implementation accordingly) and IB will pick up the changes automagically.
In the case of a checkbox, the checkbox itself is either checked or not. That state stores the boolean value instead of the controller (unless you wish it.)
To have the app undertake an action upon clicking it, think of it as a button instead of a data display and link it to an action method in the view controller. That's the simplest and old school way of doing it.
To use binding, you need to bind the checkbox's value attribute to a controller. Usually for binary values its an object controller. So, in IB, drag an Object controller to your nib window and bind it to your data source. Then, drag a checkmark button to the interface. In the checkmarks binding inspector. Set "value" binding to the name of the object controller, controller key to selection, keypath to the name of the data source attribute and provide a value transformer if needed.

Resources