BBjMDI::getClientX

Description

In BBj 17.0 and higher, this method returns the horizontal scroll position of the client area of the BBjMDI.

Syntax

Return Value

Method

int

getClientX()

Parameters

None.

Return Value

This method returns the horizontal scroll position of the client area of the BBjMDI.

Remarks

clientdesktopheightwidth.png

 

Example

rem ' BBjMDI::getClientX

sysgui = unt
open (sysgui)"X0"
if len(cvs(argv(1,err=*next),8)) then goto client
mdi! = bbjapi().getMDI()
mdi!.createMDIWindow(50,50,400,300,"BBjMDI",$0000000f$)
mdi!.setCallback(mdi!.ON_CLOSE,"eoj")
invoke = scall("bbj "+pgm(-1)+" - client &")
wait 1
input "Scroll the MDI window or move the client window, then hit ENTER:",*
print "BBjMDI::getClientX",mdi!.getClientX()
print "BBjMDI::getClientY",mdi!.getClientY()
print "BBjMDI::getClientWidth",mdi!.getClientWidth()
print "BBjMDI::getClientHeight",mdi!.getClientHeight()
process_events

client:
    print 'hide',
    sysgui! = bbjapi().getSysGui()
    title$ = "BBjMDI Client"
    window! = sysgui!.addWindow(rnd(250),rnd(250),250,250,title$,$00090083$,$$)
    window!.setCallback(window!.ON_CLOSE,"eoj")
    process_events

eoj:
release

See Also

BBjAPI

BBjMDI

BBjMDI::getClientHeight

BBjMDI::getDesktopWidth

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