IsControlLoaded  Method

Description         The IsControlLoaded method returns true, when the BiDisp control created completely, otherwise returns false.

Syntax                 RetVal = [BIDisp.] IsControlLoaded

Returns               RetVal                    Boolean           The RetVal is TRUE, if the BiDisp control created completely, otherwise FALSE.

Remarks             You can use this method for determining if the control already created. For example you can use this method in javascript. You can avoid that some functions try to manipulate the control before the BiDisp control is created completely.

                             For example:

 

                             function OnLoad()

                             {

 

if (!document || document.readyState != 'complete' ||

!BIDISP.IsControlLoaded())

                                    {

                                                var t = setTimeout('OnLoad()', 500);

                                    }

                                    else

                                    {

                                                var hDib = BITIFF.LoadTiffIntoDIB("c:\\test.tif", 0, false);

                                                BIDISP.hDib = hDib;

                                                BIDISP.ScaleMode = 5;

                                                BIDISP.ScrollBars = 3;

                                                BIDISP.ZoomWithKeyboard=1;

                                                BIDISP.Zoom = 1;

                                    }

                             }

                             <body onLoad="javascript:OnLoad()">

See Also