w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
WPF: In Expression Blend, customizing a button, if I change the appearance of one state, the others' appearance will be same
I have solve it. Firstly, select one state in "States Panel", then switch to “Objects and Timeline Panel” and add a "Border", next change it's appearance. Like this:

Categories : Wpf

XmlDocument Save Throwing Access Denied
You can try writing into the xml file using (TextWriter writer = new StreamWriter(filePath)) { doc.Save(writer); writer.Close(); }

Categories : C#

Why is PHP throwing throwing a "Cannot Redeclare" error at a local, included function?
The key is this error message: Fatal error: Cannot redeclare sec_session_start() (previously declared in E:Additional ProgramsxampphtdocsVista_Ridge_Territory_SystemPHPScriptsVRC_Header.php:14) in E:Additional ProgramsxampphtdocsVista_Ridge_Territory_SystemPHPScriptsVRC_Header.php on line 24 The only way for this error to occur is if you have included VRC_Header.php twice. This has nothing to do with jQuery, and nothing to do with sessions or regenerating session ids. The two different line numbers are just pointing to the start/end of the function. Try putting an echo() command above the function, and you should see the echo happening twice. Even better, put the following code above your function, and it'll display a more useful error message, including a backtrace that will help y

Categories : PHP

How to remove space below the UITabBarItem
Tab bar images always line up with thetop of the tabbar. If you want to make them have space above and below, you put that space in the icon. So, you need to make your image taller and leave blank space on the top of your image. The images should be 60x60 and 120x120, then they'll fit better.

Categories : Iphone

How to remove space below the UITabBarItem?
As Vytis says in their answer here: There is a property on UIBarItem (UIBarButton item inherits from this class) imageInsets. To use full height images (49px) for finishedSelectedImage and finishedUnselectedImage you need to set these image insets: tabBarItem.imageInsets = UIEdgeInsetsMake(6, 0, -6, 0); you have to write the following lines of code item0.imageInsets = UIEdgeInsetsMake(6, 0, -6, 0); item1.imageInsets = UIEdgeInsetsMake(6, 0, -6, 0); item2.imageInsets = UIEdgeInsetsMake(6, 0, -6, 0); item2.imageInsets = UIEdgeInsetsMake(6, 0, -6, 0);

Categories : Iphone

How to change UITabBarItem position?
It's look like there is no way to change UITabBarItem's image's position. I just corrected my selected image to have about 15 pixels in button and corrected UITabBarItem's title's position on 15 in tabBar:didSelectItem: method of my custom UITabBarController: - (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item { // If there is another selected item set default properties to it. for (int counter = 0; counter < [self.tabBar.items count]; counter++) { UITabBarItem *currentSelectedItem = [self.tabBar.items objectAtIndex:counter]; [currentSelectedItem setTitlePositionAdjustment:UIOffsetMake(0, 0)]; } // Set selected item. UITabBarItem *selectedItem = item; [selectedItem setTitlePositionAdjustment:UIOffsetMake(0, -15)]; }

Categories : Misc

Master-Detail with UITabBarItem?
A UISplitViewController must be at the root of your controller hierarchy. From Apple's Split View Controllers documentation: A split view controller must always be the root of any interface you create. In other words, you must always install the view from a UISplitViewController object as the root view of your application’s window. The panes of your split view interface may then contain navigation controllers, tab bar controllers, or any other type of view controller you need to implement your interface. Split view controllers cannot be presented modally

Categories : IOS

