Visible Property Not Usable in Active X ??? 
Author Message
 Visible Property Not Usable in Active X ???

ActiveX Control Pad Fun... I've been pulling my hair out over this for the
last 2 days:

I need a control, preferably (but not definitely) a text box control, to be
invisible at run time, until an event is triggered that makes it visible.  
Sounds simple enough.  

When I am setting the controls properties, I set visible to false.  I plug
the control into my HTML and everything is fine except that <PARAM
NAME="Visible" VALUE="0"> or <PARAM NAME="Visible" VALUE="False"> isn't
there.  The control is visible at run time.

So I add <PARAM NAME="Visible" VALUE="0"> or <PARAM NAME="Visible"
VALUE="False"> or any one of several variations on that theme.  It's
ignored.  The control is still visible at run time.  

So I add an OnLoad sub that says that on load, the control is not visible.
Something like this:

<SCRIPT LANGUAGE="VBScript">
Sub OnLoad()
TextBox1.Visible=False
End Sub
</SCRIPT>

So I get an error saying that the property or method is not supported.
Visible is NOT supported ? Help says it IS supported.  The properties sheet
has it listed as a property.  The control is still visible at run time.  

So, I use the Script Wizard to script the onload, just in case I'm making a
lameass mistake.  The Visible property is not available for scripting.  The
control is still visible at run time.

So, I tried the IE PopUp Window control.  Its property sheet and property
tab dialog look incomplete.  There's no place to put a URL or text.  The
"general" tab is blank.  The help button on the property tab says the
occache.hlp file is missing.   So I search all three VStudio CD's for the
file.  It doesn't exist.  Friends check their systems for the help file.
It doesn't exist.  So I reinstall IE 3.01.  It still does not exist, and
the controls property sheet and property tab dialog still look incomplete.
Nothing changes.

AAARRRGGGHHH !!! WTF is goin on here ???

---> If there's a way to make a text box invisible and then visible ?  
---> Or is there a way to get the IE PopUp Window control to work ?
---> Or if there's an alternative control that I should be using ?

SOMEONE PLEEEEEEEASE let me know !

Thanks, Tony

"I used to have hair - but I pulled it all out"



Thu, 22 Jun 2000 03:00:00 GMT  
 Visible Property Not Usable in Active X ???

Tony,
Have you tried embedding the text control in an alx file?  I found
that at least in ie3 the visible property doesn't work if the activex
control is not in an alx file.

I hope this gives your hair a break...
-Heidi

Quote:

>I need a control, preferably (but not definitely) a text box control,
to be
>invisible at run time, until an event is triggered that makes it

visible.


Fri, 23 Jun 2000 03:00:00 GMT  
 Visible Property Not Usable in Active X ???

I didn't even know there was such a thing as a "Visible" option...

Maybe it's not as elegant, but I set a flag, (I'm clever, I call it "FLAG")
and use the timeless and beloved if-then:

<%If Flag =1 then%>
text box control and associated text, etc.
<%end if%>
when FLAG=0 then no text box, when FLAG=1...you get it.

As I said, it's not elegant, but it works just fine, first time, every time.
I have entire tables, population of drop down boxes, all sorts of stuff
shoved between there.

Hope this helps.

Robin.

"Still have all my hair"

Quote:

>ActiveX Control Pad Fun... I've been pulling my hair out over this for the
>last 2 days:

>I need a control, preferably (but not definitely) a text box control, to be
>invisible at run time, until an event is triggered that makes it visible.
>Sounds simple enough.

>When I am setting the controls properties, I set visible to false.  I plug
>the control into my HTML and everything is fine except that <PARAM
>NAME="Visible" VALUE="0"> or <PARAM NAME="Visible" VALUE="False"> isn't
>there.  The control is visible at run time.

>So I add <PARAM NAME="Visible" VALUE="0"> or <PARAM NAME="Visible"
>VALUE="False"> or any one of several variations on that theme.  It's
>ignored.  The control is still visible at run time.

>So I add an OnLoad sub that says that on load, the control is not visible.
>Something like this:

><SCRIPT LANGUAGE="VBScript">
>Sub OnLoad()
>TextBox1.Visible=False
>End Sub
></SCRIPT>

>So I get an error saying that the property or method is not supported.
>Visible is NOT supported ? Help says it IS supported.  The properties sheet
>has it listed as a property.  The control is still visible at run time.

>So, I use the Script Wizard to script the onload, just in case I'm making a
>lameass mistake.  The Visible property is not available for scripting.  The
>control is still visible at run time.

>So, I tried the IE PopUp Window control.  Its property sheet and property
>tab dialog look incomplete.  There's no place to put a URL or text.  The
>"general" tab is blank.  The help button on the property tab says the
>occache.hlp file is missing.   So I search all three VStudio CD's for the
>file.  It doesn't exist.  Friends check their systems for the help file.
>It doesn't exist.  So I reinstall IE 3.01.  It still does not exist, and
>the controls property sheet and property tab dialog still look incomplete.
>Nothing changes.

>AAARRRGGGHHH !!! WTF is goin on here ???

>---> If there's a way to make a text box invisible and then visible ?
>---> Or is there a way to get the IE PopUp Window control to work ?
>---> Or if there's an alternative control that I should be using ?

>SOMEONE PLEEEEEEEASE let me know !

