Questions tagged [setfocus]
For questions related to the SetFocus method, which moves the focus to the specified form or Window.
415
questions
0
votes
0answers
20 views
Setfocus on a control on a modeless userform
On a userform, on the Exit event of each textbox I do some type of validation. If there is an issue with the input I present an error message and send the focus back to the textbox with the text ...
0
votes
1answer
28 views
focus on ion-radio using vue js
I have a radio button in ionic vue js like this:
<ion-list v-if="product.size_maps">
<ion-radio-group v-model="selectedSize">
<ion-row>
<ion-col
...
0
votes
1answer
34 views
Set Focus on parent TabItem in WPF
Is there a way to automatically switch to a TabItem that hosts a control I want to focus?
My sample window to exemplify the issue.
<Window x:Class="Sample.MainWindow"
xmlns="...
0
votes
1answer
18 views
Userform .setfocus and _Change events
I find my self to be stuck on the smallest of issues.
I created a Userform consisting of a textbox and drop-down menu. The idea is for users to complete the textbox, and hit "save", which ...
0
votes
2answers
35 views
How do I get to a control in a subform
I want to go to a control in a subform in order to be able to enter data.
I can make a DoCmd.OpenForm but then I get an extra copy of the subform on top of the main form. I would rather go directly to ...
1
vote
1answer
30 views
Set focus not working on Microsoft access
I know very little about access but am trying to copy a bit of coding and when I type in Setfocus it is ignored I know very little about coding but why wont my access show set focus
If IsNull(Me....
0
votes
1answer
60 views
Set focus to the OK button in the TPrintDialog
Is it possible to set focus to the OK button in the TPrintDialog when it opens?
0
votes
0answers
37 views
how to properly use set_focus() in python pywinauto
I am trying to create a script that will cycle through 4 open windows. I am able to connect to the open windows fine. But I cannot figure out how to set_focus() on a window. I have read the ...
2
votes
0answers
35 views
React Native Accessibility Set Focus
I am adding accessibility to a React Native project and I can't seem to figure something out.
I am using javascript AccessibilityInfo.setAccessibilityFocus(reactTag); to change the focus to a desired ...
1
vote
1answer
25 views
Excel VBA User form navigation conundrum
This was asked about 3 years+ ago and no solution that works was given:
Set focus on UserForm Textbox on tabbing from another Textbox
I have a user form and want the navigation to the next text box to ...
0
votes
0answers
39 views
Cant change active textbox and set focus after mouse click on it
After second click on textboxes i cant write nothing after click on button "1". Setfocus is working only at first click (img).
Can You help?
Greetings
Private activeTextbox As Control
...
0
votes
2answers
16 views
Cannot Pass String to Page.SetFocus
Client wants after a save (post back) that the cursor returns to the last text box. I have it all setup but Page.SetFocus will not accept the variable _toFocus. But if I hard code it, it works ...
1
vote
1answer
77 views
Bootstrap modal set focus on popup close to input in body
Hi Stack overflow community people
I wanted to set the focus on input when users click on the bootstrap modal window.
I tried the below code but not helping. Any help appreciated.
$('#myModal').on(...
0
votes
0answers
9 views
ms-Access, Form, Textbox. I want to “SetFocus” back to the same textbox if an invalid entry
I am checking for invalid entries for a textbox field. If the entree is incorrect I want the focus to stay in that same textbox. In my code, I have tested setting the.SetFocus method to all the text ...
0
votes
0answers
24 views
Trying to do auto focus on search Panel of devextreme
I am trying to do autofocus when lookup popup is display but getting TypeError: Cannot read property 'instance' of null. The SearchPanel is insid a DataGrid
constructor(props) {
super(props);
...
0
votes
1answer
12 views
requestFocusInaWindow() not Working - What am I doing WRONG?
I saw some documentations about Focus in Java but I didn't understand exactly how this works.
I tried to reproduce my doubts in this short code, where I tried to set focus in textfield2 component. I ...
1
vote
2answers
60 views
Detect when dialog sets focus to various combo controls using PreTranslateMessage
I have a CDialog and I am trying to override PreTranslateMessage like this:
BOOL CWeekendMeetingDlg::PreTranslateMessage(MSG* pMsg)
{
if (pMsg->message == WM_SETFOCUS)
{
if (::...
0
votes
0answers
268 views
Access navigation form to set focus on sub form text box
An Access form uses labels as tabs and uses VBA to navigate through several different manufacturing functions (forms) and then among reports/date pickers/forms for that function, each a tab in a tab ...
0
votes
3answers
87 views
How to get tkinter to focus in on entry box on initializing new window?
I am trying to use tkinter to create a new window with the focus set on its entry box. I am using the following code, which as far as I can tell should work:
import tkinter as tk
m = tk.Tk(className=...
0
votes
0answers
22 views
How do I select the TextBox after running CommandButton? (SetFocus after Commandbutton not working)
I want that after I press Enter on the TextBox1, the commandbutton_1 runs and after that, the cursor comes back to the TextBox1.
First situation (I used to have just 1 TextBox and the "Default" ...
0
votes
0answers
43 views
Android KEYCODE_ENTER does not change focus
I have a page with two EditText :username and a password and I have a LoginButton.
with the LoginButton: when I press it when both editText are empty, the focus is set on username.
when I am on the ...
0
votes
0answers
66 views
How to automatically select and highlight all text when TextCtrl on Setfocus in wxPython?
I am trying to build up a frame with many TextCtrl, in order to easier input for users, trying to implement a good function that when user setfocus on any TextCtrl, no matter by mouse or TAB, all text ...
0
votes
0answers
190 views
How to change focus from one text editor to another using Javascript? (QuillJS / react-quill)
I'm trying to automatically populate a new text editor every time a max character count has been reached, then have the focus change to that new text editor. I know how to automatically populate a new ...
0
votes
1answer
323 views
Setting Focus on QPushButton on pressing Enter
I have to set focus on a QPushButton upon clicking enter in a QLineEdit, and I am able to achieve the same but the problem is that the action to be performed on button click is also getting triggered. ...
0
votes
1answer
88 views
How to set Focus to newly visible TextBox
I have a series of textboxes, and validation on each one.
If the textbox value passes validation, I want to make the next textbox visible, and set the focus to it. If it doesn't, I want to remain on ...
2
votes
3answers
1k views
How to set focus to editText when fragment start?
When MyFgment appear in screen, I want to set cursor focus on EditText in MyFragment automatically. I've tried EditText.requestFocus(), but it doesn't focus on EditText. How can I do??
0
votes
1answer
332 views
Using EPPlus for Excel, how to set focus on a cell in the active sheet?
I can set an active worksheet using the
Package.Workbook.View.ActiveTab = iSheetNumber;
Now I want to set focus on cell A1, so when excel file is opened in excel I want to see that cell A1 is ...
-1
votes
3answers
101 views
Is SetFocus a Function?
I saw this line of code txtNewCaption.SetFocus and was told that SetFocus is used as a sub
here but it is also a function. I also read online that the difference between a sub and a function is that a ...
6
votes
2answers
1k views
How to use manual focus in Android CameraX?
I am trying to do manual focus on CameraX the same as I do in Camera2 API
in Camera2 API I use the following code
final CaptureRequest.Builder captureBuilder = mCameraDevice.createCaptureRequest(...
1
vote
0answers
49 views
React - Focus on element mechanism
What's the best approach to build a mechanism to set the focus on elements in an entire app from different parts.
Example scenario: There is a button (somewhere in the app) and user clicks on that ...
1
vote
2answers
4k views
How to set the focus on a text box?
In one database form code generates a new record:
Me.Section(0).Visible = True
DoCmd.GoToRecord , , acNewRec
Me!ExhibitName.SetFocus
The focus is not set on the data textbox ExhibitName. The focus is ...
0
votes
1answer
132 views
sap.m.input focus doesn't work the second time in Fiori Launchpad
I am trying to set focus on the first field of the SAPUI5 application; it works well for the first time using focus().
But when we come out of the app and launch the app again from the Fiori ...
2
votes
1answer
690 views
How to send focus to a text box of a VBA form during its initialization/activate event?
I have a VBA form in Corel. Behaving exactly like a similar one in Excel...
Initially, when the form initialize event used to contain only some lines of code, the simple ending line me.txtCsv.Setfocus ...
0
votes
1answer
285 views
Using Python 3.7.3, how do I disable Tkinter's background “Tab” key binding
I'm trying to intercept the Tab character press without explicitly binding to it at the root or frame level, as this would increase complexity more than desired.
I really don't want to bind a simple ...
0
votes
1answer
298 views
How can I request focus on a text field as soon as FXML loads?
I am creating a JavaFX application using FXML. In this application I have a button that loads a FXML scene in a portion of the Stage, like loading a FXML file as a child of another FXML scene. I want ...
2
votes
0answers
271 views
Android Camera2 - How to set camera focal length for different mobile model and versions
Is there any option to control android camera focal length programmatically?
I need to set common dimensions, physical size, pixel, dpi in android native camera for different mobiles. Is there any ...
0
votes
0answers
46 views
How do I get the keyboard to pop up on mobile browser when using Javascript / JQuery focus() event
I am able to use $('#text-box').focus(); to successfully focus the cursor on the text-box after a page loads. However, when I load the page on a mobile browser the text-box focuses but the keyboard ...
1
vote
1answer
321 views
VBA UserForm: Unexpected behaviour after using SetFocus on a TextBox
I have a UserForm that displays the text content of various cells within the active worksheet and has a TextBox to allow users to enter new information.
The UF updates automatically whenever the user ...
0
votes
1answer
96 views
How to set Focus for the Pop-up error message?
I need to set the focus for the POP-UP window so that the Screen reader reads out the error message twice.
if (Convert.ToDateTime(txtFromDate.Text.Trim()).DayOfWeek != DayOfWeek.Monday)
{
...
0
votes
2answers
221 views
Trouble with Access 2010 .SetFocus command syntax
Extremely puzzling:
Upon opening a simple form from another form by vba, the cursor moves to a particular field.
However, when this field is Null there is each second time Error 2110. The syntax to be ...
0
votes
1answer
38 views
how to set JtextArea focus in right position?
when i enable or request focus in text area the focus or caret anything u name it, it located at left. but when i start typing, it change to right.
please help me to make it on right when request ...
0
votes
0answers
302 views
Question about javascript setFocus in PDF fillable forms - does setFocus affect tab order?
Thanks for any input! I'm creating a PDF fillable form that will be completed offline (no web browser, no HTML). I have required fields, and code to ensure that these fields are filled. Each required ...
1
vote
1answer
38 views
Do not apply requestFocus on EditText that is inside CarouselView
I have a EditText in the RecyclerView item that, once the item is selected, I want to display the keyboard and Focus on the EditText, but I do not do anything.
I use the CarouselView library, which ...
0
votes
2answers
313 views
Can't set focus on JTextPane inside JavaFX SwingNode
I am trying to set the focus on the JTextPane so that when the window opens it can immediately be edited with the keyboard. However, nothing I've done seems to give the JTextPane focus on startup. Is ...
1
vote
1answer
404 views
Rich Text Editor and focus by submit button
I have a textarea to which I associate a Rich Text Editor. I've followed the steps to install it and everything runs smoothly. The textarea in question is within a form with other textarea and fields ...
0
votes
1answer
1k views
how to set focus at specific position in Entry + xamarin.forms
my entry box has some text already.so can I set cursor focus at start of text?
how? I coudnt find any option for that.if anybody have idea.please suggest.
0
votes
1answer
229 views
Delphi Android edit1.setfocus
I want to read the conditions if edit1.setfocus. so if the screen is in rotation in landscape when edit1.setfocus in potrait mode, I can give a command.
if edit1.setfocus then
or
if edit1.Focused ...
3
votes
2answers
2k views
Is there any way to hide keyboard when focusing an ion-input?
I wanted to have an ion-input that will be focused and the keyboard should not appear. Is there any way or is it possible? Thank you!
0
votes
1answer
37 views
Incorrect focus the Visibility binding property changes dynamically
In a UserControl, I've got a bunch of Labels and TextBoxes within a Grid:
examples of labels:
<Label
Grid.Row="3" Grid.Column="1"
Uid="TrainDetails"
Content="{lex:Loc}"
Style="{...
0
votes
2answers
161 views
How to move focus to different edittext while scanning?
I have two EditText. One EditText is for scanning and second one is for search purpose.
But when I do searching and try to do scanning then search EditText takes the focus of scanning EditText.
How ...