w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Segmented Control title shows on simulator but not device
Try this: NSArray *itemArray = [NSArray arrayWithObjects: @"New", @"Today", nil]; UISegmentedControl *segmentedControl = [[UISegmentedControl alloc] initWithItems:itemArray] segmentedControl.frame = CGRectMake(35, 200, 250, 50); segmentedControl.segmentedControlStyle = UISegmentedControlStylePlain; segmentedControl.selectedSegmentIndex = 0; [view addSubview:segmentedControl];

Categories : IOS

ms-access 2007 form datetime control : if control length smaller than the size of the value it shows ###
Access doesn't behave like this. You can either increase the width of the control (the best solution) specify a shorter Format for the date reduce the font size An odd approach would be to add a label which obscures some of the date-control, but such that you can still see part of the date in the background. You might consider using an event such as Focus to change the Format of the control, but this won't work as the Format only applies when you move away from the control. You could, I suppose, use two controls; one for display and one for editing.

Categories : Forms

how to control tabs and whitespace with emacs version 24.3?
Actually, your "I'm now trying all this" config works just fine: (setq-default tab-width 2) (setq-default indent-tabs-mode nil) (setq indent-line-function 'insert-tab) (setq tab-stop-list (number-sequence 2 400 2)) If you reduce your init file to this, it should work as desired. You may be clobbering the settings elsewhere in your config?

Categories : Emacs

Actionbar Sherlock title shows for a sec at first run
Set your theme to 'no action bar' in your manifest, then apply your normal theme in code after set contentview! android:theme="@style/Theme.Sherlock.Light.NoActionBar" and then. this.setTheme(R.style.myTheme); super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);

Categories : Android

