Navigation:  Reference > Detailed Function Description > Working with DPlot Documents >

FNDPlot_autosize

 

Previous pageReturn to chapter overviewNext page

 

DEF FNDplot_autosize(OPTIONAL REAL Timeslice,Waittime,INTEGER Keynum,Mode,INTEGER Doc_num,REAL X0,Y0,W,H)

!

! Displays, registers or unregisters DPlot diagram(s) with automatic resizing

!

! ** Note 1: A maximum of 10 documents can be handled simultaneously

! ** Note 2: Due to technical reasons this function does **NOT** work

!            for documents in high color mode !

!

!  INPUT:

!   Timeslice = Update interval in seconds. Recommended: 0.1 .. 0.01. Default: 0.1

!   Waittime  = Waiting time until routine automatically exits. 0=infinite (default)

!   Keynum    = Key number which exits the function. Default: Escape key.

!               If Keynum=0: All keystrokes exits this function (incl. special keys)

!                ** Note: Currently no special keys (F1..) are allowed

!   Mode      = 0: unregister document from autoresize routine

!               1: register document for autoresize routine

!               2: Show info about registered documents

!               3: Interactive mode (shows button which refreshes document on click)

!   Doc_num   = Document number of open DPlot document

!   X0        = X origin in percent of the screen width

!   Y0        = Y origin in percent of the screen width

!   W         = Desired Width of picture in percent of the screen width

!   H         = Desired Height of picture in percent of the screen height

 

FNDplot_autosize  automatically re-sizes up to 10 diagrams if the HTBasic window size changes.

 

Every call of Dplot_show will register the document automatically within FNDplot_autosize for automatic resizing. FNDplot _autosize stores this information during program run (so the information is lost after restarting the library). If the document is closed by FNDplot_doc_close the document will be automatically unregistered. If a document had been registered before any subsequent registration overwrites the registration info. This makes sure that FNDplot_autosize always uses the most recent document sizes.

 

Info3

Please note: Due to technical reasons the function FNDplot_autosize does only work in 256 color mode. For high color modes see Automatic resizing of diagrams
in chapter "Programmer's Reference".