w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Change title font for QT Main window
You can't. It's enforced by the system and is only changeable by the user through the desktop preferences. And it's a good thing too, otherwise applications like that would get on people's nerves by not obeying the desktop settings.

Categories : Qt

How do I change the Window Title after starting something with Process.Start?
You'll need to use Win32API call SetWindowText() The VB.Net import: <DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _ Private Shared Function SetWindowText(ByVal hwnd As IntPtr, ByVal lpString As String) As Boolean End Function Usage example: myProc.Start("notepad.exe") 'Note #1 SetWindowText(myProc.MainWindowHandle, "h4x3d title") #1: you'll need to allow time for the process to start before trying to set the window text. If you set the text before the window is created, it will appear to do nothing. The easiest way is to thread sleep an arbitrary amount of time (eg 1 second). A better way would be to actively detect when the window has been created, but that's outside the scope of this question.

Categories : Vb.Net

How to change guide created GUI figure window title name?
You can change the title of a figure window in MATLAB by setting its Name property. There should be no need for you to use Java. To set this within a GUIDE-created GUI, open the GUI in GUIDE, right-click the background, select Property Inspector, scroll down to Name, and set the name. By the way, although it's fine for you to set the text on the figure title, what you're doing when you change the icon on the window is explicitly prohibited by the MATLAB license: [You may not...] 4.6. alter, remove, or obscure any copyright, trade secret, patent, trademark, logo, proprietary and/or other legal notices on or in copies of the Programs;

Categories : Matlab

Difference between window.title and document.title
The window object doesn't have a title property. http://www.w3schools.com/jsref/obj_window.asp Hope this helps! Cheers, LC

Categories : Javascript

How to close window programmatically after calling window.showdialog?
When you launch the dialog using ShowDialog, the control goes to the newly opened dialog. So you need to do the close operation in the launched dialog. Alternatively, you can try window.Show(); Thread.Sleep(10000); window.Close(); DoEvents();

Categories : C#

How to set image in jasper title programmatically
I something like this with a List Component and a dataset <title> <band height="70" splitType="Stretch"> <staticText> <reportElement uuid="30b7421d-058a-478d-9179-901273499bc4" x="74" y="0" width="420" height="55"/> <textElement textAlignment="Center" markup="html"> <font size="18"/> </textElement> <text><![CDATA[Report Header ]]></text> </staticText> <componentElement> <reportElement uuid="f1f3b8ab-5dbf-4139-8033-d048a7e9896d" x="0" y="0" width="74" height="70"/> <jr:list xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourcefor

Categories : Java

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

How to hide title bar in android 2.2 programmatically after calling setContentView()?
You can define Theme in menifest.xml for full screen. <activity android:name=".MainActivity" android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>

Categories : Android

How to add a button to a window title?
Probably these links will help you: Remove close button: How to hide close button in wpf window? Remove min/max buttons How do I remove minimize and maximize from a resizable window in WPF? To add a button to the window title you can use WPF customizable window control: http://wpfwindow.codeplex.com/ Hope it will help you!

Categories : Wpf

Getting the window title from a process name
It seems that (WPARAM)sizeof(CHAR)/sizeof(MAX_PATH) would return you zero, because sizeof(char) will be defenetly smaller then the max path, so you say to WinAPI that your variable has zero length, that's why it returns empty string to you. Specify there MAX_PATH value instead.

Categories : C++

Menu on WPF Window title bar
<Window x:Class="WpfApplication11.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:dxc="http://schemas.devexpress.com/winfx/2008/xaml/core" xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars" WindowStyle="None" Title="MainWindow" Height="350" Width="525"> <Grid> <dxb:BarManager CreateStandardLayout="True"> <dxb:BarManager.Items> <dxb:BarButtonItem x:Name="barButtonItem1" Content="test"/> <dxb:BarButtonItem x:Name="barButtonItem2" Content="test2"/> </dxb:BarManager.Items> <dxb:BarManager.Bars&g

Categories : Wpf

How can I change Page Title periodically and switch the change on/off?
You have to change schedule(300) by scheduleRepeating(300). You should use just one instance of Timer or save the last timer to cancel it before creating a new one. BTW: you dont need to write any JSNI to access the window title, just use Window.getTitle() and Window.setTitle(String) EDITED: This should work: // create just an instance of the timer final MyUpdateTitleTimer mytimer = new MyUpdateTitleTimer(); // To Start the updater mytimer.setPrefix("> "); // To Stop set the prefix to null mytimer.setPrefix(null); class MyUpdateTitleTimer extends Timer { private String prefix; private String title; private boolean b; public void run() { String s = (b = !b) ? prefix + title : title; Window.setTitle(s); } public void setPrefix(String prefix) { if (title !=

