w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Change tab bar tint color on iOS 7
Try the below: [[UITabBar appearance] setTintColor:[UIColor redColor]]; [[UITabBar appearance] setBarTintColor:[UIColor yellowColor]]; To tint the non active buttons, put the below code in your VC's viewDidLoad: UITabBarItem *tabBarItem = [yourTabBarController.tabBar.items objectAtIndex:0]; UIImage *unselectedImage = [UIImage imageNamed:@"icon-unselected"]; UIImage *selectedImage = [UIImage imageNamed:@"icon-selected"]; [tabBarItem setImage: [unselectedImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]]; [tabBarItem setSelectedImage: selectedImage]; You need to do this for all the tabBarItems, and yes I know it is ugly and hope there will be cleaner way to do this.

Categories : IOS

What is the color or tint of the bar style UISegmentedControl
All you want is here link and for segments appearance you can set [UISegmentedControl appearance] property.

Categories : Iphone

Set UIToolbar tint color captured from an image
Use setTintcolor: to set the color To get pattern color from image use colorWithPatternImage: [toolbar setTintColor: [UIColor colorWithPatternImage:[UIImage imageNamed:@"Myimagename"]];

Categories : Iphone

Presented UINavigationController tint color not changing
[[UINavigationBar appearance] setTintColor:[UIColor redColor]]; I would suggest you to use this if all of your NavigationBars are the same color. Appearance property of an object sets uniformity on the function you apply on it.

Categories : IOS

Is it possible to set the Status Bar tint color, even though the navigationBar is hidden?
Instead of making your navigation bar hidden, you can change its alpha to 0 as suggested here: How to set status bar tint color on iOS 6?

Categories : Iphone

Changing Color array to produce Red Tint in OpenGL
From the code it seems that: colorArray[... + 1] = green colorArray[... + 0] = red colorArray[... + 2] = blue colorArray[... + 3] = alpha (since the ... part is always a multiple of 4) So you should be able to change it to red by simply swapping colorArray[... + 1] and colorArray[... + 0] everywhere. Changing the variable name g to r would be helpful for future sanity.

Categories : Objective C

In UIActionSheet the cancel button not showing for iphone?
try this one... UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"Select Image from..." delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"Cancel" otherButtonTitles:@"Take Photo", @"Choose from library", nil]; actionSheet.actionSheetStyle = UIActionSheetStyleBlackTranslucent; actionSheet.actionSheetStyle = UIActionSheetStyleDefault; [actionSheet showInView:self.view];

Categories : Iphone

QDialog with ok and cancel buttons
Subclass QDialog and use a QDialogButtonBox for the standard buttons (docs).

Categories : C++

JFileChooser - regarding the "open" and "cancel" buttons. Java
Use the result of the appropriate showDialog method to determine which button was clicked JFileChooser input = new JFileChooser(); int result = input.showSaveDialog(this); if (result == JFileChooser.APPROVE_OPTION) { createFile(); } else if (result == JFileChooser.CANCEL_OPTION) { System.out.println("Cancel was selected"); } Note: Clicking the X button on the JFileChooser dialog also triggers the CANCEL_OPTION. Read How to Use File Choosers

Categories : Java

Switch color of button on click (and revert color of other buttons)
You could remove the btn-success class on all buttons in the onclick function, then add the class only to the newly selected jQuery(document).ready(function(){ jQuery('button.account').click(function() { jQuery('button.btn-success').removeClass('btn-success'); jQuery(this).removeClass("account"); jQuery(this).addClass("btn-success"); }); }); Or you could have an array with the currently selected buttons, and removing the btn-success class on a newly clicked button http://jsfiddle.net/Fwqv8/3/

Categories : Javascript

