Attached, non-modal forms won't get focus | Uniface Deployment | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

—  Results per page  —








— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters
For a group of consecutive words like 'end of support' use Match phrase

sp_Feed Topic RSS sp_TopicIcon
Attached, non-modal forms won't get focus
26 Sep 2018
11:52 pm
Avatar
Knut
Member
Forum Posts: 224
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Hi all,

I must be missing something very simple here;

A startup shell does an activate to a non-modal, attached (hidden) component.
This hidden component activates my main login / config forms (all modal) .
Once the environment has been created, I return back to the hidden component
and activate my main menu form – a non-modal, attached form to the hidden component.
The form reaches the edit statement, the screen becomes visible, and then control
returns to the hidden component…. ???

Why? Since the edit statement was executed, and initial form focus is true – shouldn’t
execution stop here? What am I missing?

Knut

27 Sep 2018
8:13 am
Avatar
ulrich-merkel
Frankfurt/Germany
Member
Forum Posts: 1868
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Hi Knut,

thats exactly the “problem” with nonmodal forms:

the edit will not wait until the “structure editor” is terminated by accept/quit/exit as in modal forms
and then complete the rest of the exec trigger.

So you are immediately executing the rest of the exec trigger and be back on the calling component.

Nice day from Frankfurt/Germany,
Uli

27 Sep 2018
3:12 pm
Avatar
Knut
Member
Forum Posts: 224
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Hi Uli,

Well, yes, you’re not telling me something I haven’t already observed…Confused

Since a non-modal form cannot be activated from a modal form, it would imply the 1st component has to be
non-modal…

I’ve tried both a non-modal attached and non-modal detached – doesn’t seem to make any difference.
I’ve tried setformfocus – no joy….

So, since we do have the ability to have non-modal components – I must be missing something, somewhere,
in order to make Uniface activate the structure editor…

Any ideas anyone?

Knut

28 Sep 2018
9:31 am
Avatar
ulrich-merkel
Frankfurt/Germany
Member
Forum Posts: 1868
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

set the focus to the non-modal form after you have activated it

01 Oct 2018
10:56 am
Avatar
Gerton Leijdekker
Amsterdam
Member
Forum Posts: 55
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Hi Knut,

try the apstart statement. It does exactly what you want: start the Structure Editor or force Uniface to become interactive.

Hope that it helps.

Gerton

02 Oct 2018
1:21 pm
Avatar
Jasper
Member
Forum Posts: 34
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

This looks like the reported bug 31719 whereby UNIFACE passes the focus to a hidden form. 

Title: “Non-modal form grabs focus and does not allow changing focus to other form”. What actually happens is that uniface searches for a first promptable field and ignored that the form is hidden in this bug. Meaning that the prompt is on a hidden tab-form and can in certain cases not pulled away by another form.

There is a fix coming soon for this  bug31719. Somewhere in 9.7.05.004 or 9.7.05.005.

Hope this helps

Jasper

02 Oct 2018
5:08 pm
Avatar
Mike Taylor
Admin
Forum Posts: 35
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Hi Knut,

Is it possible you can get a test set to us? It would be good to know if the fix for bug 31719 does indeed fix your problem.

Mike

05 Oct 2018
7:03 pm
Avatar
Knut
Member
Forum Posts: 224
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Gerton –
apstart fixed it! However, I did indeed need to set form focus to the
‘2nd’ form in the stack.

Mike –
Unfortunately, we seem to be stuck on 9.6.08….

Regards,
Knut

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 131

Currently Online:
27 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ulrich-merkel: 1868

Iain Sharp: 674

Theo Neeskens: 366

gianni: 343

Adrian Gosbell: 318

istiller: 296

rogerw: 272

Knut: 224

lalitpct: 197

Arjen van Vliet: 184

Member Stats:

Guest Posters: 3

Members: 10312

Moderators: 0

Admins: 6

Forum Stats:

Groups: 1

Forums: 62

Topics: 2294

Posts: 9946

Newest Members:

glennarm2, Punsnxu, Kevinshamp, CliffInali, janicetupct88, murielfo3, paulpn16, KreditovichHaist, evangelinerr2, janicetupsh87

Administrators: admin: 23, diseli: 1028, Nico Peereboom: 84, richiet: 406, Mike Taylor: 35, JanCees: 38