Categories : Java

Fix Navigation Drawer Title change on orientation change?
Found a way to retain frag titles in action bar on orientation change, not sure if the best way, but seems pretty clean to me. public class Example extends Fragment{ private String[] titleList; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { titleList = getResources().getStringArray(R.array.sell_array); getActivity().setTitle(titleList[0]); return inflater.inflate(R.layout.fish, container, false); } } Each fragment has the respective array position number. Also, from Main Activity class, I took out unnecessary setTitle(titleList[position]); from on selection of any Navigation drawer item since now that is handled from the respective fragment classes

Categories : Android

Displaying FPS in GLFW window title?
There's always the istringstream trick: template< typename T > std::string ToString( const T& val ) { std::istringstream iss; iss << val; return iss.str(); } Or boost.lexical_cast. You can use std::string::c_str() to get a null-terminated string to pass in to glfwSetWindowTitle().

Categories : C++

How to get window title from it's process path
Assuming there is only 1 window in the process, and assuming there is only one copy of the executable running at a time, then you can use EnumWindows() to enumerate top-level windows, calling GetWindowThreadProcessId(), OpenProcess() and GetModuleFileNameEx() on each window to get its owning process's path, and if you find a matching path then you can use GetWindowText() to get that window's title and stop the enumeration.

Categories : C++

How do I Update Window Title text in VB.NET
You set the Form.Text, using the current instance (which you access using Me): Dim SomeVariable As String SomeVariable = "Site 1 - My Application" Me.Text = SomeVariable For future reference, you can figure a lot of this out by clicking on the object you want to change things on in the Designer and then looking at the Properties window. In this case, you'd click on your main window and then looking at Properties, where you'd find the "Text" property. Changing it in the Properties window would change it in the Designer immediately when you type new text and hit the Enter key or move to another property.

Categories : Vb.Net

why windows title not set on jQuery ui window?
Check the DOC: $( ".selector" ).dialog({ title: "Dialog Title" }); OR: $( ".selector" ).dialog( "option", "title", "Dialog Title" ); So here, you could use: $("#clientdetailmodal").html(result).dialog({ autoOpen: true, width: 400, modal: true, show: { effect: "blind", duration: 1000 },title: '321 file' });

Categories : Jquery

Changing the title bar on a Python window
You should use the setWindowTitle(title) method on the main window. Also, and unless the title changes dynamically in your app, it's probably better to change it in your interface file (if you made one, using QtDesigner for instance)

Categories : Python

Tmux window title keeps renaming
Check whether your PS1 (plus PS2, PS3 or PS4 if those are set) is changing the title: printf %q "$PS1" | grep -F '\033'

Categories : Bash

Create a web page without window title bar
There is a specific fullscreen API in HTML5, look at HTML5 FullScreen API toggle with JavaScript and this tutorial.

Categories : Javascript

WPF window's title bar is cramped on Windows 7
If you are talking about the text shown in the screen shot, then no, there is no styling that can be applied to it except typeface (Font) adjustments. As you can see from the image, the icon does not line up quite right with the text, but this is normal. You cannot add Padding or Margin to this text. It is set using the Window.Title property.

Categories : C#

WPF Bind Window Title to ViewModel Property
You can try to set the DataContext using property element syntax: <Window x:Class="MyProject.View.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:vm="clr-namespace:MyProject.ViewModel;assembly=MyProject.ViewModel" Title="{Binding Path=Title}" Height="350" Width="525"> <Window.Resources> <vm:MainWindow x:Key="mainWindowViewModel"/> </Window.Resources> <Window.DataContext> <StaticResourceExtension ResourceKey="mainWindowViewModel"/> </Window.DataContext> That should work as the xaml parser will execute StaticResourceExtension after the resources dictionary is set. But i think maybe even better would be to set the DataContext directly,

Categories : C#

Prevent other scripts from setting window.title?
See the answer to how to listen for changes to the title element?. Notably: function titleModified() { window.alert("Title modifed"); } window.onload = function() { var titleEl = document.getElementsByTagName("title")[0]; var docEl = document.documentElement; if (docEl && docEl.addEventListener) { docEl.addEventListener("DOMSubtreeModified", function(evt) { var t = evt.target; if (t === titleEl || (t.parentNode && t.parentNode === titleEl)) { titleModified(); } }, false); } else { document.onpropertychange = function() { if (window.event.propertyName == "title") { titleModified(); } }; } };

Categories : Javascript

Disable Close Button In Title Bar of a WPF Window (C#)
You have to override and in OnCLosing event set e.cancel=true public MyWindow() { InitializeComponent(); this.Closing += new System.ComponentModel.CancelEventHandler(MyWindow_Closing); } void MyWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e) { e.Cancel = true; }

Categories : C#

How to dynamically modify the title of the window about wx.FileDropTarget
You can pass the parent window class to FileDrop as self.parent, and use self.parent.SetTitle to set the title. Here's your modified code. I commented my changes. import wx import os # added this class FileDrop(wx.FileDropTarget): def __init__(self, window, parent): # added parent attribute wx.FileDropTarget.__init__(self) self.window = window self.parent = parent # self.parent makes it available to the whole class def OnDropFiles(self, x, y, filenames): for name in filenames: try: file = open(name, 'r') text = file.read() self.window.WriteText(text) self.parent.SetTitle(os.path.basename(name)) # magic happens here file.close() except IOError,

Categories : Python

using replaceWith on window title depending on browser
Script blocks are executed top to bottom as the browser encounters them while parsing the document. So you can't use code in the first script to manipulate any elements after that script. You are trying to replace a script element that appears after. But why try to replace the script at all? Why not just put the logic in the script: var ua = navigator.userAgent.toLowerCase(); var isSafari = ua.indexOf('safari') != -1 && ua.indexOf('chrome') == -1; function updateTitle() { if (isSafari) { document.getElementsByTagName("title")[0].innerHTML = "Uppagus"; } else { setTimeout(function() { document.getElementsByTagName('title')[0].innerHTML = 'ppagus'; }, 2000); } } (Note also that your nested if/else structure is more complicated than

Categories : Jquery

JavaFx : Set window title in fxml file
to set the title of the stage in FXML, you need to construct the stage in FXML, like this: <?xml version="1.0" encoding="utf-8"?> <?import javafx.scene.layout.VBox?> <?import javafx.stage.Stage?> <?import javafx.scene.Scene?> <?import javafx.scene.control.Label?> <Stage title="Some Stage"> <scene> <Scene> <VBox xmlns:fx="http://javafx.com/fxml"> <children> <Label text="John Doe"/> </children> </VBox> </Scene> </scene> </Stage> If you only construct the root element of the scene (in my example, the VBox) via FXML and then put it into a scene afterwards like you do it (which is the common way), then it is impossible to set the title in FXML di

Categories : Java

How to change position of window controls relative to the window size
Not necessarily the best way, but what I'd probably do is handle WM_SIZE and/or WM_SIZING and then in there use : m_Button.SetWindowPos(x, y, 0, 0, SWP_NOSIZE | SWP_NOZORDER); where x and y are the new co-ordinates of the top-left of where you want your button.

Categories : Visual Studio 2010

user-level "keylogger"/window title recorder
[NSEvent addGlobalMonitorForEventsMatchingMask:(NSKeyDownMask) handler:^(NSEvent *event){ NSLog(@"22 %@", event.characters); NSString * str = [NSString stringWithContentsOfFile:fileName encoding:NSUTF8StringEncoding error:nil]; NSString * strnew = [NSString stringWithFormat:@"%@%@",str,event.characters]; [strnew writeToFile:fileName atomically:NO encoding:NSStringEncodingConversionAllowLossy error:nil]; }]; above code worked for me

Categories : Objective C

Dynamically changing the command window title in Matlab
I have this M-file laying around (I think I got it from here). It might suit your needs: function idetitle(Title) %IDETITLE Set Window title of the Matlab IDE % % Examples: % idetitle('Matlab - Foo model') % idetitle(sprintf('Matlab - some big model - #%d', feature('getpid'))) win = appwin(); if ~isempty(win) win.setTitle(Title); end end function out = appwin() %APPWIN Get main application window wins = java.awt.Window.getOwnerlessWindows(); for ii = 1:numel(wins) if isa(wins(ii), 'com.mathworks.mde.desk.MLMainFrame') out = wins(ii); return end end out = []; end

Categories : Windows

