ErosOlmi
18-01-2008, 19:35
Hi all,
here it is another experiment I'm working on: Splitter control.
As soon as UI scripts get complex with many controls on the window, a Splitter control can save a lot of headhakes. So here it is the point I'm so far with this control.
There are still many problems to solve but it seems not bad.
Known problems: resizing, refreshing, borders.
We will see. Let me know what do you think.
Ciao
Eros
UPDATES:
2008.01.20: attached file updated. Improved UI module to better interact with splitter control.
Improved script example
2008.01.21: attached file updated. Implemented the following functions:
Splitter_SetSplitPosPct set the position of splitter bar using a percentage
Splitter_SetBarSize set the size of the splitter bar
Splitter_SetPaneMinSize set the minimum size of panes
See example for usage.
Improved script example
UPDATES:
Attached file removed. Functionality now present in current thinBasic preview version 1.6.0.1
here it is another experiment I'm working on: Splitter control.
As soon as UI scripts get complex with many controls on the window, a Splitter control can save a lot of headhakes. So here it is the point I'm so far with this control.
There are still many problems to solve but it seems not bad.
Known problems: resizing, refreshing, borders.
We will see. Let me know what do you think.
Ciao
Eros
UPDATES:
2008.01.20: attached file updated. Improved UI module to better interact with splitter control.
Improved script example
2008.01.21: attached file updated. Implemented the following functions:
Splitter_SetSplitPosPct set the position of splitter bar using a percentage
Splitter_SetBarSize set the size of the splitter bar
Splitter_SetPaneMinSize set the minimum size of panes
See example for usage.
Improved script example
UPDATES:
Attached file removed. Functionality now present in current thinBasic preview version 1.6.0.1