Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
setfocus
- Page 1
SetFocus() on canvas not working?
Programming
Software Development
15 Years Ago
by artemis_f
… on the canvas 4. Except where do I call the
SetFocus
() so that the focus successfully passes back to the parent… of the miniframe? I have tried several variations of
SetFocus
, SetFocusIgnoringChildren and SetFocusFromKbd both after the self.Destroy() and just…
Re: SetFocus() on canvas not working?
Programming
Software Development
15 Years Ago
by artemis_f
…, self.on_name_key_down) # the text box expects key strokes self.textBox.
SetFocus
() box.Add(self.textBox, 1, wx.ALIGN_CENTRE|wx.ALL, 5… will once again print stuff...where can I put the
SetFocus
() method so this works? Thanks
SetFocus(HWND) doesn't work :(
Programming
Software Development
14 Years Ago
by medopunsher
… text box and one button , then i try to use
SetFocus
() function to Give the focus to the text box so…)GetStockObject(DEFAULT_GUI_FONT),TRUE); SendMessage(hbutton,WM_SETFONT,(WPARAM)GetStockObject(DEFAULT_GUI_FONT),TRUE);
SetFocus
(hedit); break; //.... } [/CODE] Thanks in advanced...
Creat your own .setfocus
Programming
Software Development
9 Years Ago
by matoo
…quot;)" 'this what i want to calculate strDayStop.
SetFocus
'this what i want to calculate now as you can… it is 7th july 2015 it should be highlighting or
setfocus
to txtDay(9). strDayStop = "txtDay(" &…quot;)" 'this what i want to calculate strDayStop.
SetFocus
'this what i want to calculate how can i …
Re: What text1.SetFocus used for?
Programming
Software Development
14 Years Ago
by AndreRet
… pointed out, the cursor will go to text1 if its
setfocus
property is invoked. Be carefull though of errors, if text1… will receive an error, if the
setfocus
is invoked with another object i.e 'Text1.
SetFocus
, Text2.
SetFocus
, an error will be raised…
Re: Creat your own .setfocus
Programming
Software Development
9 Years Ago
by BitBlt
… in the Form_Load event? If so, you can't use
SetFocus
until the form itself is visible (Reference: [Microsoft VB6 Documentation…) strStartDate = iStartIndex strStartDate = Val(strStartDate) + Val(strDate) myForm.txtDay(strStartDate).
SetFocus
End Sub 4. Go into the VB menu to Project…
Re: wxpython Setfocus problem
Programming
Software Development
19 Years Ago
by vegaseat
…TextCtrl does not have a member/method
SetFocus
() and has to get it from ….Frame.__init__(self, None, -1, 'wx.TextCtrl and
SetFocus
()', size=(400, 150)) self.SetBackgroundColour('green') self.edit1 =… pos=(10, 70), size=(300, 25)) self.edit2.
SetFocus
() # editbox is on a frame so this works #…
Re: wxpython Setfocus problem
Programming
Software Development
19 Years Ago
by vegaseat
…__init__(self, parent): self._init_ctrls(parent) self.textCtrl2.
SetFocus
() # parent is panel, focus and tab work now…=(10, 70), size=(300, 25)) self.edit2.
SetFocus
() # editbox is on a panel so focus and…= wx.Frame(None, -1, "wx.TextCtrl and
SetFocus
()", size = (400, 150)) # instantiate class MyPanel …
Re: wxpython Setfocus problem
Programming
Software Development
19 Years Ago
by vegaseat
…400, 190), style=wx.DEFAULT_FRAME_STYLE, title=u'wx.TextCtrl and
SetFocus
') self.SetClientSize(wx.Size(392, 150)) self.SetBackgroundColour(wx.Colour…=u'') def __init__(self, parent): self._init_ctrls(parent) self.textCtrl2.
SetFocus
() # parent is frame, this will work now if __name__ == …
Re: wxpython Setfocus problem
Programming
Software Development
19 Years Ago
by bucodi
…400, 190), style=wx.DEFAULT_FRAME_STYLE, title=u'wx.TextCtrl and
SetFocus
') self.SetClientSize(wx.Size(392, 150)) self.SetBackgroundColour(wx.Colour…=u'') def __init__(self, parent): self._init_ctrls(parent) self.textCtrl2.
SetFocus
() # parent is frame, this will work now if __name__ == …
Re: [SWT] setfocus to the same widget that lost it
Programming
Software Development
17 Years Ago
by dale.swift
You need to call
setFocus
from within an asyncExec call. [CODE] Display.getCurrent().asyncExec(new Runnable() { public void run() { errorField.
setFocus
(); } }); [/CODE]
wxpython Setfocus problem
Programming
Software Development
19 Years Ago
by bucodi
….staticText1.SetBackgroundColour(wx.Colour(0, 0, 128)) [B] self.Sfield1.
SetFocus
()[/B] [B]Why isn't the focus set to SField1…
[SWT] setfocus to the same widget that lost it
Programming
Software Development
17 Years Ago
by DooM86
….out.println("txt1 is empty"); ((Text) e.getSource()).
setFocus
(); } } public void focusGained(FocusEvent e) { } }); [/code] when the txt1 lost…
text1.setfocus problem
Programming
Software Development
17 Years Ago
by swapna7999
im getting an error while using Text1.
SetFocus
the error is invalid procedure call or argument i used this in the form load and i suppose it is used to bring the cursor in the textbox during form load
Re: text1.setfocus problem
Programming
Software Development
17 Years Ago
by Jx_Man
use tab index to set cursor on current text box.
setfocus
cannot be called in form load. just in procedure or function.
Re: text1.setfocus problem
Programming
Software Development
17 Years Ago
by boomba23
You cannot Set textbox
setfocus
in Load event , if you want to set focus use with tab index to 0 :) :)
Generate code on SetFocus
Programming
Software Development
16 Years Ago
by menelaussa
Hello everybody, I have a problem regarding
setfocus
. I have a datagrid with 3 columns: MinAge, MaxAge and Code. In Code column I need to generate a code on set focus event. I mean ... when you click on Code textbox (in edit mode) to appear automatically the code. Can anybody help me? Than you!
vb.net setfocus
Programming
Software Development
16 Years Ago
by jpbaroma
how do i use the
setfocus
method in vb.net and also how do i use keyascii=13 on keypress event of textbox? i want to have a textbox that when enter key is pressed, the focus shifts to another textbox.
What text1.SetFocus used for?
Programming
Software Development
14 Years Ago
by FPinget
What text1.
SetFocus
used for? Cheers, FPinget
Re: What text1.SetFocus used for?
Programming
Software Development
14 Years Ago
by kinwang2009
Text1.
SetFocus
is used to set your cursor to Text1(Control). Thanks
automatically setfocus in a textbox after data entry
Programming
Web Development
14 Years Ago
by nyler01
How to automatically
setfocus
on text input in a and go back to same page after data has been entered.. Just like after you enter a data in input box, the form will refresh and the focus will go in the textbox again.. thanks in advance..
Re: SetFocus() on canvas not working?
Programming
Software Development
15 Years Ago
by sneekula
You can use Hide() and Show() as explained here: [code=python]# create two frames with wxFrame, only one is showing import wx class Frame1(wx.Frame): def __init__(self, parent, mytitle): wx.Frame.__init__(self, parent, wx.ID_ANY, mytitle) self.SetBackgroundColour("green") # pass frame1 to frame2 as instance …
Re: .:: Urgent - SetFocus Help ::.
Programming
Software Development
17 Years Ago
by Prozeen
If I understand you correctly, you are wanting to know the name of a control that has received the focus (i.e.
setfocus
) and therefore you need to use "gotfocus"?
Re: wxpython Setfocus problem
Programming
Software Development
19 Years Ago
by bucodi
Thanks for the quick answer ! Actually what you're saying is that BOA makes it complicated ans I agree, you code looks realy a lot simpler for doing the same thing... Rony
Re: wxpython Setfocus problem
Programming
Software Development
19 Years Ago
by vegaseat
Boa code not only looks more complicated, but on simple apps when you reload suddenly the frame designer goes out and leaves you stuck! There are other frustrating behaviours that I hope will be corrected in later more stable versions of the boa program. I keep templates of basic wxPython code (non-boa) and start from there. Edit: Have to eat…
Re: [SWT] setfocus to the same widget that lost it
Programming
Software Development
17 Years Ago
by parthiban
Hi , Try requestFocus() method
Re: [SWT] setfocus to the same widget that lost it
Programming
Software Development
17 Years Ago
by dale.swift
requestFocus() works for AWT Otherwise, for SWT, you need to callSetFocus() from asyncExec()
Re: text1.setfocus problem
Programming
Software Development
17 Years Ago
by swapna7999
thank u the tabindex was set to 1 in the property and i set it to 0 in the form load code
Re: Generate code on SetFocus
Programming
Software Development
16 Years Ago
by jireh
[QUOTE]I mean ... when you click on Code textbox (in edit mode) to appear automatically the code.[/QUOTE] I think it's not of focus event it's a click event, right? I'm sorry but can you please rephrase your question....it's hard to understand what you really want.
Re: Generate code on SetFocus
Programming
Software Development
16 Years Ago
by menelaussa
When I have the grid in edit mode and I click in Code's textbox I want to appear the value of Code automatically
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC