how to remove previous item on user clicks or any button pressed - powerpoint

How I can add for example 10 item including text image and etc into the one slide of power point, and the slide Show start like this?
only the first item appears
on user click or any button pressed the previous item should be removed and second item placed instead of it.

One have to add text and image in a specific order on the slide.

Related

chose in scrolling field to go to another card

enter image description here
good day I need to chose from scroll field and it go to it own card the code I write always go to card "geely_km" even I chose "choice 2 "
If you lock the text of the scrolling field, then the text of any line you click on can be extracted:
on mouseUp
go card the clickText
end mouseUp
So if you have the names of the cards in that field, then clicking on any line will navigate to the card of interest
The easiest and most common way to do this in LiveCode to create a list-style field. Do it in either of these two ways:
Drag a Scrolling List Field object from the Tools palette to your card.
If you already have a field on your card, open its property inspector and tick the Lock Text and List Behavior properties.
Once your list field is created, enter the names of the cards, one per line, in the list.
Script the list field like this:
on mouseUp
go card the selectedText of me
end mouseUp
As long as the names of the cards and the names in the list match exactly, this will work.

MFC: how to make menu item auto-adjust to fit long string?

When the caption of a menu item is long, part of it is cut off. Is there way to make it auto-adjust to fit the whole string?
POPUP "&File"
BEGIN
MENUITEM "This is a pretty long me&nu item...\tCtrl+N", ID_FILE_LONG_ONE
Below is the screen shot (with some text concealed). What is seen in design doesn't match runtime; it doesn't display "Ctrl+N".
As far as I'm concerned, the menu items are adaptive and can automatically adjust the width based on the length of the string.
Regarding the problem of not displaying shortcut keys, In my opinion, you may not add shortcut key resources to the control.
For example:
1,Add a menu item with the ID "ID_FILE_Long". When you only modify the "Caption" in the properties. The results are shown in the following figure:
2,I suggest you should try to add shortcut key resources to the menu item.Open the Accelerator resource in the Resource view. And then add a shortcut for the menu item with the ID "ID_FILE_Long", as shown in the figure below:
3,The results are shown in the following figure:

How do I setup the Actions/Outlets for 2 radio buttons, a calculate button, and a graph output in XCode?

The image above is a screenshot of what I've set up in my storyboard. I have 2 radio buttons, 3 static values, and a final calculate button.
The way it works is this:
User selects either radio button #1 or radio button #2. If she selects radio button #2, she must select a file from disk. This file will then be parsed by the function linked to the calculate button.
The user must provide the 3 static values in order for this to work.
After pressing the calculate button, the function will calculate some things and eventually feed some data into the graph to the Container View on the right.
Here's the catch - I am doing this all through VNC viewer, so I cannot ctrl + drag. I need to know how to set this all up using the Connections Inspector menu (which is the alternative for users who cannot ctrl + drag):
Does anyone know how?

Positioning mouse cursor on another Application's List item entry based on its text value

I want to do an automation using Excel VBA. First of all I am not sure if its possible so I need to explain the problem first.
I would launch an application which has a list of reports , that one can run by right clicking on any of these and selecting an entry from the popup menu caled say "Run this report". The problem is the report names are displayed in a listbox.
There are so many entries I only need to run a few of them based on their names.
To achieve this I thought about placing the mouse cursor on the text displaying the appropriate report name and then trigger the right click event. These can be done using Windows APIs.
The challenge I am facing is how to hover my mouse on any particular list item based on its display text.
I can enumerate all the windows controls based on the handle of the application's window, but is it possible to get the location of any item on the screen based on the text displayed on list item.

How can I make a CMenu TrackPopupMenu SubMenu menu-item clickable?

Normally when you hover over a sub-menu (with the little arrow) on a CMenu menu item it delays briefly then shows the sub-menu items. Also, if you click the item before the delay timeout, it shows the sub menu items. I want the delay behavior, but I want a different behavior for the click. That is, I want the sub-menu itself (the one with the arrow) to be a clickable entity too, i.e. it has an ID and results in a WM_COMMAND and menu dismissal.
The idea is, the main sub-menu menu item is a "default", and the sub-menu items are modified versions, e.g. "print->" (defaulting to default printer), and sub-menu items like "print preview" "print to file" etc. Thanks for thoughts/suggestions.
edit:
IDR_MY_MENU MENUEX
BEGIN
POPUP "menu"
BEGIN
MENUITEM "&Something Else", ID_MENU_SOMETHING_ELSE
POPUP "&Print", ID_MENU_PRINT
BEGIN
MENUITEM "Print Pre&view", ID_MENU_PRINT_PREVIEW
MENUITEM "Print to &File", ID_MENU_PRINT_TO_FILE
END
MENUITEM "", -1, MFT_SEPARATOR
MENUITEM "&Bottom", ID_MENU_BOTTOM
MENUITEM "&Done", ID_MENU_DONE
END
END
I dont know if theres a better way as I last did this 2 years ago, but the way I solved the problem had one constraint: that you own the whole menu. If you do own the whole menu what you can do is create two columns (two columns in the menu/submenu that is, not a new submenu) and use the right column as a submenu and the left column as the default.
For future StackOverflowers, here's what I did...
Added a handler for OnInitMenuPopup and corresponding
ON_WM_INITMENUPOPUP(), although doing this messed up my UPDATE_COMMAND_UI handler but I was able to resolve that by moving that code into the OnInitMenuPopup handler.
In the OnInitMenuPopup handler, set a hook for the mouse SetWindowsHookEx(WH_MOUSE,...) (checking if one isn't already set because sub-menus can cause multiple calls)... and for each menu that initializes during the hook, push the HMENU onto a linked list.
In the mouse hook proc, checking the end of the list and working toward the front, verify each HMENU is still and active menu via IsMenu and remove it if it isn't. If there are no menus left, UnhookWindowsHook.
If there are menus left in the hook proc, check for WM_LBUTTONUP or WM_RBUTTONUP and see if happened over one of your menu items (because of coordinate mapping of screen versus sub-menu that I couldn't figure out I ended up simply cycling through the menu items via GetMenuItemRect and checking PtInRect to determine this).
If there is a click hit, do GetMenuItemInfo on the item, and if there's a hSubMenu for that item and it has an wID (and the wID doesn't match the sub-menu handle), simply post the id as a WM_COMMAND, post a WM_CANCELMODE to dismiss the menu, and disable the hook... Bingo!
So, seems to work fine and everything else functions like normal. The only issue at this point is a keyboard handler for selecting the item instead opening the sub-menu but I suspect the same idea works there as well.
Also, I added the main sub-menu text as the first item in the sub-menu list with a separator which added some clarity to what the menu was doing.

Resources