Page 1 of 1

hpwUtility - Tab Control

PostPosted: Sun Oct 30, 2011 11:00 am
by sghosh
To Hans Peter:
While using hpwUtility-(Tab Control), I came across in a position to add Tab pages dynamically(At Runtime). Is there any such way by which tabs may be constructed with supplied string?
As 'hpwTabAppend' ... :lol:


PostPosted: Sun Oct 30, 2011 6:38 pm
by sghosh
Sorry, Somehow figured out they way of implementing it. Saving tab names to a file, then a fileread and storing the value in a variable and using hpwTabControlSetTabList.
Code: Select all
InputBox "New Tab" "Enter new tab caption" "[TabIns]"
Setvar "[Tabs]" "[Tabs][#13][TabIns]"
hpwTabControlSetTabList "Rectangle1" "[Tabs]" "" "" "" "Rectangle1" [Tabs]" "" "" ""

Thank you

PostPosted: Sun Oct 30, 2011 11:54 pm
by HPW

Glad you find a solution for your problem.
Not sure why you need a file.
You can use a variable with the list of tabs.