Remove gradient/Gloss from UITabBarItem
You just need to put clear image as `yourImage', it may help you [[UITabBar appearance] setSelectionIndicatorImage:[UIImage {yourImage}]] Edit i just googled it and found lot of similar questions. You can also try below code of lines [[UITabBar appearance] setShadowImage:[UIImage imageNamed:@"Tappbarimage.png"]]; You'll have to provide the images yourself to the UITabBarItem with using this tabbarMethod setFinishedSelectedImage:withFinishedUnselectedImage:. There's no other way to affect the processing it does to the images besides changing the color of the gradient with UITabBar's selectedImageTintColor appearance property.

Categories : IOS

UITabBarItem delete glossy from image
You need to set both finished and unfinished images on your UITabBarItem otherwise framework will automatically add the shine on it. Here is how you can do it. [barItem setFinishedSelectedImage:[UIImage imageNamed:@"myimage.png"] withFinishedUnselectedImage:[UIImage imageNamed:@"myimage.png"]]; Please note that both finished and unfinished images are same.

Categories : IOS

Finding the location of a UITabBarItem in Monotouch Xamarin.iOS
You can iterate trough the subviews of your UITabBar and get only those subviews which are a type of UITabBarButton class. Then you get the frame of the subviews you are interested in. List<RectangleF> tabBarButtonFrames = new List<RectangleF>(); foreach (var view in this.tabBarController.TabBar.Subviews) { if (view.ToString().Contains("UITabBarButton")) { tabBarButtonFrames.Add(view.Frame); } Console.WriteLine(view.ToString() + " " + view.Frame.ToString()); } Note: This link contains more ways of getting the Objective-C class names from poupou

Categories : C#

Adding UITabBarItem to UITabBar Programatically, and set action to it
You can create new controller using Inheritence from UITabBarController and add a custom button on UITabBar --> UITabBarItem therefore UITabBarItem send to back and your custom button shown front. You can set any spesific action with this custom button. Otherwise iOS SDK does not allow giving a spesific action for UITabBarItem.

Categories : Iphone

How to change Appearance in GWT
By appearance, if you mean color theme, you can change or remove the default theme in your PROJECTNAME.gwt.xml file. Changing/removing this will respectively change/remove the CSS stylesheet that gets automatically attached to your application. The default is: <inherits name='com.google.gwt.user.theme.clean.Clean'/> You can change it to one of the following themes: <inherits name='com.google.gwt.user.theme.standard.Standard'/> <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> <inherits name='com.google.gwt.user.theme.dark.Dark'/> Or remove / comment those lines altogether.

Categories : Gwt

different appearance about a:active in ie7 and ie8
What is happening is that IE7 is considering the anchor still "active" because it hasn't lost the focus yet. That would actually make sense (maybe not). Other browsers, though, consider it inactive as soon as the mouse button is released, which we usually take for granted. If you really want to handle mousedown and mouseup events on a link, I think you will need to deal with it in JS: Plain JS solution var a = document.getElementById("myLink"); a.onmousedown=function(){ this.setAttribute("class", "active"); }; a.onmouseup=function(){ this.setAttribute("class", ""); }; jQuery solution var $a=$('#myLink'); $a.mousedown(function(){ $(this).addClass('active'); // this is actually much more scalable, if you don't mind using jQuery }); $a.mouseup(function(){ $(this).remo

Categories : CSS

Appearance side of the div
Say your div which will show up on click has a width 300px. Your div css must contain two property atleast, .div1 { position:fixed; top: 5%; // Use whatever you want width: 300px; left: -300px; // The width of your div, may have to change slightly based on your design. } now clicking on any icon say id icon1 $(document).ready(function () { $("#icon1").click(function () { var left = parseInt($(".div1").css('left')) < 0 ? 0 : '-300px'; $(".div1").animate({left: left }, 1000); }); }); This may help. Thanks

Categories : Jquery

How to make UITabBarItem selection like UIButton selection
Well I would suggest in 2 methods to solve this issue :- You could well add 2 images to your UITabBar using [Tabbar setFinishedSelectedImage:[UIImage imageNamed:@"selected_button"] withFinishedUnselectedImage:[UIImage imageNamed:@"unselected_button"]]; Here you can show images in your tabbar and so place the deselected image again on the click. Remove the tabbar and add simply UIButtons that would serve the purpose of the Tabbar.

Categories : Iphone

VBA copy appearance function
I think this might be the problem if your Pie chart is not a perfectly square shape. I can replicate your issue, and even when I check the Fill options, the offsets are all 0%. I can adjust them, but that is not a reliable way to do it. So, the best option I think will be to ensure that your pie chart .Parent is a square shape. To do this, before you CopyPicture, set its Height equal to its Width, like this: chtMarker.Parent.Height = chtMarker.Parent.Width '## Ensure the chartObject is a square, so it will not be distorted when pasted. chtMarker.Parent.CopyPicture xlScreen, xlPicture

Categories : Excel

Datatables, how to change appearance
Firstly, in order to remove the 'entries' info, you must add the option 'bInfo' with the value of 'false': jQuery -> $('#treatment').dataTable "bPaginate": false, "sScrollY": "400px", "bScrollCollapse": true, "bInfo": false // to disable the entries info. Its always a good idea to read the documentation. Lastly, given you have not given a complete reproduction of your experienced problem, the following is a shot in the dark based on the limited information provided; You may wish to modify/add the css classes to your own css file that is included last in the document, tr.odd.gradeA td.sorting_1 and tr.even.gradeA td.sorting_1. Always remember to inspect the elements with your browser's development tools, which would allow you to see which classes you need to modify,

Categories : Javascript

Customise the appearance of UIActivityViewController
activityindc=[[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge]; activityindc.frame=CGRectMake(130, 40, activityindc.frame.size.width, activityindc.frame.size.height); [activityindc startAnimating]; alert_common=[[UIAlertView alloc] initWithTitle:@"" message:@"Please wait..." delegate:self cancelButtonTitle:nil otherButtonTitles:nil]; [alert_common addSubview:activityindc]; [alert_common show]; [activityindc release]; [alert_common release]; double delayInSeconds = 1.0; dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, delayInSeconds * NSEC_PER_SEC); dispatch_after(popTime, dispatch_get_main_queue(), ^(void){ [alert_common dismissWithClickedButtonIndex:0 animated:YES]; });

Categories : IOS

UIBarButtonItem appearance difference between iOS 5 and iOS 6
If you use your image with Retina display then postfix your image with @2x : "arrow-back-button@2x". Try to create a category of UIImage and add this instance method: (UIImage*)resizableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight: (NSInteger)topCapHeight </b>{ UIImage *image = nil; float osVersion = [[[UIDevice currentDevice] systemVersion] floatValue]; if (osVersion < 6.0) { image = [self stretchableImageWithLeftCapWidth:leftCapWidth topCapHeight:topCapHeight]; } else { UIEdgeInsets edgeInsets = UIEdgeInsetsMake(topCapHeight, leftCapWidth, topCapHeight, leftCapWidth); image = [self resizableImageWithCapInsets:edgeInsets]; } return image; } I suspect there is an iOS 5 bug that has been fixed in iOS6

Categories : IOS

Strange appearance of WPF DatePicker
Assuming you are working with textblocks then you could try something like this. <StackPanel Orientation="Horizontal" Height="40" Margin="10"> <Border Background="Transparent" BorderBrush="#FF2A2A89" BorderThickness="2"> <TextBlock Width="150" Text="Testing" TextAlignment="Center" VerticalAlignment="Center" /> </Border> <DatePicker VerticalContentAlignment="Center" Name="datepicker" /> </StackPanel> The content it's really just for demonstrating. You should get something like this: However If you are just showing the date why don't you use the datepicker with the default settings? It shows the selected date by default. Another way to do it, you could use textbox instead of textblocks and s

Categories : Wpf

Implementation of active appearance models
I suppose that is not used in code function, so it is not important what it return. Some C++ compilers allow to write such code and give only warning, another treat as errors: ReturnType f() { } looks like you use not the same compiler as author of source code. So just add something like: aamImage* delaunay:: warpImageToMeanShape(aamImage*input) { return NULL; }

Categories : C++

Right-To-Left appearance of SWT Text fields
Try text.setOrientation(SWT.LEFT_TO_RIGHT) Here is the Eclipse Documentation of Text. If this doesn't help, you might try reworking whatever layout you're using; I can't be more specific without an example.

Categories : Java

Changing Libgdx Button appearance
I think the problem is that you're changing the contents of the skin/style after initializing the Button, but the button object does not reference the style after it has been initialized. I'm also not entirely clear on what you're going for. I assume you want to show a "sign in" button, until the user is signed in, and then you want that button to be a "sign out" button. The invalidate method just triggers a re-layout (to re-compute the size/location of the Actor). Maybe try forcing the style with setStyle, like this: googleButton.getStyle().up = ... whatever; googleButton.setStyle(googleButton.getStyle()); That said, I think you would be better off having two (?) different Button objects (one for logging in, and one for logging out). Pack them in a Stack, and just make one o

Categories : Java

website design appearance on tablet
Hard to give more precise advise without knowing more about the site or which parts are not appearing, but this may also be caused by a difference in web browser engines offering different support for markup, CSS, javascript etc. A separate mobile version is normally only required if the design is significantly different from the desktop version or needs to integrate with certain IOS/Android features such as location. A responsive design is the way to go if the layout is similar but will resize and reformat to suit the dimensions of the device (e.g. horizontal nag bar changes to a menu drop own on a smartphone). Both 'Twitter Bootstrap' and 'Zurb Foundation' offer responsive frameworks - these may give you a taste of what's possible.

Categories : Android

Building an Active Appearance Model
When you download the aam project from Tim Cootes website it should have everything you need to get started. http://www.isbe.man.ac.uk/~bim/software/am_tools_doc/ I recommend to run windows binary files with "wine" on linux. The linux binary files depend on some outdated libraries that require some effort to install properly. The project has a few key folders: images, points, models, win_bin. "images" is the folder with image files and their corresponding .pts files go to "points" folder. "models" folder contains configuration .smd files that you will use to build your model. The example of the accompanying smd file looks as follows: ~/Documents/am_tools/models$ cat tim_face.smd // List of images + parameters required to define type of model // Note: List excludes images in the separ

Categories : Opencv

Gridview size (appearance) changes at different searches?
Set width and height for each item, either like this: <asp:BoundField DataField="Credit" HeaderText="Credit" HeaderStyle-Width="100" HeaderStyle-Height="20" ItemStyle-Height="20" ItemStyle-Width="100" /> Or add 1(or 2) css styles and add them for each item: <asp:BoundField DataField="CourseName" HeaderText="Course Name" ItemStyle-CssClass="style1" HeaderStyle-CssClass="style" /> You can set only height if you need only height to be specified (obviously).

Categories : Asp Net

ReportViewer (SSRS) with VB.NET Appearance error
Finally fixed it. It was a CSS format issue: input, textarea { border: 1px solid #e2e2e2; background: #fff; color: #333; font-size: 1.2em; margin: 5px 0 6px 0; padding: 5px; width: 300px; } Removed it and everything is fine now. Thanks everyone.

Categories : Vb.Net

intelliJ speed up tool tip appearance
There is a setting in the Settings window. Edit This seems to be available from version 12.1.3 only. You can although edit the idea.vmoptions file and add a line like this at the end: -Dide.tooltip.initialDelay=200 This makes the tooltip appear much faster (at least in some areas). Try by hovering on a tab in the editor pane. It will pop up very fast. Then close IntelliJ and change the value to 20000 and try again. As you will notice it will take 20 seconds (as expected). For example try hovering over buttons as you describe in your question. By setting the delay to a very low value the tooltip appears immediately.

Categories : Intellij Idea

Resetting the appearance of UIBarButtonItems and UINavigationBar
A couple of options I can think of. Save the initial state in variables (background, font etc) to use later during the reset. Destroy and recreate the view. If this is done during a transition (page switch etc) it may not be noticeable to the user. Keep the original view hidden behind the new view and destroy the new view when you want to reset it. (This may be memory expensive.) I think your best bet may be to create a custom object (extend the original NavBar etc), save its original appearance variables (color, font etc) and add a reset option to be called by the controller.

Categories : IOS

Rails PDFKit Appearance Bug with Bootstrap
In desperation I went to the Bootstrap Customise page (http://getbootstrap.com/customize/?id=6470483) and re-downloaded the files and used the non-minified version in my pdf.css and it seems to work fine. I only ticked the top five check boxes in the first column: Print media styles Typography Code Grid system Tables

Categories : Ruby On Rails

Wierd font appearance in any browser
What size is the font when you check it in the PSD and what size are you using for the font when you style in for the browser. The font in Photoshop will probably have been drawn with Anti-aliasing and other smoothing effects. There's not really any way to control this as a web developer across all browsers. Chrome has a CS3 tag that you can try -webkit-font-smoothing: antialiased;

Categories : CSS

Changing bar button appearance causes crash
UIBarButtonItem appearance proxy does not have a method for setTitle. In the documentation you will find wich method are available for Customizing Appearance

Categories : Iphone

"Unbalanced calls to begin/end appearance transitions"?
If I understand your app structure, and what you're trying to do, I think you need to change the arrangement of controllers to this: HomeViewController (the window's root view controller) | | modal segue to: | NavigationController whose root view controller is ViewController | | push to : | TableViewController | | push to: | DetailViewController Another way to do this, and the way I prefer if the HomeViewController is like a startup screen or welcome screen -- something that you don't need to come back to after first seeing it, is to make the navigation controller the window's root view controller. In the navigation controller's root view controller (ViewController in your case), present the HomeViewController modally from the viewDidAppear

Categories : Objective C

Adjusting the appearance of a javascript- Shield UI Chart
You have forgotton to put a comma between the different properties. You have axisTickText:{} and there must be a comma, because there is one more property following- axisType. axisX: { axisTickText: { enabled: false }, axisType: 'datetime' },

Categories : Javascript

Updating a cell in an NSOutlineView after its initial appearance
Rather than returning the checkmark image for the "done" column and the download source for the other columns, return the download source for all columns. Then bind the image view's "hidden" binding to the download source's "complete" property with an NSNegateBoolean value transformer. This will allow the image to show or hide itself when your model fires KVO notifications, so you don't have to refresh the item and hope that will update things the way you want.

Categories : Osx

How to update default badge UI appearance in UITabbarController?
You could just create view(UIButton for example.) with the color (or background image) and text you want and add that to the tabbar on the place you want. But I think that would be some kind dirty implementation... Coz, you need to calculate the frame according to how many UITabbarItems you have. Otherwise, custom tabbar controller is the way to go :) I don't think customization of the default badge is possible. Good Luck!

Categories : IOS

javascript default appearance of delete button in a row
cell1.innerHTML=demo; cell2.innerHTML=(Here I want the delete button to appear); } Could be changed to: cell1.innerHTML=demo; var delBtn = document.createElement('input'); delBtn.setAttribute('type', 'button'); delBtn.setAttribute('value', 'Delete'); delBtn.addEventListener('click', nameOfYourDelBtnHandlerFunction, false); cell2.appendChild(delBtn); } EDIT: sample button-press handler function function onRowDeleteBtn() { var pressedButton = this; // must attach the handler with addEventListener, otherwise 'this' will not hold the required value var parentCell = pressedButton.parentNode; // get reference to the cell that contains the button var parentRow = parentCell.parentNode; // get ref to the row that hold

Categories : Javascript

setBackgroundView appearance for UITableView causes endless loop
According to this answer UITableView doesn't support appearance customization using setBackgroundView. So this isn't a bug - it simply unsupported yet.

Categories : IOS

How to user custom Drag Appearance in smart gwt
I hope, the following links will help you https://github.com/moravianlibrary/MEditor/blob/master/editor-editation/src/main/java/cz/mzk/editor/client/view/ModifyView.java#L1100:L1104 https://github.com/moravianlibrary/MEditor/blob/master/editor-common/editor-common-client/src/main/java/cz/mzk/editor/client/view/other/EditorDragMoveHandler.java

Categories : Gwt

How can add fade In() effect to each appearance of a div when the mouse click?
Add a parameter to .show() method and hide the div before showing it again: if (!event.point.selected) { $('#testDiv').hide(); $('#testDiv').show("300"); //or just $('#testDiv').fadeIn(); var chart_data = 'Name: ' + event.point.name + ' Share: ' + event.point.y; $('#testDiv').html(chart_data); } else { $('#testDiv').hide(); } FIDDLE

Categories : Javascript



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.