Subject RE: [IBO] Cannot focus a disabled or invisible window + update buttons
Author Vahan Yoghoudjian
Hi Jason

Are you hiding some controls when clicking on Post and trying to set focus
on one of them? Just make sure when you click Insert or Edit you set focus
on one of the fields to be edited and do the same on clicking Post

-----Original Message-----
From: jaguarius2003 [mailto:jaguarius@...]
Sent: Friday, July 09, 2004 11:24 PM
To: IBObjects@yahoogroups.com
Subject: [IBO] Cannot focus a disabled or invisible window + update buttons


Hi,

I just noticed a bit of a bug in my IBO program that I dont know how
to fit. This is happening on several forms, but I will just describe
one. I have a form with a full set of edit controls for 2 different
datasets, along with the required TIB_Edits for each.

Now, if you click insert, type in one field, and forget a reqired
field and hit post you get an error - fine.

BUT

If you hit insert, and then immediately hit post afterward, you get a
"cannot focus a disabled or invisible window" error. It took me a
while to figure out that you get this error when you don't click on
one the fields on the page to give it focus before hitting post.

The question is, how can I make sure one of my fields has focus so I
dont get this error? If I haven't been clear enough, let me know and I
will elaborate.

Thanks,

Jason S. Gagnon



___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !


Yahoo! Groups Sponsor
ADVERTISEMENT





----------------------------------------------------------------------------
----
Yahoo! Groups Links

a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/IBObjects/

b.. To unsubscribe from this group, send an email to:
IBObjects-unsubscribe@yahoogroups.com

c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




[Non-text portions of this message have been removed]