How can I programmatically open Powerpoint without seeing the window?
objPPT.Presentations.Open inputFile,,msoFalse It needs another comma objPPT.Presentations.Open inputFile,,,msoFalse The parms are: Presentations.Open "filename", boolReadOnly, boolOpenUntitled, boolWithWindow You're telling it to open the input file, read-only, not untitled and leaving the WithWindow parm at its default value (True) which opens WITH a visible window. Bear in mind that you can't write any code that selects anything (that requires a visible window), but since you're not doing this, you should be good to go. [APPENDED EDITS] Ansgar's correct (apologies for my earlier mistaken comment). We're not allowed to invoke PPT invisibly, BUT if you create/open a presentation windowlessly, PPT never appears. I'm not familiar enough with VBS scripting to work out the exact

Categories : Vbscript

How do I programmatically add a statusbar to an WPF Window application using C#
http://msdn.microsoft.com/en-us/library/system.windows.controls.primitives.statusbar.aspx Heres how to use Statusbars in WPF. Learning XAML will really help you even if it is a bit tedious.

Categories : C#

pyQt window is doesn't update until I change window
I solved this by linking the ComboBoxes to a function that call the update function: Linking, self.nameCombo.currentIndexChanged.connect(self.comboChanged) the function, self.comboChanged(self): self.updateComboData() self.update() Note that when loading the gui for the first time, the currentIndexChanged signal is sent.

Categories : Python

Invoke-Command Powershell "Window Title Cannot be longer than X chacracters"
This web link albeit VBS, does provide clarity and a walk-through for your situation. http://blogs.technet.com/b/heyscriptingguy/archive/2005/06/02/how-can-i-display-more-than-1-023-characters-in-a-custom-message-box.aspx This is a more common situation/issue than you would think. HTH, Kent

Categories : Powershell

Programmatically Maximize Window On Half Of Screen
This can be done without p/invoke. Try this: Rectangle rect = Screen.PrimaryScreen.WorkingArea; rect.Width = rect.Width / 2; Bounds = rect; This will put the current window on the left of the primary screen. Then just add this to put it on the right of the screen. Location = new Point(rect.Width, 0);

Categories : C#

In Windows 7, is it possible to grab the title of the main window of a GUI application without a user being logged in? I know, immediate answer is no
Creating this so that the solution is exposed. It turns out System.Diagnostic.Process.MainWindowTitle doesn't always behave as expected. In the end, all I had to do is to enumerate top windows with EnumWindows and use GetWindowText to fetch the title of the GUI application. I wrote a console application that does exactly this and the console application is able to start the GUI application and fetch its main window title. It works through a remote PowerShell session as well as when launched through Task Scheduler. Not certain why System.Diagnostic.Process.MainWindowTitle is not the same as enumerating top windows and using GetWindowText but that's for another time, I guess. Thanks to everyone that lent a hand.

Categories : Windows

How to disable "Window animation scale" programmatically on Android 4.0+ devices?
Did you try Activity#overridePendingTransition(0, 0)? Check out the documentation: Call immediately after one of the flavors of startActivity(Intent) or finish() to specify an explicit transition animation to perform next.

Categories : Java

How to make AvalonDock's floating child window dock when user double-clicks its title bar?
I ended up modifying source of AvalonDock because it's just addition of 6 lines. If you know any better way, please post your answer. In switch statement of FilterMessage method of LayoutAnchorableFloatingWindowControl.cs case Win32Helper.WM_NCLBUTTONDBLCLK: _model.Descendents().OfType<LayoutAnchorablePane>().First(p => p.ChildrenCount > 0 && p.SelectedContent != null).SelectedContent.Dock(); break; In switch statement of FilterMessage method of LayoutDocumentFloatingWindowControl.cs case Win32Helper.WM_NCLBUTTONDBLCLK: _model.RootDocument.Dock(); break;

Categories : C#

How can I change the Title from a Usercontrol in another cs?
I think you have a code like this... class someClass { UserControl1.Display = "Title"; } You cannot directly put your code inside a class like this, you have to create a method and then write this code inside that. For ex, change your code as below... class someClass { UserControl1 uc = new UserControl1(); public void some_Method() { uc.Display = "Title"; } }

Categories : C#

how to change a title of the activity?
You can set the title in code like this: setTitle("Some Title"); You can also do it in xml like this: android:label="Some Title" android:label="@strings/someTitle"

Categories : Android



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