Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Overview control (Read 3614 times)
rad1
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Aug 24th, 2009
Overview control
Dec 5th, 2009 at 10:38am
Print Post  
How can I use the Overview control ?

I found the following code in the developer guide :



Code
Select All
Private Sub Form_Load()

    ov.Document = fcx

End Sub
 



But what is ov ? How can I use it with JavaScript ?

Thanks a lot for your help.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview control
Reply #1 - Dec 6th, 2009 at 8:41am
Print Post  
Hi,

This adds and Overview to the page:

Code
Select All
<OBJECT id="ovw" width="256" height="256" classid="CLSID:21E12ADF-C657-40dd-8DC9-493F5196739E" codebase="fcx_pro.CAB" />
 



The JS onload event is raised before the ActiveX controls are loaded, so you have to run a timer from onload and set ovw.Document from the timer handler.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
rad1
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Aug 24th, 2009
Re: Overview control
Reply #2 - Dec 25th, 2009 at 1:29pm
Print Post  
Thanks for reply,

I can display overview control but, when I set Document property like :

ovw.Document = fcx

I obtain this error :

Incompatibe Type !!

Have you any idea how to solve this problem ?

Thank you for help
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overview control
Reply #3 - Dec 28th, 2009 at 7:15am
Print Post  
The controls might not be loaded completely when the window.onload event is raised. Try doing that from a timer:

Code
Select All
function setOverview()
{
	try
	{
		ovw.Document = fcx;
	}
	catch (err)
	{
		setTimeout("setOverview()", 1000);
	}
} 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
rad1
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Aug 24th, 2009
Re: Overview control
Reply #4 - Dec 30th, 2009 at 1:28am
Print Post  
YES ! Grin

THANKS.

  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint