BBjMDI::getArrangeModal


Description

In BBj 9.0 and higher, this method returns whether the BBjMDI auto-arrange functions affect modal windows.

Syntax

Return Value

Method

boolean

getArrangeModal()

Parameters

None.

Return Value

Returns whether the MDI auto-arrange functions affect modal windows.

Remarks

The default behavior is for modal windows to not be affected by the MDI auto-arrange functions.

Example

rem ' setArrangeModal

if num(argv(1,err=*next)) then goto modal

open (unt)"X0"

mdi! = bbjapi().getMDI()

mdi!.createMDIWindow(50,50,400,300,"MDI")

gosub setTitle

for i=1 to 8

  x = scall("bbj -tT2 "+pgm(-1)+" - "+str(i)+"&")

next i

menubar! = mdi!.addMenuBar()

menu! = menubar!.addMenu(100,"File")

arrangeModal! = menu!.addMenuItem(101,"Arrange Modal",1,0)

arrangeModal!.setCallback(arrangeModal!.ON_MENU_ITEM_SELECT,"arrangeModal")

mdi!.enableMDIWindowMenu()

arrangeModal = mdi!.getArrangeModal()

mdi!.setCallback(mdi!.ON_CLOSE,"eoj")

process_events

eoj:

release

arrangeModal:

event! = bbjapi().getSysGui().getLastEvent()

mdi!.setArrangeModal(event!.isSelected())

setTitle:

title$ = "MDI (arrangeModal "+Boolean.toString(mdi!.getArrangeModal())+")"

mdi!.setTitle(title$)

return

rem ' This is the client window

modal:

window = num(argv(1))

sysgui = unt

open (sysgui)"X0"

sysgui! = bbjapi().getSysGui()

window! = sysgui!.addWindow(window*10,window*10,100,100,str(window),$00090003$)

window!.setCallback(window!.ON_CLOSE,"done")

process_events

done:

release

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

BBjMDI

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.