You are here: PSPad forum > English discussion forum > scripting reference - query window split state

scripting reference - query window split state

#1 scripting reference - query window split state

Posted by: cory | Date: 2016-02-19 17:08 | IP: IP Logged

Is there a way to tell via scripting if a window is already split
(horizontal/vertical)? I've read through the scripting reference but haven't
found this function.

I wrote an extension that finds and navigates to a function definition and I'd
like this in a split window instead of jumping away from my current selection.
Currently, my dirty workaround:

If the match is in the same file:
a. set horizontal split (this undos vertical split if set)
b. set vertical split (this undos horizontal split if set or sets vertical
c. move active window to right side of vertical split
d. set active line in this editor object

else : match is in a different file
a. set other file as active
b. navigate to file

Options: Reply | Quote | Up ^


#2 Re: scripting reference - query window split state

Posted by: pspad | Date: 2016-03-08 13:12 | IP: IP Logged

Hello

In the next build will be added function spliWindow([SplitType]): SplitType
SplitType:
0 - isn't splitted
1 - split vertically
2 - split horizontaly

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR