Using Built-in Icons Programmatically - vba

This is a question that seems so simple that I can't find an answer to it anywhere online. I want to set a Tab Control page tab picture property to a built-in icon programmatically. I can do it manually easily enough in property sheet but accessing the built-in icons programmatically has be stumped.
I am looking for what I need to add to the end of this line to get the "Go To Next" icon:
Me.Page2.Picture = ???
Like I said, simple - but I can't seem to find the answer anywhere... Thanks!

Related

Share sheet icon on React-Native

I've looked around everywhere I can think of and cannot for the life of me find out how to change the icon that appears in the Share sheet inside of react-native.
Is this even possible to customize? I would love to put the app's icon in there.
When using a url only, it will automatically populate this icon with your link's favicon/web icon.
For a share sheet with a custom message it doesn't seem to be supported right now but, I would love to see this in the future.

How to implement a pop-up window when hovering on a URL link

I'm relatively new to Cocoa application. In my application (MacOS), I already mark the text if it contains image url link. What I'm trying doing now is that when the mouse hover (without clicking) on the link, the application will open an NSPanel (sorry, if it's inaccurate) and show the content of the image url. Also, the panel/window will be closed automatically when mouse move out of the text.
I've tried something such as "floating window/panel/quicklook", but the search result isn't close to what I want. Could anyone please give me some keywords so I can try to find the solution by myself? Thank you.

Removing tabs in tabcontrol and using designated buttons to switch between tabs

I'm currently working on an application for Windows, however, I have one small problem: I can't seem to figure this one out...
Is there a way to remove the tab headers from tab control and designate other buttons to switch between tabs? I'm going for a more modern look and the default tabs in tab control are not at all what I'm interested in.
thanks for your answers on this question!
I've just thought of a different method to keep the clean look of my program without having to get too complicated with code.
For anyone wondering about this, you could set different buttons to hide and show different things, for example:
Under homeBtn you could have code that shows the information shown on the page by default, yet at the same time, you could also hide any information from the previous tab.
Thanks, Laugh
You can easily add buttons setting the property SelectedIndex on the tab control to switch the pages. To hide the tab headers, there are some ideas over here.

How to dynamically add fields to a NSView similar to iCal New Task popup?

I'm trying to implement a NSView which will host a 'choose file' attachment button. If the user chooses to add a file, the user will be given an option to add another one (and from the 'new set of dropdowns' the user will essentially be able to pick the kind of file they're attaching').
The closest match to this functionality is iCal's New Task editor where you select an alarm and then it gives you an option to add another alarm right underneath.
What is the right way of doing this (I'm new to Mac OS X development)? I originally thought I'd create a custom NSView with all the 'file options' and then if the user was to attach a file I'd dynamically add another NSView right below it (in a NSScrollView). However so many apps do something similar that I almost feel as if there's something else out there in the set of controls that I should be using.
Please can someone guide me to the right direction? Is 'NSForm' or NSPredicateEditor used for this sort of stuff? This is what I mean:
Neither NSForm nor NSPredicateEditor would be useful for what you want to do. I think your thoughts about how to do this by adding a custom view below the original view, is the right way to go. You don't necessarily have to do it in a scroll view, you could expand the size of the window like iCal does.

Suggestion for dragster/dropzone like dock menu

I'd like to create a dragster/dropzone like dock menu. Looks a bit like a stack with a nsview in it.
After a lot if documentation searching and googling I've found a way to determine a dock icon's location.
(http://cocoadev.com/forums/comments.php?DiscussionID=1431)
Is nzbdrop creating a view which just looks like an stack to display it's menu or is there a better way of creating this?
Additional info:
I'm not looking for the drop like functionality just the nice way the DropBox window is displayed as an bubble/stack menu on top of it's app icon.
For anyone wanting to create something similar;
Matt Gemmell created a nice solution for this called MAAttachedWindow:
http://mattgemmell.com/source
Not exactly sure I understand your question but the Dragster and Dropzone apps clearly work something like this:
They have an application icon in the dock.
They respond to a drop request in the standard fashion.
Upon receiving a drop request, they open an application window above the dock which also accepts a drop request.
According to the link you provided, they use the accessibility API to locate their dock icon so they can open the application window above the dock icon.
The window is just a standard application window although most likely modal and floating (like a help window.) It can have any appearance you wish.