Button being clicked when changing state - framerjs

When I click on the blue Favorites button in screen 1, I want to bring up the list of favorites (screen 2) and then click on the green Favorites button to get to screen 3. However, when I click on the Favorites button in screen 1, I immediately go to screen 3. How do I fix this?
||----------Screen 1 -----------||------------ Screen 2 ---------||-----------Screen 3-----------||
Code
#Show favorites page (Click blue favorites button)
$.favoritesButton.on Events.Click, ->
#Show list of names
$.otherCellsClickFavPage.states.switch("on")
$.nameClickFavPage.states.switch("on")
$.checkClickFavPage.states.switch("on")
#Hide blue favorites button & show green favorites button 2
$.favoritesButton.states.switchInstant("default")
$.favoritesButton2.states.switch("on")
#Send to all favorites (Click on the green favorites button 2)
$.favoritesButton2.on Events.Click, ->
#Show Send to All Favorites Page
$.favoritesButtonSentToAllFav.states.switch("on")
$.sentMessageSentToAllFav.states.switch("on")
$.cellsSentToAllFav.states.switch("on")
#Hide green favorites button 2 & blue favorites button, so can show pink + white favorites button
$.favoritesButton2.states.switch("default")
$.favoritesButton.states.switch("default")
State "on" means turn opacity to 1 and state "default" means opacity to 0. The green Favorites button 2 is on top of the blue Favorites button.

Solved! I realized I just needed to move the blue Favorites button on top of the green Favorites button.
#Place Favorites button on top of favorites button 2
$.favoritesButton.placeBefore($.favoritesButton2)
#Show favorites page (Click favorites button)
$.favoritesButton.on Events.Click, ->
#Show list of names
$.otherCellsClickFavPage.states.switch("on")
$.nameClickFavPage.states.switch("on")
$.checkClickFavPage.states.switch("on")
#Hide blue favorites button & show green favorites button 2
$.favoritesButton.states.switchInstant("default")
$.favoritesButton2.states.switch("on")
#Place Favorites button 2 on top of favorites button
$.favoritesButton2.placeBefore($.favoritesButton)
#Send to ALL favorites (Click on the green favorites button 2)
$.favoritesButton2.on Events.Click, ->
#Show Send to All Favorites Page
$.favoritesButtonSentToAllFav.states.switch("on")
$.sentMessageSentToAllFav.states.switch("on")
$.cellsSentToAllFav.states.switch("on")
#Hide green favorites button 2 & blue favorites button, so can show pink + white favorites button
$.favoritesButton2.states.switch("off")
$.favoritesButton.states.switch("off")
State "off" means turn opacity to 0.

Related

Form and Sub form save with only one button on MS Access

I want to add record with one button on form and sub form. it should remain on current record when cancel or not click button.Product Detail
iNVOICE NO
New Products://i.stack.imgur.com/NYbiL.png
Invoice Form
Go to design tab
Click and drag the button icon into the main form
A wizard should pop up, follow the wizard by
Picking Record operations(to the left),Add new record(to the right)
Click next(at bottom)
Check Text
Click next(at bottom)
Click finish(at bottom)
The images attached depicts the steps.

Cannot click on UIButtons after animation in Swift

I am implementing a simple "Gear Menu" animation in a project.
When the user presses the Gear Button, it animates and shows two options ( location and rating ). My problem is that I am able to click on the Gear Button, but cannot click on the Location Button or the Rating Button.
When I click on the Gear Button, the animation starts and the animation should reverse when user clicks on Location or Rating Buttons.
Note: The animation code is generated by a tool called “CoreAnimator”. It is a very famous tool.
I have tried the following things:
Set the clipsToBounds property for the superview ( scaling ) to “True” to make sure that the Location Button and Rating Button are not going out of bounds.
Send the GearView to back in the subviews array of ( scaling ).
Still I am not able to click on the Location Button and Rating Button
Image of the Screen showing Gear Menu
Please find my project on dropbox:
https://www.dropbox.com/s/m6nshfzj8h7rux5/AnimTry.zip?dl=0

How to customize tab bar item image on runtime

I need to change the image of the tab bar item based on one of the option selected in my first tab at runtime. Whenever user changes the option the tab bar item image should change.
For example: I have 3 tabs. In first tab I have following options:
"Red"
"Green"
"Blue"
According to the option which user selects, the tab bar item image should change. (ie. for red, all 3 tabs should have red icons and so on)
How can I achieve this?
Thanks for helping :)

focus on two items in the same screen

Hi I have three items in the screen: Button 1, list2 and Button3 I want when I click on button 1 and then to the list, the button 1 still focused and I obtain focus in the items of the list and the button 3 not focus. Is that possible get fosus for two fields in the same screen?
If is possible how to do it ?
I have one Idea take two buttons for button1 like the images below.assign the handler for button1 as before click & after click.before click

Why doesn't clicking on my TToolButton show the DropdownMenu?

I'm using Delphi 2010 and I have a TToolButton contained by a TToolBar. Assigned to the 'DropdownMenu' property of my TToolButton is a standard TPopupMenu.
The only way I can get the menu to appear is to click on the area pointed to by the red arrow in the image. Currently, clicking the area pointed to by the green arrow shows the button as pressed, but the dropdown menu does not appear.
What I want is if the user clicks anywhere (pointed to by green arrow or red arrow) for the menu to appear. Is it possible to enable this functionality?
The idea of the tbsDropDown style is to have a button that triggers some default action when clicked, but provides more variations of that action in the drop down menu.
If you don't care about the down arrow disappearing, you can set the style to tbsButton and no matter where the button is clicked, it will show the popup menu.
If you are like me and you do want to have the arrow there to indicate that there are more options behind this button, you can call CheckMenuDropdown in the button's OnClicked event handler.
Set Style to tbsButton. Then you can click anywhere to show the drop-down menu, but you will lose the arrow.

Resources