Views - MS Basic

Status
Not open for further replies.

Robert M.

Usenet Archive
Joined
Jan 9, 2001
Messages
310
Reaction score
0
Hey There,
Is there a way to control the size and/or resize view windows using a msBasic Command / Function or cExpression? Also, if possible the location of the view window.

I thought I could call it through a cExpression but I'm not sure.

Regards

Robert
 
Hi Robert,
If you mean "move a tiled window (view) from here to here" or "make this view skinny" etc., then I don't think so. You're stuck with the WINDOW ??? and VIEW ??? commands (window arrange, window cascade, view on, view off, etc.) HTH, Simon

"Robert M." wrote:
Hey There,
Is there a way to control the size and/or resize view windows using a msBasic Command / Function or cExpression? Also, if possible the location of the view window.

I thought I could call it through a cExpression but I'm not sure.

Regards

Robert
 
Hello Robert,

Some time ago I wrote a function for setting the viewsize, maybe it'll help:

type viewSizeType
width as integer
height as integer
end type

public viewSize as viewSizeType

sub main

dim viewNum as integer

viewNum = val(command$)

if viewNum < 1 or viewNum > 8 then
foutmelding.nummer = 1201
foutmelding.omschrijving = "Geen of verkeerde parameter meegegeven" exit sub end if

mbeSendCommand "MDL LOAD VIEWCTRL"
mbeSendCommand "MDL LOAD VIEWSIZE"
mbeSendCommand "VIEWSIZE ICON"
mbeSendCommand "SELVIEW " & trim$(str$(viewNum))
mbeSetAppVariable "VIEWSIZE", "viewSizeInfo.standardSize", 10& 'custom mbeSetAppVariable "VIEWSIZE", "viewSizeInfo.width", viewSize.width mbeSetAppVariable "VIEWSIZE", "viewSizeInfo.height", viewSize.height mbeSendCommand "SELVIEW " & trim$(str$(viewNum))
mbeSendCommand "NULL"

end sub

I don't know about the location of the view.

Regards,

Michon Cirkel
devMap

Robert M. wrote:

Hey There,
Is there a way to control the size and/or resize view windows using a msBasic Command / Function or cExpression? Also, if possible the location of the view window.

I thought I could call it through a cExpression but I'm not sure.

Regards

Robert
 
Status
Not open for further replies.

Latest threads

Back
Top