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 30 MAR 2007 03:33:17PM Bruce Cameron wrote:

OI 7.2.2

If in the click event of a tab control I have

val=@CtrlEntID-]Value

begin case

case val
 .
 .

end case

@@Window-]vpostion=val

return 0

This works, but if I set @@window-]vpostion from another control it will page but the active tab is not in the fore front (ie. not selected) with the dotted box around the text.

How can I activate that?

Also, to Rev support. I did a search on "Tab" here in the works section. The results were supposed to be BY DATE but my results

were not sorted at all.

For questions like this where the tab control is relatively new having the most recent posts about the search subject at the top would help to weed out.

Thanks


At 30 MAR 2007 04:23PM Bob Carten wrote:

If I set @@window-]vpostion from another control it will page but the active tab is not in the fore front (ie. not selected) with the dotted box around the text.

In the VSCSCROLL Event put

.TabControl_1-]Value=value


At 30 MAR 2007 05:17PM Bruce Cameron wrote:

Hi Bob,

Thanks, I'm not sure about the VSCSCROLL event but I

added

.tabcontrol_1-]value=x

to the click event I called from the tabcontrol and that

did the trick.

Thanks!


At 30 MAR 2007 05:19PM Bruce Cameron wrote:

Another question. Is it possible to change the text color for each tab in a tab control?


At 02 APR 2007 11:24AM S Mecklenberg wrote:

Bruce, last i heard we still cannot assigned specific color to each individual tab, but you can assign a bitmap to each tab and you could create an image that just hues the background to the color you want.

cluckie work-around - but its one way.


At 03 APR 2007 11:06AM Bruce Cameron wrote:

Thanks, not a bad idea. I've used the bitmaps although if not using the first tab they move to the first tab.


At 03 APR 2007 12:32PM S Mecklenberg wrote:

true - but i handle that issue with:

pageTabValue=Get_Property(window:'.TAB_CONTROL1','VALUE')

stat=Set_Property(window,'VPOSITION',pageTabValue)

depending on which tab i want the user on, i do some validation with it as well, don't know if this will work with your order of tabs, but i have been able to smooth it out a bit by playing with it.

View this thread on the Works forum...

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