Oops I triggered an update (HSplit and VSplit is now Splitter)
Posted: Thursday 18th March 2021 7:27pm
So all it started with me using the new html previewer in the IDE.
I wished it could split horizontally and not just vertically as it would have been handy with the doc i was editing.
I had a look at the gambas code and it was all a bit beyond me so..
So yesterday evening i went to the bugtracker and submitted a "Request" and asked Benoit nicely if it might be possible to make the previewer do that.
Then i went to off work to clean the doctors.
Half way through my shift i thought , actually wouldn't it be cool if a HSplit or VSplit could change orientation?
There'd be loads of uses for that.
So after work i had another look at gambas code but this time at the HSplit, VSplit and their parent class _Split.
I found a way and added a function Switch() to _Split
That allowed either HSplit or VSplit to change just like that
The code looked good, functionally cool.
I I explained on the bugtracker request that I'd had a better idea to make splitters swappable and submitted a merge request.......
Then in the afternoon i have been working on a roof and by the time i'd finished Benoit has agreed the Split view being able to change is a good idea but not the way i did it so he's made a better way to handle Splits with only one class instead of 3 but now HSplit and VSplit have become depreciated and there is a new split panel class called Splitter and it is Horizontal or Vertical by setting the Arrangement property.
I tested it out by using it on the gambas html previewer ......
It works a treat
I wished it could split horizontally and not just vertically as it would have been handy with the doc i was editing.
I had a look at the gambas code and it was all a bit beyond me so..
So yesterday evening i went to the bugtracker and submitted a "Request" and asked Benoit nicely if it might be possible to make the previewer do that.
Then i went to off work to clean the doctors.
Half way through my shift i thought , actually wouldn't it be cool if a HSplit or VSplit could change orientation?
There'd be loads of uses for that.
So after work i had another look at gambas code but this time at the HSplit, VSplit and their parent class _Split.
I found a way and added a function Switch() to _Split
That allowed either HSplit or VSplit to change just like that
The code looked good, functionally cool.
I I explained on the bugtracker request that I'd had a better idea to make splitters swappable and submitted a merge request.......
Then in the afternoon i have been working on a roof and by the time i'd finished Benoit has agreed the Split view being able to change is a good idea but not the way i did it so he's made a better way to handle Splits with only one class instead of 3 but now HSplit and VSplit have become depreciated and there is a new split panel class called Splitter and it is Horizontal or Vertical by setting the Arrangement property.
I tested it out by using it on the gambas html previewer ......
It works a treat