|
Hello,
I’ve finally finished my very first mini-plugin :) However, there are a few things which I would like to get sorted.
In the image attached you’ll see the general layout. It’s based on the Tool Development Environment layout and made using the new spanking new Text Editor Widget (TEW)
First, a little note:
I know that the TEW comes with it’s very own file/edit menu bar. It’s buggy, so I’ve got my own implementation of the common functions. For the curious, the combo box on the top right is a list of recently opened files.
The window itself is a relational view with two frames. The top frame has the script editor custom pset and the bottom frame has the standard script log pane. The two frames get divided by a movable splitter (marked B on the image).
The TEW itself has a little bar at the bottom (marked A on the image) which allows one to set it’s height.
My question is whether it would be possible to get rid of either one of the splitters so that I can resize the views by moving a single bar/splitter.
The TEW itself doesn’t support switching off A, so I suppose I’m stuck with that. I know I wouldn’t have this problem if I could find someway of capturing XSI’s output to the script log/history window and outputting the strings instead to a regular multi-text box below the TEW. Is capturing the strings sent to the script log possible?
Another way would’ve been to somehow capture the event when splitter B is moved and adjust the TEW height accordingly. Once again, I don’t think I can access that event or infact find out the new place/height of the splitter.
For those who like their code coloured with auto-completion, the scriptEditor will be released once I’m reasonably happy with it. (Don’t hold your breath)
Any help/ideas appreciated,
Cheers
Slightly off topic: In an ideal world I would want to be able to set the TEWs tab size. It’s currently set to 8, I usually work with 3. Also, I wish there was a way to access the selected text in a TEW (to run as code).
| Attachment
|
|
|