SetFocus

Everything OAD-related that won't fit in the other categories: share general aspects of macro programming and discuss the OAD environment
Post Reply
user-3385
Posts: 17
Joined: Thu Jan 01, 1970 1:00 am

SetFocus

Post by user-3385 »

How can I initialize a ZenWindow with an input field being in Focus (i.e. no need to click in the textfield in order to type on the keyboard)?
I tried:

window = ZenWindow()
window.Initialize('textbox', 1200, 100, True, True)
window.AddTextBox('tval','Enter text value','')
window.SetFocus(whatever)
window.Show()

But SetFocus does nothing and I always need to click on the texfield to activate the keyboard input.

Thanx for your help.
user-4
Posts: 397
Joined: Thu Jan 01, 1970 1:00 am

Post by user-4 »

Hello Julien,

you are right, this is a bug!

In your context

window.SetFocus('tval')

should work.

I will try to get a bugfix for this soon.
user-3385
Posts: 17
Joined: Thu Jan 01, 1970 1:00 am

Post by user-3385 »

Hi,
Thanks for the answer.
And News on a bugfix (2.6)?
Thanks again.
Julien
user-4
Posts: 397
Joined: Thu Jan 01, 1970 1:00 am

Post by user-4 »

Hello Julien,

there will be a new release of ZEN Core in a couple of weeks, called Zen Core 3.0.

In Zen Core 3.0 SetFocus will work.

SetFocus for ZEN Core 2.6 is planned to be fixed with the next Hotfix coming after the release of Zen Core 3.0
Post Reply