Does Magnific Popup support custom events/buttons - magnific-popup

I know Magnific Popup supports certain events such as Close, Next, etc. out of the box. But does Magnific support custom buttons and events if I wanted to add my own event hooks, such as Download, email, buy, or whatever button I wanted to created. I'm really just looking to be able to create my custom menu within the image 'div' area or directly beneath it. An example somewhere would be great. I just haven't been able to find any.

Before starting I would recommend reading the Magnific Popup Documentation
and familiarizing yourself with the available examples, more specifically the Pin it button example.
Naturally, you will have to code out the functionality of your menu items as you need them.
For the how to's on the specifics of your buttons you will have to do more specific searching as it does not appear that there is a built in
magic(click, poof)
{
//amazing things happen
}
function.
Good luck!

Related

Karate-Robot: How to scroll through a datagrid element?

I have been using the Karate framework Robot component for desktop UI automation. With it, I need to click on a button in each row item of a data grid and using click() doesn't work when the item is not in view/is offscreen. As such I'm trying to figure out how to scroll down to the items I need so I can click the button. I noticed with the driver there is an option to scroll() but I haven't been able to find one with Robot.
Is there a workaround for this or are there plans to add a scroll() function for karate-robot in the future?
Scroll certainly sounds like it may be missing from the existing API. Please do consider investigating and contributing to the code, which will just make it faster to release.
Meanwhile here are the possible workarounds:
see if using the TAB key auto-scrolls to the element
if you get a reference to the button you can call invoke() on it which is supported by a range of windows components
P.S. please do consider contributing code, the code base is actually quite simple. And here is where you can implement the Scroll pattern: link.

Start Over button in Gupshup chatbot

We would like to know how the Start Over button was used in one of the examples in Gupshup chatbot. Attaching the image for your reference.
We are actually intrested in allowing the user to go back to the main menu by using the button option. We have seen videos with user tying back. And also we have used the linking options.
Thanks
Manjiri

What type of rollover menus does Apple use in their Contacts App?

Does anyone know how Apple creates their rollover menus in the Contacts "business card" view*? I am trying to replicate that interface in an App I'm writing, but I'm not sure how to get there via XCode. I'm currently running Mavericks...
Thank you in advance!
* i.e. the "work" heading for an address is a context-sensitive popup menu that allows you to copy the address, open in maps, etc...
I wasn't able to replicate the Contacts interface exactly (I suspect they are doing some custom drawing routines), but I came up with something that was good enough for me. I created pulldown buttons with the "gradient" style, and visual set to "bordered".
Here is the key: during startup, I call the following:
[myButton setShowsBorderOnlyWhileMouseInside:true];
When you hover over the button, it highlights. Click, and the menu drops down. Perfect!

How do I add buttons to Aero Peek in VB6?

I'm working on a program that can play songs off an iPod. I want to be able to put functional Back, Play/Pause and Next buttons on its Aero Peek thumbnail like this:
For those who can't see it: http://i45.tinypic.com/1yua0m.png
How would I do this in VB6?
EDIT: Can I also create a jump list for my app? For this app, I only need taskbar jump lists. For others, I'll need taskbar and start menu jump lists so posting code to achieve both would be appreciated.
EDIT 2: I have uploaded a sample of how to use the ITaskBarList3 interface to add buttons to the window preview (and handle their click events), add an icon overlay, clip the window preview and add a progress bar to the program's taskbutton. Download it here.
Look at the Taskbar Thumbnail Toolbar feature of Windows Explorer. This does use a COM interface so I don't know how practical it is to use for VB but I beliver the IDLs are available if you look.
You can also find a C# example and the UI guidelines on MSDN.
The Jumplist information is also covered on the same pages.

How can I add hotkeys with Safari extension

Can I listen to hotkeys with safari extension?
I want to respond to Cmd+SomeKey with action done by extension, but I've read intro on apple developer and there is nothing about hotkeys.
You can add custom buttons to the Safari toolbar, create bars of your own, add contextual menu items, display content in bars or tabs, and inject scripts and style sheets into webpages.
No single word about hotkeys, and google doesn't find any article about that. So is it possible at all? If it is possible, where can I get additional info?
It can be done -- someone helped me to set it up for my browser window resizer extension. You need to have an injected script that checks for a specific keypress/combo then send a message back to your toolbar or global page. Here's an example on github of an inject script to monitor for specific keypresses (alt-1 to alt-0) and here's an example of doing something with the message lines 92-108 & 131 of this toolbar page.