Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 13 NOV 2019 02:30:00PM mdaniel wrote:

Created a form that includes a Tab Control named TAB_1. This form/tab control contains 4 pages. The form's VSCROLL event includes the following script instructions:

Declare Subroutine Set_Property

tabValue = value + 1 ; * ←- appears the first page is 0 and not 1 and the last page is 3 and not 4.

Set_Property(@Window:'.TAB_1','VALUE',tabValue)

return 0

and the Tab Control's Click even script instructions:

Declare Subroutine Set_Property

Page = Get_Property(CtrlEntId, 'VALUE')

Set_Property(@Window,'VPOSITION', Page)

return 0

Clicking the VSCROLL object pages though the tabs correctly. However, clicking the tabs advances to the next tab. For example. After opening the form, the first tab is automatically selected. Clicking the second tab causes the second page to appear but the third tab has focus.

If the above tabValue = value (and not tabValue = value+1), clicking the tabs pages correctly but clicking the VSCROLL pages the contents correctly but the tab focus is the current page tab number less 1. Meaning, if the form is on page 3, the second tab has focus and not the third tab.

Any suggestions?

Mike Daniel

480-699-0212

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/c219a7b104799243a70088828a2bf751.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1