>Thanks, Tony

>"I used to have hair - but I pulled it all out"



Sun, 25 Jun 2000 03:00:00 GMT  
 Visible Property Not Usable in Active X ???



Quote:
> Tony,
> Have you tried embedding the text control in an alx file?  

That was a brilliant thought Heidi, but unfortunately, it didn't quite work
out.  There's apparently no visible property for the alx file, so even
though I could make the text box itself disappear, I was left with a blank
alx file on the screen.  I tried changing the alx's height and width to 0
to hide it, which hid it, and left a big blank black space where it used to
be.  UNBELIEVABLE !!!

Quote:
> I found that at least in ie3 the visible property doesn't work if the
activex
> control is not in an alx file.

What's up with that ? Has there been any effort at all on Microsoft's part
to fix this (or even admit to it) ?

Quote:
> I hope this gives your hair a break...

You tried :-)

THANKS, Tony  



Sun, 25 Jun 2000 03:00:00 GMT  
 Visible Property Not Usable in Active X ???



Quote:
> I didn't even know there was such a thing as a "Visible" option...

Oh yeah, there is... When using an Active X Control is Visual Basic, it
works great.  Unfortunately, in ActiveX, it doesn't work at all.    

Quote:
> Maybe it's not as elegant, but I set a flag, (I'm clever, I call it
"FLAG")
> and use the timeless and beloved if-then:

The beloved IF THEN ... I love it too :)  Would you mind copying and
pasting a few line of code that will show me exactly how its done ?  I've
never set flags, so I wasn't really able to follow your example.

THANKS Robin !

Sincerely, Tony

"The hairless one"

--------------

Quote:
> <%If Flag =1 then%>
> text box control and associated text, etc.
> <%end if%>
> when FLAG=0 then no text box, when FLAG=1...you get it.

> As I said, it's not elegant, but it works just fine, first time, every
time.
> I have entire tables, population of drop down boxes, all sorts of stuff
> shoved between there.

> Hope this helps.

> Robin.

> "Still have all my hair"



Sun, 25 Jun 2000 03:00:00 GMT  
 Visible Property Not Usable in Active X ???

Tony,

Quote:
>That was a brilliant thought Heidi, but unfortunately, it didn't
quite work
>out.  There's apparently no visible property for the alx file, so
even
>though I could make the text box itself disappear, I was left with a
blank
>alx file on the screen.  I tried changing the alx's height and width
to 0
>to hide it, which hid it, and left a big blank black space where it
used to
>be.  UNBELIEVABLE !!!

There may be hope yet - depending on what you want to do when you
can't see the box. Make the background colour of the alx the same as
the document background colour. I think when you are in the activex
control pad - just right click on the background area of the alx
control and you can change the background colour... Then the user
shouldn't realise there is something different in that bit of blank
real estate. Or, have an image behind the listbox so when it is
visible it overlays the image or you toggle the image's visibility
oppositely to the listbox's.

Quote:

>> I found that at least in ie3 the visible property doesn't work if
the
>activex
>> control is not in an alx file.

>What's up with that ? Has there been any effort at all on Microsoft's
part
>to fix this (or even admit to it) ?

I don't think it is considered broken. dynamic html is not a part of
ie3 and the form elements aren't objects... It wasn't considered a
feature that should exist. when people wanted it microsoft came up
with the alx...

-Heidi



Tue, 27 Jun 2000 03:00:00 GMT  
 Visible Property Not Usable in Active X ???

Heidi & Tony,
I saw this thread and am interested in the same problem. We would like to
hide or display a Prototype DataTable OCX under program control and there
doesn't seem to be any obvious way to do this.
Robert Robinson



Tue, 27 Jun 2000 03:00:00 GMT  
 Visible Property Not Usable in Active X ???

You need embed it in an alx (html layout control) file to be able to
control it's visibility in IE3. In IE4 it is possible to hide it using
dhtml.

-Heidi

Quote:

>Heidi & Tony,
>I saw this thread and am interested in the same problem. We would
like to
>hide or display a Prototype DataTable OCX under program control and
there
>doesn't seem to be any obvious way to do this.
>Robert Robinson



Sun, 02 Jul 2000 03:00:00 GMT  
 Visible Property Not Usable in Active X ???

Set the height and width to 0 and then give them new values when you want
to see it




Quote:
> ActiveX Control Pad Fun... I've been pulling my hair out over this for
the
> last 2 days:

> I need a control, preferably (but not definitely) a text box control, to
be
> invisible at run time, until an event is triggered that makes it visible.
> Sounds simple enough.  



Sun, 02 Jul 2000 03:00:00 GMT  
 
 [ 9 post ] 

 Relevant Pages 

1. Visible Property Not Usable in VBScript / Active X ???

2. Visible Property Not Usable in Active X ???

3. Usercontrol Text property not visible in property window

4. Usercontrol Text property not visible in property window

5. Visible property does not work?

6. VB6 COM Interface properties not visible

7. "visible"-property not available from Interface-Assistant

8. Create property that's not visible in the propertybrowser

9. App is not visible in alt-tab list unless form is visible in the taskbar

10. MSForms controlsource property usable in word?

11. Word Template using activeX fields not usable when opened on Mac

12. GetFileDate supports not usable Date

 

 
Powered by phpBB® Forum Software