Hi
I want to replace my UIBarButtonItem (used for refresh) with a UIAlertView and, when the refresh is finished, I want to turn back to the refresh button and remove the UIAlertView. Can anyone help me?
Thanks
I am using AppleScript to close windows in Google Sketchup as follows:
$ osascript -e 'tell application "SketchUp" to close window 1'
When I close the window, the program prompts me to save, and there is a dialog box with buttons "Don't Save", "Cancel", and "Save...".
How do I make my script click on the "Don't Save" button in this situation?
Also, if there is a better way of closing the window, I'm all ears.
sir
I'm getting 2 different values
in back button click
My question is,
*If I want to back to view as per my value coming in int variable.
how is it possible?
*My second question is that my project is based on UINavigationController
So,how should i do that?
bcoz i'm using PushviewController to puch the new view from olderview
Thanks in advance
i have attached my sample project here,
http://cid-08ec3041618e8ee4.skydrive.live.com/self.aspx/.SharedFavorites/dep2.rar
Can any one look and tell whats wrong in that,
everythng working well, but i cant bind the value in text box,
when u click the button u can see the passed value to usercontrol in message box, but i cant bind that value in text box.
Why????
Hi,
Is it possible to create a site on demand? So in the response of an event, such as button click. I want users to be able to see one site (all users), but users with assigned to a certain group will see two sites.
Also, when would I want to create a seperate web application?
Thanks
I recently installed Platform builder 7 by Microsoft. It is a plug-in for VS2008.
The plug-in adds the following menu:
I want to remove several items from this menu and I would also like to add some button from it to a toolbar. The problem is that when I do customize I only get "advanced command placeholder" shortcut for the whole bunch. Like this:
How do I access the internals of these commands menu?
Hi All,
I am trying to get values from adjacent columns, when a radio button is clicked for that row.
I'm able to do so, but the problem I'm facing, when there are more elements in the radio button column, then i am getting null values(i.e 2nd row is not working). Please help...Code is all follows
<table id="dist_list" class="data">
<tbody>
<tr>
<td>
<input type="radio" value="636406" name="distRG" id="radio_7" /></td>
<td class="selected">Company 1</td>
<td class="siteId">1234</td>
<td class="siteName">First Company Name</td>
</tr>
<!-- Not able to get values from this row, since there are more elements in it -->
<tr>
<td>
<span class="jqTransformRadioWrapper"><a rel="distRG" class="jqTransformRadio" href="#"></a>
<input type="radio" value="636406" name="distRG" id="radio_2" />
</span></td>
<td class="selected">Company 2</td>
<td class="siteId">2345</td>
<td class="siteName">Second Company Name</td>
</tr>
<tr>
<td><input type="radio" value="636406" name="distRG" id="radio_3" /></td>
<td class="selected">Company 3</td>
<td class="siteId">3456</td>
<td class="siteName">Third Company Name</td>
</tr>
<tr>
<td><input type="radio" value="213584" name="distRG" id="radio_4" /></td>
<td class="selected">Company 4</td>
<td class="siteId">4567</td>
<td class="siteName">Fourth Company Name</td>
</tr></tbody></table>
jQuery script
$("input[name=distRG]").click(function() {
var owner = $(this).parent().siblings('td.selected').text();
var siteId = $(this).parent().siblings('td.siteId').text();
var siteName = $(this).parent().siblings('td.siteName').text();
alert(owner);
alert(siteId);
alert(siteName);
});
When globalizing a wpf application with static resx classes, it's very easy to miss the odd label or button that has its Content property set to a hard coded string in a particular language, ie English. These should of course be moved off to a {x:Static ...} so they can be localised for each culture.
Are there any tools which can spot this and warn you? Built in to VS would be ideal, but I'm thinking that 'style cop' type build tools would do the job as well.
I've got a custom component that has children components dynamically added and removed to it depending on what button the user clicks. What I would like to do is trigger a transition effect that moves the child component onto the stage when it's added and then moves it off when it's removed.
Does anyone have a good example on how to accomplish this?
Edit: I figured it out and left my solution below. I hope it helps someone else!
When click on particular uesr in list and select the show map button then it show the map with an icon but this icon is not deleted from the screen it continously.but i don't want that icon for this what can i do?Thanks in advance
Is there some way in objective C to see if an instance is being touched such as:
- (void)viewDidLoad {
[super viewDidLoad];
if (recordButton.touched = YES) {
NSLog (@"record button got touched");
}
}
Can't they just make these things easy?
Could someone help?
I have a problem with a TextBox in an application...
A window has a Grid with two columns. The left column contains a control with a constant width but with a height that adapts. The right column contains a TextBox that takes up all remaining space in the Grid (and thereby in the Window).
The Grid is given a minimal width and height and is wrapped within a ScrollViewer. If the user resizes the window to be smaller than the minimal widht/height of the Grid, scrollbars are displayed.
This is exactly how I want it to be. However, a problem occurs when the user starts typing text. If the text is to long to fit in one line in the TextBox, I want the text to wrap. Therefore I set TextWrapping="Wrap" on the TextBox. But since the TextBox has an automatic width and is wrapped in a ScrollViewer (its actually the whole Grid that is wrapped), the TextBox just keeps expanding to the right.
I do want the TextBox to expand if the window is expanded, but I don't want the TextBox to expand by the text. Rather the text should wrap inside the available TextBox. If the text don't fit within the TextBox height, a scrollbar should be displayed within the TextBox.
Is there a way to accomplish this?
Below is some code that shows my problem.
<Window x:Class="AdaptingTextBoxes.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="300" Width="400" Background="DarkCyan">
<Grid Margin="10" Name="LayoutRoot">
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
<Grid MinWidth="300" MinHeight="200">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Button Grid.Column="0" Margin="0,0,10,0" Content="Button" Width="100" />
<TextBox Grid.Column="1" AcceptsReturn="True" TextWrapping="Wrap" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Auto" />
</Grid>
</ScrollViewer>
</Grid>
</Window>
I have a tab-bar controller that loads a RootView.
The RootView has 4 buttons that will load a UITableView
I don't want my tab-bar to be visible in the RootView so I added the following code:
-(void)viewDidLoad{
self.hidesBottomBarWhenPushed = YES;
}
When I initially load the app the tab-bar doesn't appear, but when I click on a button, and go back to the RootView the tab-bar still appears. I have tried placing this code in viewWillAppear and other application lifecycle methods but no luck.
The problem in this code is that when it's run and I push "Yes" button, This is shown:
This means that my application stopped working, I just want it to end.
private void App_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
{
string message = "An unhandled exception has ocurred, do you want close the app?";
MessageBoxResult currentMB = MessageBox.Show(message, "SomeTitleApp", MessageBoxButton.YesNo, MessageBoxImage.Exclamation);
if (currentMB == MessageBoxResult.Yes)
{ Application.Current.Shutdown(); }
else
{ e.Handled = true; }
}
Hi,
I am looking for a way of preventing the deleting of one of my cells. (no delete button should appear next to the cell when the table view is in editing mode)
How can this be made possible?
Thanks :)
I have created a site where people can create a profile. But I am trying to figure out how to start on making an add friend button so users can have friends.
In my user table, i have user_id, first_name, last_name, email, etc.
Should I somehow relate the user_id of the user and the friend in a friend table?
I am a novice to programming, so these things are still new to me. Thanks!
I need to do something similar, where an animation highlights the text of a button to show that it must be slided to do something. Just like that unlock thing on the iPhone. How is that done? Is there a tutorial how to achieve this effect?
I want to make an "Open File" button to import txt files contents into a textarea.
How can I read the file contents without uploading it to the server?
I want to use javascript (with jquery lib) and I want to do it without refreshing the page.
Hi i am developing an app for my QA department. I need to programically get how many phone numbers are there in the entire address book. No user input. Just click a button and then get how many phonenumbers are there in the ENTIRE addressbook.
Please email me at [email protected]
Hello,
I've created a UIButton on a view and on action of the UIButton[UIButton* button1_obj] one more button[UIButton* button2_obj] is created on same view.
i'm facing these 2 issues...please guide me how to proceed.
button1_obj is appearing when i run my project, but its not being clicked or highlighted, nor any exception is thrown.
On action of button1_obj , button2-obj has to appear on the same view, how to clear the view before placing button2_obj on it.
I have a parent page and a child page.
By using window.opener.parent property,I am able to read the parent page content and display it in the child page.(There is a PREVIEW button on parent page,on click of which the child page opens up as a popup and displays the content of parent page controls.)
This functionality was working fine in IE7/Mozilla/IE6 but I am unable to locate why its not workin with IE8. Can anyone please help?
I have create a report in Microsoft Reporting Service that is presented in a browser. I would like to create button that opens a textbox where the user can fill in text. This text should be saved in column in the underlying database.
i am trying to make a uiapplication
If i click on a button then a background thread must start which should run even when my application is exited how can i do that
I created a background thread but it gets stop when the app exits.