How to add a CSS class to SAVE and CANCEL (editview) buttons SugarCRM
in editviews.php from your module I add a div for the CANCEL button for example. So no need to change the header.tpl [..] 'form' => array ( 'buttons' => array ( 0 => 'SAVE', 1 => 'CANCEL', //THIS LINE IS THE CUSTOMIZATION: 2 => array ( 'customCode' => '<div class="icon-accept"></div>'', ), [....]

Categories : CSS

"Update/Cancel" buttons don't appear in TemplateField Edit button
I think since you've converted it to a TemplateField, all of the automatically-functioning stuff (like Update/Cancel buttons) has been disabled. I'm betting you'll need to add an <EditItemTemplate> with the Update and Cancel buttons, and hook them to the relevant commands using CommandName.

Categories : Asp Net

Adding events not saving into my iphone Calendar
First i have added eventkit framework, then #import EventKit/EventKit.h into <> added to my view controller, and then implemented a code as below, and it worked fine for me hope you can also find solution by referring this :) -(IBAction)AddEvent:(id)sender { EKEventStore *eventStore = [[EKEventStore alloc] init]; if([eventStore respondsToSelector:@selector(requestAccessToEntityType:completion:)]) { // iOS 6 and later [eventStore requestAccessToEntityType:EKEntityTypeEvent completion:^(BOOL granted, NSError *error) { if (granted){ //---- codes here when user allow your app to access theirs' calendar. [self performCalendarActivity:eventStore]; }else { //----- codes here when user NOT allow your app to

Categories : Iphone

Is there any way to edit iCal event to the iPhone Calendar from the custom App?
For this you can use - (EKEvent *)eventWithIdentifier:(NSString *)identifier; --> you will get the EKEvent with the particular identifier you send... --> then do the changing in its details like "description", "Date" etc --> add this event to the EKEventStore and add it to iCal using [eventStore saveEvent:event span:EKSpanThisEvent error:&err]; i guess it should work this is totally based on my memory.

Categories : IOS

How can we know that the user clicked the save button in calendar to create an event or the cancel button?
Something like this: protected void onActivityResult(int requestCode, int resultCode, Intent data) { if(RESULT_OK == resultCode){ //XXXXXXXX } else if (RESULT_CANCELED == resultCode){ //XXXXXXXX } }

Categories : Android

how to create function for cancel button on kendo color picker
By default, the cancel button will revert the color to the previous value so I am not sure that it is necessary for you to control cancel button clicks. You could just set the initial value of the picker to your desired default value. However, you'll want to use the close event. Here is an example. $('#hsv-picker').kendoColorPicker({ select: function (e) { log("Select in picker #" + this.element.attr("id") + " :: " + e.value); }, change: function (e) { log("Change in picker #" + this.element.attr("id") + " :: " + e.value); }, open: function () { log("Open in picker #" + this.element.attr("id")); }, close: function (e) { log("Close in picker #" + this.element.attr("id")); } }); Close fires any time the control was closed, r

Categories : Kendo Ui

Change the text color on WPF Calendar?
Changing your DataTrigger's target to the TextElement in CalendarDayButton instead of RedLetterDayBackground, will achieve the change you want. <DataTrigger Binding="{Binding Converter={StaticResource conv}}" Value="{x:Null}"> <Setter TargetName="CalendarDayButton" Property="TextElement.Foreground" Value="Red" /> </DataTrigger>

Categories : C#

Get EkEvent's Calendar Color Reference
According to the doc of EKCalendar there is no color property that you can access but there is a CGColor property you can access. @property(nonatomic) CGColorRef CGColor

Categories : Iphone

wpf change calendar day title foreground color
Unfortunately the foreground property is hard-coded in the default control template. The way to change it is to copy-and-modify the template. <Style x:Key="CalendarItemStyle" TargetType="{x:Type CalendarItem}">     <Setter Property="Margin" Value="0,3,0,3" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type CalendarItem}"> <ControlTemplate.Resources> <DataTemplate x:Key="{x:Static CalendarItem.DayTitleTemplateResourceKey}"> <TextBlock <!-- Day header color here --> Foreground="Red"                      FontWeight

Categories : Wpf

I want to change font color of events on calendar
add DayRender event and you can change font color of holidays as below protected void calendar_DayRender(object sender, DayRenderEventArgs e) { var day = e.Day.Date.ToString("M/d/yyyy"); HolidayList = Getholiday(); if (HolidayList[day] != null) e.Cell.ForeColor = System.Drawing.Color.Red; }

Categories : C#

full calendar change event color
Try assigning a classname to it and define that class inside a CSS block of code, just like this one: <style> .myCalendarEvent{ color:#000; background-color:#FFF; border-color:#669999; width: 100%; } </style>

Categories : Ruby On Rails

Image view Clickable in iPhone like Buttons
You could create it the other way around. Create a UIButton and define the ImageView as background image of the UIButton. Then the connection between the IBAction and the UIButton will work.. [button setBackgroundImage:buttonImage forState:UIControlStateNormal]; Or why do you wanna use it the other way around?

Categories : Iphone

HTML radio buttons looks square in iphone
You must have CSS styles that are being applied to your radio button that are: setting a border radius (to a low radius value eg. 2px) - this causes the square effect setting a background colour - to give the gradient colour. For example, you may have something like this in your CSS: input { border-radius:2px; background-image: -webkit-linear-gradient(top, rgb(186,0,0) 0%, rgb(255,59,59) 49%); } You will need to either override it with CSS styles as you have tried to do, or else make your CSS style affecting the radio button not affect it. For example, by changing your CSS class to the following, it won't apply the class to radio buttons: input:not([type='radio']) border-radius:2px; background-image: -webkit-linear-gradient(top, rgb(186,0,0) 0%, rgb(255,59,59) 49%

Categories : HTML

jquery full calendar: set a different color to each event from front-end
To colorize each event differently there are a couple approaches you can take to tackle your problem. Update the event feed '/bookings-feed.php' and add color(background and border), backgroundColor, textColor, or borderColor to the event object http://arshaw.com/fullcalendar/docs/event_data/Event_Object/. events: [{ title : 'event1', start : '2010-01-01', color : '#000' }] Separate and update the event feeds to use eventSources. Which allows you to group events by color and text color. http://arshaw.com/fullcalendar/docs/event_data/events_array/. $('#calendar').fullCalendar({ eventSources: [ // your event source { events: [ // put the array in the `events` property { title : 'event1', start : '2010-01-01'

Categories : Javascript

Different events display different color(jQuery Full Calendar)
You can use the backgroundColor property FIDDLE events: [ { title: 'All Day Event', start: new Date(y, m, 1), backgroundColor: '#000' }, { title: 'Long Event', start: new Date(y, m, d-5), end: new Date(y, m, d-2), backgroundColor: '#000' }, { id: 999, title: 'Repeating Event', start: new Date(y, m, d-3, 16, 0), allDay: false } ] Similarly: If you want to change the color of text of event you can use textColor If you want to change the color of border of even you can use borderColor

Categories : PHP

EXT JS: For a datefield how to change the background color for the calendar that pops up
You can use CSS : .x-datepicker-inner { background-color: #bada55 !important; } .x-datepicker-date { color: red !important; } http://jsfiddle.net/W4aDB/1/

Categories : Extjs

Changing background-color of event in jquery full calendar
Hi Lamloumi has you can see in event object properties there is a className you can set in every event wich allows you define for each event a CSS class, and then define each color for each type of event background color in CSS. If the colors are dynamic i mean if they are not all the same you can use Jquery or javascript to change "on the fly" the css class. If you need further explanation please let me know. Live long and prosper.

Categories : C#

How can I remove the 'Next' and 'Previous' buttons from multiple forms for iPhone users?
You can accomplish this with negative tab indexes on each input. <form id="one"> <input type="text" tabindex="-1"> </form> <form id="two"> <input type="text" tabindex="-2"> </form> The above example will prevent tabbing from the form with an ID of "one" to the form with an ID of "two." That said, it doesn't addresses the question of being able to tab inside the active form. For that you could start with positive tab indexes for the inputs in the first form and negative tab indexes on the inputs in the second form. When an input in the second form is focused, you would update the tab indexes for the first form to be negative. It's a convoluted approach, but it will work. Update Here is a Fiddle of how the above solution might work. The Java

Categories : HTML

How do you use modify the color definitions for a Google Calendar to allow custom colors for events?
Added detail from bounty: I have the same question. I would like to be able to set a custom color for events that I post to the calendar, but don't want to be limited by the 11 choices. I see in the docs they have added an additional color setting method (https://developers.google.com/google-apps/calendar/v3/whats-new#custom_colors_f‌​or_calendars). But I'm unclear on the concept of how to go about it. This part of the documentation demonstrates these properties directly: https://developers.google.com/google-apps/calendar/v3/reference/calendarList/insert Which will let you add and modify your personal calendar as a demo (scroll to the bottom and try out the API Explorer). To do what you are asking on here, set colorRgbFormat=true then add the backgroundColor or foregroun

Categories : Api

iPhone background color not 100% on change
It looks like this is caused by the height:100% that you have on the html and body elements which are then absolutely positioned with bottom:0. That forces the body element to be the height of the screen, rather than the height of the page, and when you scroll down you're actually scrolling past the end of those elements. Thus when you change the color on the body it seems only to apply to the top part of the screen. This doesn't seem to be a problem on Firefox, but I'm not really sure whether it's a webkit bug or not - it might just be undefined behaviour. You can fix it by getting rid of the height:100% and position:absolute on the html and body elements, but then you'll also probably want to remove the top:50% and margin-top:-250px on the container since that will no longer work. Also

Categories : Jquery

iPhone->iPad Porting. How to reposition programmable elements like buttons and labels (NOT XIBs)
it seemed to be difficult task, however, I had some success with xibs (they look OK on iPad simulator) xib are the first steps, than the .m files. Sad to say, all the programmable elements like buttons, labels and custom images are placed at the iPhone-coded positions They are hardcoded into source like : [button setFrame:CGRectMake(320, 0, 100,100 )]; How can I convert the positions of these elements to iPad-compatible ones? You have to check which is running now: iPhone or iPad. Here is how. If iphone let be the old code, if iPad close yur eyes and do math in order to get the new coordinates. I hope it helps somebody!

Categories : Iphone

How can I change the color of buttons?
As far as I can see Reindeer.LAYOUT_BLACK should be the style name of a component containing the Button. public class AdminBar extends CustomComponent { private final HorizontalLayout layout = new HorizontalLayout(); public AdminBar(Lang lang) { setCompositionRoot(layout); setWidth(100, Unit.PERCENTAGE); layout.setWidth(100, Unit.PERCENTAGE); setStyleName(Reindeer.LAYOUT_BLACK); Button button = new Button("I'm a Button"); button.setStyleName(Reindeer.BUTTON_SMALL); layout.addComponent(button); } } If you set the style name of the HorizontalLayout instead of the AdminBar, the whole layout will be black.

Categories : Java

Background-color doesn't stretch to fit the div using bootstrap on iPhone
I have entered your site. At first glance, the site has 46 warnings and 3 errors. Look at errors at css (open this on chrome, i.e - Tools for developers). Most of the warnings related to css, and I think you forgot "{" or something. Check that out. You should have (also for best practice) zero warnings & zero errors. Good luck!

Categories : Iphone

change the color of the two buttons in Android
You can change the color of the Button with this method: btn2.setBackgroundColor(Color.RED); ... where btn2 is the instance of Button.

Categories : Android

Cocos2d-iphone: Change the color of the overlaping part of two sprites
Simple way is you can check colliding of two sprite if( CGRectIntersectsRect( [sprite1 boundingBox], [sprite2 boundingBox] ) ) { // Handle overlap } You This logic in your case : Also i got it from This Link. Yes, it should… though it might look a little weird, depending on how exactly your sprites are shaped. You can also try testing for distance, which works better if your sprites are more circular: // This is how close the sprites have to be for the game to think that they're colliding // (or overlapping). Use a smaller value than 0.5 if you want them to be closer together // in order for there to be a collision. float distanceForCollision = (sprite1.contentSize.width * 0.5) + (sprite2.contentSize.width * 0.5); // This is how close the sprites actually are float actual

Categories : IOS

How to Change the Color of Application Bar Buttons when Pressed
If you set the ApplicationBar's Foreground to something like #FFFEFEFE for white and #FF010101 for black the ApplicationBarIconButtons will not use the AccentBrush when they are pressed, they will use the defined Foreground Color of the ApplicationBar! It took me hours to find the solution to that problem but it makes some sense: Microsoft uses White(#FFFFFFFF) and Black (#00000000) for their dark and light theme. In this case the ApplicationBar uses the AccentBrush and if the Foreground is set to a different color it uses the defined one. So you just need to add the following line (white): ApplicationBar.Foreground = new SolidColorBrush(Color.FromArgb(255, 254, 254, 254));

Categories : C#

How to change the title color of UIToolbar buttons?
here the sample code: [UIToolbar appearance] Adding after your text attribute: Here a UIToolBar class reference: UIToolBar class

Categories : IOS

Jquery dialog - How apply buttons color?
something like this: .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { background:red;} FIDDLE you just have to be more specific with your selectors than the UI stylesheet to overwrite the styles.

Categories : Jquery

Iphone: OpenGL ES 2.0 - Color picking method reacts slow the 1st time
the issue wasn't coming from the color picking algorithm even though the timer function indicated so. While implementing a fade-out / fade-in screen feature, i have realized the color picking method was fast as the screen was fading out fast; however the fade-in of the next screen was slow. It comes from the fact that textures , even though loaded (here with Glktextureloader), will actually take some time at the first render. A workaround is to display these textured objects off-screen at the initialization phase of the app.

Categories : IOS

How to change button background color as there are lots of buttons
this inside the event handler methods will refer to the clicked button, so you can get the id using this.id. var buttons = $(":button").bind("click", function(){ buttons.not(this).css('background-color', '') $(this).css('background-color', 'blue') }) This will change the background of the clicked button to blue Demo: Fiddle But I may prefer to use a css class to do this button { background-color: lightgrey; } button.active { background-color: blue; } var buttons = $(":button").bind("click", function(){ buttons.filter('.active').removeClass('active') $(this).addClass('active') }) Demo: Fiddle

Categories : Javascript



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