Weird question, How can I implement branching in the Gridview Scrollviewer?
I'm using ListViewBase.ScrollIntoView to handle the event for No and scroll into "Screen End". But, I'm stuck on how to handle the Yes on Screen5.
Scenario: (--> = Swipe/Scroll || "Screens" are items in a scrollable
gridview)
Screen1 --> Screen2
Screen2 --> Screen3
Screen 3 has Yes/No question
Clicking No goes to **Screen End**.
Clicking Yes goes to Screen 4,
Screen4 --> Screen5
Screen5 has Yes/No question.
Clicking No Goes to **Screen End**.
Clicking Yes goes to screen 6,
Screen 6-->Screen 2.
Swipe/Scroll back on Screen 2 should go to Screen 6.
Related
I wrote this piece of code that should select the fifth option from a dropdown menu in a web page.
Dim title As Variant
Set title = ie3.getElementById("selectedTemplateActivity")
title.selectedIndex = 5
Saying that the fifth option in the dropwdown menu is called "Daily Activities"
When I run the code, it is true that the value "Daily Activities" is being populated with the two words "Daily Activities" but it seems like the program doesn't actually CLICK on the options of the dropdown menu.
I am saying this because if i select manually the fifth option of the dropdown menu, some text should appear on the screen as soon as the click is made.
This is what i am having trouble with. When i run the macro with this code, it is like the fifth option is not being clicked but the dropdown menu takes the value of "Daily Activities"
Please can you let me know how to fix this ?
Thank you :)
I have been searching for hours on what seems like an easy question, so alas, I will ask here. Working in MS Access with a navigation form, attempting to switch between navigation buttons/tabs in VBA to search for assets I wish to add to the project.
I have a Navigation Form with a number of navigation buttons to include btnUpdateProject and (hidden) btnSearch. btnUpdateProject has a subform named ProjectIndex with a btnSearchForAsset button (so I can search for assets I may wish to add to the project). I have VBA code:
Private Sub btnSearchForAsset_Click()
Me.Parent!btnSearch.Visible = True
Me.Parent!btnSearch.SetFocus
End Sub
The btnSearch becomes visible, per first command; however, the focus remains on btnUpdateProject. How do I get the btnSearchForAsset to be the focus? Much thanks for any help!
First of all you have to navigate to the form page and than setfocus on button.
Me.TabCtl1.Pages(1).SetFocus ; This will set focus on the Navigation page
Me.Parent!btnSearch.Visible = True
Me.Parent!btnSearch.SetFocus
I'm developing a Windows phone 8 app with visual studio.
I made two buttons, button1 and button2, and two textblocks that are under each button.
Button2 is under the button1, so button2 and textblock1 are overlaying each other.
When user clicks button1 I set textblock1.Visibility = true, and change button2's margin, so the app renders the following layout:
In the upper part there is the button1.
The textblock1 is in the middle
And the button2 is in the lowest part.
Now, when I re-tap the button1 I just want that textblock1.Visibility turns false and button2 returns to is original position. So I want to implement a species of dropdown button text, but i haven't find a way to do that.
Can anyone help me? Is there another way to to that?
I've tried a Listpicker from WPToolkit, but I don't want the selected item to be shown in the listpicker when this is not selected, and substantially I have the same tap problem.
I'm going to answer to the question that is in your thread title : "tap event: how to set an event for first tap, and another event for second tap".
There is several ways, you can set up a boolean variable or increase a counter.
In your case, you can check the visibility of your textblock1 :
if(textblock1.Visibility == Visibility.Collapsed)
{
//first click
textblock1.Visibility = Visibility.Visible;
}
else {
//second click
textblock1.Visibility = Visibility.Collapsed;
}
To the previous code you just have to add your instructions for the button2 position.
If you want to create your own ListPicker or ComboBox, you can read this tutorial but it is in french... :)
How to shows three different categories in a page in joomla3.0. and I want to get each category details when press that category
please see this Eg: http://www.templatemonster.com/demo/42980.html
In this web-page take "Services" page this page i want exactly please help me .
Check this Extensions
http://extensions.joomla.org/extensions/authoring-a-content/content-construction/19217
demo : http://demo.tzportfolio.com/
yep it's http://isotope.metafizzy.co/ what you are looking for and TZ Portfolio linked by chermanarun is using it ;)
There is no need of extensions and all follow this steps you will get it.
this steps are in joomla3.0 .
STEP 1 : take Menu Manager and take main menu.
STEP 2 : in main menu take choose your own page (here am selecting services page.inthe place you can take any pages eg : about,products.....etc).and change the Menu Item Type into Gallery view(click the select button that time open a window in that window click the Articles here you can see the list of some Menu Items select Gallery view )
STEP 3 :Now take Advanced option in there you can see Blog Layout Options here we some arrangements in there you can see Intro Articles(enter the numbers you Articles how much you want to show in a page),Columns(Numbers of columns), Multi Column Order(change this to Across), Show Filter(change this to SHOW )
STEP 4 : press save button and refresh it and see how is your page now.
Blockquote : need want one or more subcategory in that category which you selected in the* Choose a category field .
I want to create a scrollable list in flash/as3 and the important thing is.... if the user wants to move some list item up or down... he can do that by dragging the item... so when he press and hold on an item... the item will become drag-able and as the user moves it up or down the list, the other items should slide to the empty space. Its the same behavior seen in smartphones....
I'll figure out the creation, data filling, scrolling, and other mouse interaction events.... i just want help with this one behavior....of changing the order of items by dragging them. If only someone can just provide the basic algorithm or any idea how this can be achieved.. it will be enough.
​Thanks in advance
EDITS :
First of all... i apologize for not posting any details about the question... (this is my first post to this site) and hence i am adding all the research and what i have done so far.
the list is part of a big project hence i cannot share the whole code.
WHAT I HAVE ALREADY DONE :
i have created a mask, a container, a scroll bar to scroll the container, items to add into the list, methods to add items, remove items and arrange them according to the order.
hence it is a scrallable and working list.
the whole thing is in as3 and flash only.
i don't know flex and i don't want to use it either.
WHAT I WANT NEXT :
i want to change the order of these items by (mouse_down on an item -> drag it up/down -> mouse_up at the position) sequence.
If anyone wants more details i can share it.
Thanks in advance.. :)
Add a simple List component to an application
In this example, the List consists of labels that identify car models and data fields that contain prices.
Create a new Flash (ActionScript 3.0) document.
Drag a List component from the Components panel to the Stage.
In the Property inspector, do the following:
Enter the instance name aList .
Assign a value of 200 to the W (width).
Use the Text tool to create a text field below aList and give it an instance name of aTf .
Open the Actions panel, select Frame 1 in the main Timeline, and enter the following ActionScript code:
import fl.controls.List;
import flash.text.TextField;
aTf.type = TextFieldType.DYNAMIC;
aTf.border = false;
// Create these items in the Property inspector when data and label
// parameters are available.
aList.addItem({label:"1956 Chevy (Cherry Red)", data:35000});
aList.addItem({label:"1966 Mustang (Classic)", data:27000});
aList.addItem({label:"1976 Volvo (Xcllnt Cond)", data:17000});
aList.allowMultipleSelection = true;
aList.addEventListener(Event.CHANGE, showData);
function showData(event:Event) {
aTf.text = "This car is priced at: $" + event.target.selectedItem.data;
}
This code uses the addItem() method to populate aList with three items, assigning each one a label value, which appears in the list, and a data value. When you select an item in the List, the event listener calls the showData() function, which displays the data value for the selected item.
Select Control > Test Movie to compile and run this application.
source: http://help.adobe.com/en_US/ActionScript/3.0_UsingComponentsAS3/WS5b3ccc516d4fbf351e63e3d118a9c65b32-7fa6.html
Finally i have got the answer from some other forum.
Here is the link to the example (behavior) that i want to add to my list :
http://www.learningactionscript3.com/2008/05/13/the-power-of-relative-positioning/
(at the bottom 'Advanced Align Example').