| View previous topic :: View next topic |
| Author |
Message |
GeoTrail Valued Contributor


Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Sun Mar 09, 2003 9:46 pm Post subject: Check if object is hidden? |
|
|
How can I check if a COMBO object is hidden or visible?
If I use HIDE to hide an object that is already hidden or SHOW for an object that is already shown will that cause an error? _________________
 |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sun Mar 09, 2003 9:55 pm Post subject: |
|
|
I don't think additional HIDE and SHOW commands will
cause errors, but trying to access a hidden list, etc. can.
You can keep up with what's shown/hidden (if necessary)
by setting a var each time you HIDE/SHOW something (or
for several elements you can use a list).
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
GeoTrail Valued Contributor


Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Sun Mar 09, 2003 10:19 pm Post subject: |
|
|
OK, thanks Mac.
I am actually using lists too.
So I guess the safest thing to do is to show the COMBO object before it is populated with the contents from the list? _________________
 |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sun Mar 09, 2003 10:39 pm Post subject: |
|
|
I'd think so.  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sun Mar 09, 2003 11:05 pm Post subject: |
|
|
You can populate, edit and do just about anything you want with
hidden combo boxes and lists boxes without worry. No need to
have them showing on the form at all.
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sun Mar 09, 2003 11:16 pm Post subject: |
|
|
OOPS... sure 'nuff ya can.
I musta been thinkin' about DIALOG REMOVE
or somethin' - LOL, or not thinkin' at all...
Ya can't use DIALOG FOCUS on a hidden control
though...
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
GeoTrail Valued Contributor


Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Mon Mar 10, 2003 12:38 am Post subject: |
|
|
OK, thanks guys. _________________
 |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Mon Mar 10, 2003 1:05 am Post subject: |
|
|
| Mac wrote: | Ya can't use DIALOG FOCUS on a hidden control
though...
Cheers, Mac  |
Tell me about it!! Who here hasn't gotten freaked out with an exception
error on that one!! LOL!!
I remember the first time I tried to focus on a hidden button and got that
exception error. I damn near had a heart attack.
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
GeoTrail Valued Contributor


Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Mon Mar 10, 2003 1:16 am Post subject: |
|
|
He he he I've already been there Garrett  _________________
 |
|
| Back to top |
|
 |
|