Modified AuthSample and Focus
Modified AuthSample and Focus
- Subject: Modified AuthSample and Focus
- From: "Arthur Lewis" <email@hidden>
- Date: Wed, 15 May 2002 12:50:56 -0700
Not sure that this is the best group for this query - so if not please point
me in the right direction.
I need to do authentication but first I want to authenticate and then get some
DialOut information in order to add the dialout information to the system
preferences. If authentication fails then I don't want the dialog window
used to capture dialout information to show up so that is the reason for the
order I have choosen. I have no problem in getting it all to work (but with
a GUI glitch) - both in CodeWarrior 7.2 and Project Builder (OS X 10.1.4).
The problem is that I can't get focus in the authentication dialog (unless I
do a mouse click on the dialog) - I either have an arrow or "spinning beach
ball" cursor - but clicking the mouse does allow focus and input of the
name/password. In the original AuthSample 2.0d2 it works just like I need -
no need to mouse click in order to allow input, the fields are immediately
available.
OK - I then started with the AuthSample and added a main.nib etc. and added a
call to CreateNibReference(CFSTR("main", &nibRef) - now the code no longer
provides focus in the Authentication dialog window and I need to click the
mouse in order to add input - hm. - stub out the call to CreateNibReferenc and
now it works without requiring a mouse click.
Same result if I have ShowWindow (wndRef) or other GUI calls - weird!!
Any thoughts on how to solve the problem - if I had access and knew the
reference to the dialog window maybe I could simulate a mouse click!!
This is driving me crazzzzzy!!
Thanks for any enlightement and pointers - Arthur Lewis
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.