UIBarButton Title Only Shows Periodically
Ok, if this is your viewController, you don't want to create all the view hierarchy in the init method, instead, use the viewDidLoad method. (and you don't have to set self.view yourself, default implementation in UIViewController does that for you) Also, you're creating a UINavigationBar AND a UIToolBar, setting same frames for both when you just add the toolbar as subview... (I'll consider this UINavigationBar junk code too) - (void)viewDidLoad { cellLoader = [UINib nibWithNibName:CellClassName bundle:[NSBundle mainBundle]] ; self.tableView=[[UITableView alloc]initWithFrame:CGRectMake(self.view.frame.origin.x, self.view.frame.origin.y+44, s

Categories : IOS

DotNetNuke User control not working .it shows data from .resource file in Portal>0>cache>pages.Not able to debug User control
I have a series of DNN tutorials that I started on recently (I wrote a majority of the old ones on dotnetnuke.com) that talk through the process of setting up your development environment, and then using the Visual Studio Templates that I have created/released (open source). I would encourage anyone trying to really do any development with DotNetNuke to check those out. http://www.christoc.com/tutorials

Categories : C#

Jquery UI Dialog Title shows up as uppercase
The following fiddle displays the dialog with a lowercase title: http://jsfiddle.net/3yp8N/ I used your code without modifications. It's a shot in the dark, but maybe you should check one of your css for the property text-transform For example: p: {text-transform:uppercase;} Will turn the all the content in all p elements to uppercase.. More info: http://www.w3schools.com/cssref/pr_text_text-transform.asp Hope this helps..

Categories : Jquery

Clear title property while JQuery tooltip shows
Try making these lines: temptt = $(this).attr("title"); // temp storage $(this).data('title', temptt); //$(this).attr('title', ''); var tooltip = temptt; do this instead: var $this = $(this), tooltip = $this.attr('title') || $this.data('title'); $this .attr('title', '') .data('title', tooltip); What the code above does is that if the title attribute is empty, the or (||) operator will then look for the title within the data.

Categories : Javascript

Is it possible to change the frames of the title lables of a UITableViewCell before it shows?
If you're just interested in moving the x origin of the label, you can use the indentation property of the cells to move the label. This can be done in IB, or in code with the indentationLevel and indentationWidth properties.

Categories : IOS

BackBarButtonItem shows navbar title on it and updates each time when page is turned over
Instantiate a UIBarButtonItem with the title and action you want and assign it to the backBarButtonItem property @implementation PageViewController - (void)viewDidLoad { [super viewDidLoad]; self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Back" style:UIBarButtonItemStyleBordered target:self action:@selector(goBack:)]; } - (void)goBack:(id)sender; { //logic to go back }

Categories : Iphone

slidify layouts: title-only, title-and-body, title-and-two-cols, title caption, and blank
Slide layouts are mustache templates that can make use of objects returned by the parser. You can find a list of objects returned by the parser here. Coming to the question raised, here is how one would go about building the layouts for the slides. Title Only <slide class="segue nobackground {{ slide.class }}" id="{{ slide.id }}"> <hgroup> {{{ slide.header }}} </hgroup> </slide> The two column layout inherits from the parent layout, and the column widths are configurable. Two Columns --- layout: slide replace: slide.content --- {{{ slide.content }}} <div class='left' style='float:left;width:{{{ slide.left.w }}}'> {{{ slide.left.html }}} </div> <div class='right' style='float:right;width:{{{ slide.right.w }}}'> {{{ slide.right

Categories : R

Is there a way to configure vimdiff to ignore whitespace on lines that have a non-whitespace diff?
diff operates on lines, not characters or words, so -b and -w determine which lines to ignore. If a line is not ignored, which is the case whenever non-whitespace changes are involved (unless you ignore case or explicitly ignore lines matching some regex), diff will always output something like this: 1c1 < a,b,c,d --- > a, b, c, e Altering diffopt or even diffexpr only affects how Vim invokes diff, not how it then processes the diff it receives. Since neither -b nor -w will change the above diff, Vim will consequently display the same result. Thus what you're looking for is a way to change how exactly Vim highlights the diff it receives, which I don't believe is possible.

Categories : Vim

Control the title of the tab that an image is in using content-disposition?
However when you view the image in a browser its title is shown as 1414. Is there a way that I can change this? Yes, by serving the image in an HTML document that has a proper <title /> element. If you don't, the title to display is up to the browser. You may help the browser by letting your URL end with the filename, say: http://www.example.com/assets/1414/4655e8cb-7cb7-421b-8b89-47c717d51697.gif

Categories : Http

JQuery date picker control always shows required though it is not
DateTime is value type, same as, for example, integer. So by default in validation model of MVC it will be marked as required. You have two options. First option: put this in your Application_Start() of Global.asax file: DataAnnotationsModelValidatorProvider.AddImplicitRequiredAttributeForValueTypes = false; Second option, you can declare it using nullable type: [Display(Name = "Date Of Birth")] public DateTime? DOB { get; set; } First option will deal with client-side validation, but for server side it will say, that model state has errors. Second option will work both for client and server.

Categories : Jquery

Mindboggling Regular Expression to convert Whitespace-Comma-Whitespace input string to an array. Quoting must be supported
I finally have developed a solution for this problem which involved a few PHP statements utilizing regular expressions. Below is the final function. This function is part of a class which is why it begins with "public". public function SearchString_ToArr($SearchString) { /* Purpose Used to parse the specified search string into an array of search terms. Search terms are delimited by <0 or more whitespace><optional comma><0 or more whitespace> Parameters SearchString (string) = The search string we're working with. Return (array) Returns an array using the following rules to parse the specified search string: - Each search term from the search string is converted to a single element in the returned array.

Categories : PHP

Regex: how to match any string until whitespace, or until punctuation followed by whitespace?
The problem may lie in the dot, which means "any character" in regex-speak. You'll probably have to escape it: (http|www).?[^s]+ Then, the question mark means 0 or 1 so you've said "an optional dot" which is not what you want (right?): (http|www).[^s]+ Now, it will only match http. and www. so you need to tell what other characters you'll let it accept: (http|www).[^sw]+ or (http|www).[^sa-zA-Z]+ So now you're saying, at the boundary of a word check for http or www put a dot allow any range a-z or A-Z, don't allow any whitespace character one or more of those Note - I haven't tested these but they are hopefully correct-ish. Aside (my take on it) - the s means 'whitespace'. The  means 'word boundary'. The [] means 'an allowed character range'. The ^ means 'not'.

Categories : PHP

WinAPI to configure control buttons on title (caption) bar
In WinAPI these are Windows style bits, changed using SetWindowLongPtr(hWnd, GWL_STYLE, ...) (doc). The style bits are documented here, you are probably interested in WS_MINIMIZEBOX, WS_MAXIMIZEBOX and WS_SYSMENU. There are no WS_CLOSE style, as long as there is anything at all there will be a "Close" button. You may need to call SetWindowPos(hWnd, ..., SWP_FRAMECHANGED) (doc) after that to make the style change effective.

Categories : Windows

Generic Way of Capturing Page Title, Control labels
Just an idea : you could listen all events (with jquery, for example), and then post an ajax request for each 'interesting' event (you have to filter...), store it in a database, and then add an 'export' function in csv or excel format. Maybe some performance issues, it depends on the amount of pages, events and users... The idea to use class name to filter is good, thanks to Hasan Iqbal Anik.

Categories : Java

ActionBarCompat with Theme.AppCompat.Light.DarkActionBar shows white title text but black spinner text
You need to set listadapter as R.layout.support_simple_spinner_dropdown_item Example: Context context = ab.getThemedContext(); ArrayAdapter<CharSequence> listAdapter = ArrayAdapter.createFromResource(context, R.array.locations, R.layout.support_simple_spinner_dropdown_item); listAdapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item); The support library has a layout for drop down spinner item. @Kuitsi comment is correct. Use the same layout for dropdown view and item.

Categories : Android

Remove leading whitespace from whitespace: pre element
Add the style to the <pre> tag, using a class. For example (trying to keep it simple here). <pre class="console"> // Some code here to be styled. </pre> <pre class="some-other-style"> // Some code here to be styled. </pre> Then your CSS looks like this: pre.console { color: #fff; background-color: #000; } pre.some-other-style { color: #f00; background-color: #fff; } If it doesn't do what you want then I'm confused by your question, just comment and I'll remove the answer.

Categories : HTML

Why does the x scrollbar get stuck on mschart?
chartArea.AxisX.ScaleView.SmallScrollMinSize = .01; chartArea.AxisX.ScaleView.SmallScrollMinSizeType = DateTimeIntervalType.Seconds; chartArea.AxisX.ScaleView.SmallScrollSizeType = DateTimeIntervalType.Seconds; You need to specify the minimum scroll size to get it to work.

Categories : C#

extract MSChart array from a session
I'm not sure why you are trying to store a web control in the session, but you can only store objects that are serializable in the session and System.Web.UI.DataVisualization.Charting.Chart is not serializable. Perhaps you should change your application logic to load the required elements from session instead of trying to store the control in the session.

Categories : Asp Net

MSChart showing axis in thousands
You could implement the customize event of mschart. private void chart1_Customize(object sender, EventArgs e) { foreach (var yAxisLabel in chart1.ChartAreas[0].AxisY.CustomLabels) { label.Text = double.Parse(label.Text)/1000 + "K"; } } This event is fired just before the chart image is drawn. This event should be used to customize the chart picture.

Categories : Misc

Improving The Performance Of MSChart Toolip?
You havent shown the code for the ToolTip. A ToolTip could also show a constant string as well. Do you mean to show the value of the DataPoint in the Tooltip? What is chart.Series["Series5"].XValueMember = "Time_Value"; this series for? Its YValueMember is not set. Besides the question is not clear, could you explain ?

Categories : C#

Highlight DataPoint in mschart on click
You have to subscribe to the mouseDown event and then call the HitTest method. Finally you can change the color of the DataPoint. private void chart1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) { // Call Hit Test Method HitTestResult result = Chart1.HitTest( e.X, e.Y ); if( result.ChartElementType == ChartElementType.DataPoint ) { Chart1.Series[0].Points[result.PointIndex].Color = Color.Green; // reset the previous point selected here } }

Categories : C#

winform mschart hittest not finding legend
Responding to King King -- The original legend is created in the same method as the chart thus: //Create the series legend chartSel.Series[ySeries.Name].ChartArea = "ChartArea1"; chartSel.Legends.Remove(chartSel.Legends.FindByName("Legend1")); chartSel.Legends.Add(ySeries.Name); chartSel.Legends[0].Name = ySeries.Name; //Format the series legend chartSel.Legends[ySeries.Name].Docking = Docking.Right; chartSel.Legends[ySeries.Name].DockedToChartArea = "ChartArea1"; chartSel.Legends[ySeries.Name].Alignment = StringAlignment.Near; chartSel.Legends[ySeries.Name].IsDockedInsideChartArea = false; chartSel.Legends[ySerie

Categories : C#

Databind ObjectDataSource with multiple Y-values to MSChart
These questions seem not to be so popular on SO. I was unable to achive any real databinding. In order to be able to keep using the designer I just used a hack. I added one series to the designer, so I could use the drag and drop editor, easing my life. The I copied the values from the 'template' series. //Treat the one designer series as a template var template = chartFares.Series.First(); //Just used for fancying up the designer and adding demo settings chartFares.Series.Clear(); foreach (var series in serieses) { var chartSeries = chartFares.Series.Add(series.Name); //Copy setting from template (better cloning mechanism would also be useful) chartSeries.ChartType = template.ChartType; chartSeries.ToolTip = template.ToolTip;

Categories : Database

Need to show min and max values in MSChart for line graph
What is the difficulty that you are facing ? Adding two lines or series to the same chart area is no problem. See the Databinding options (Points.DatabindXY) in the samples from Microsoft. If you want to show the min/max as well, then you should select the right chart type like Stock charts instead of a Line chart.

Categories : Asp Net

Tabhost with Google map android api v2 is not showing google map it shows only title issues in fragmentActivity in tabhost
I had the same problem (google maps v2 showed only a grey grid in a tab, but if I load it as a main activity without tabs than it works). Then I added mMapFragment.onResume() and now it works in a tab! Try this: mMapFragment = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)); mMapFragment.onResume(); // needed to get the map to display immediately I've found the solution here: http://stackoverflow.com/a/16960527/185493

Categories : Android

Google Maps V2 Android works as fragment, but shows white screen (with zoom control) as child fragment
I remember having the same issue when using transaction.add. From then on one of my base rules was to never user transaction.add again and use transaction.replace instead. Try it, it should work.

Categories : Android

list.getchildAt(i) return null pointer ,only shows visible views not shows more
I guess you should think fo a better approach than iterating over the EditTexts with getChildAt() to collect all the value. I take it that the user can change the values in the EditTexts, you can have an Array of size 30 of Values and everytime the user enters / changes a value you change the according value in the Array. Use a listener that changes the values in your Array like this.

Categories : Android

My horizontal navigation menu shows as 1 line in chrome, others shows 2 lines
you are aware that in: .mainnav ul li a:link,.mainnav ul li a:visited there are double padding decalarations? padding:4px; padding: 0 0.73em; You can combine those: padding: 4px 0.73em; Seems that the issue with the navigation list is that there is too much spacing in between them in combination with the amount of items. I there are too much items, the normal behavior is the wrapping, you could decrease spacing, font-size to fix this.

Categories : HTML

My hibernate application shows message in console and shows session closed error on browser
At first look it seems like a possibility of 2 issues ContactManager object which you are trying to save is null Your variable name 'Contact' is incorrect, it should be 'contact' (some hibernate thingy) Where is your hbm.xml file ? There may be a reference of 'Contact' the class in that file still around somewhere Edit Solutions Put a if (developer != null) before your 'save(developer)' Rename Contact to contact Put the hbm file contents on the question, without that cant review the mapping Hope it clear now. Edit 2 : Do a clean build. Its possible your build is not updated.

Categories : Hibernate

String variable shows as empty but length shows it to not be
.NET uses BStrings, which are length-prefixed and null-terminated. So if the first character in RecievedString is the null character (''), then it will not be printed, since strings end at their first null character.

Categories : Vb.Net

dynamically apply title of html document into the title fields of images
var title = document.title; $('.sth').attr('title',title); Edit, but I don't really see the point of doing this. The title of the site has little to do with the images, if it's added to all of them, what is the point anyways?

Categories : PHP

Javascript Slider title replace html for title just working on 1st item
I found a couple of issues with your script, but first you have invalid markup in your page since you have multiple <div> elements with the same ids of tbtit and tbdescp. Id attributes should be unique in a HTML page so should change those to classes instead. Now in your script you need to change the part where you retrieve the values of the title and the description of the image that is hovered to reference the sibling elements: //THIS var tbtit = $("#tbtit").html(); var tbdesc = $("#tbdescp").html(); //SHOULD NOW BE THIS var tbtit = $(this).siblings('.tbtit').text(); var tbdesc = $(this).siblings('.tbdescp').text(); Finally when you update the text for your main image you want to set the content for your <h4> and <p> tags and not replace them completely, so use .t

Categories : Javascript

(javascript / google scripts) How to get the title of a page encoded with iso-8859-1 so that the title will display correctly in my utf-8 website?
Where are you displaying the content is more important. If you are writing it to a spreadsheet, then you have to change the settings of the spreadsheet to the correct language (French). In addition, you can use the advanced parameters to specify what charset the original content is in. For example, var result = UrlFetchApp.fetch( url , {contentType : 'text/html; charset=utf-8'}); var wholePage = result.getContentText(); var scrap = wholePage.match( /<title>(.*?)</title>/ ); var title = scrap[1];

Categories : Javascript

Responsive menu with title: have a resizing title that takes up all available space
Unfortunately, this is not possible with CSS only — not if you want to work with IE8. You have to calculate the available space to fill the divs within, and the calc()'s function just work on modern browsers. I created two topics to search a responsive solution to percentage containers, and the results are here and here. The JavaScript's final solution is this: /** Centralize the main container **/ function calculateMainContainerWidth() { $realWidth = $(".main-container").width() - $(".right").outerWidth(), $containerContent = $(".left"); $containerContent.css("width", $realWidth); }; $(window).on("resize", function() { calculateMainContainerWidth(); }); calculateMainContainerWidth(); Also available in FiddleJS. I hope it helps.

Categories : Jquery

View Pager Title Strip to show one title Only
get pagerTitleStripe (pagerTitleStripe=(PagerTitleStrip) findViewById(R.id.pager_title_strip);) set alpha to 0 in secondary views (pagerTitleStripe.setNonPrimaryAlpha(0);) y listo!

Categories : Android

Page Title and Site Title Configuration DNN 7
The default behavior is automatic if you leave the "Page Title" setting blank within the settings for the individual page. To accomplish what you desire you will need to customize the settings on a page-by-page basis.

Categories : Asp Net



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