Home > database >  How to access to dynamically create the currently selected tabpage
How to access to dynamically create the currently selected tabpage

Time:10-26

Recent need a opentab/closetab dynamically create, delete tabpage, create tabpage location, name is uncertain,

Such as creating order: first tabpage, second tabpage, fourth tabpage, third tabpage,
The corresponding position from left to right:
Tabpage_1 tabpage_2, tabpage_4, tabpage_3
The corresponding contro order:
The control [1], the control [2], the control [4], the control [3]

This case from tabpage_2 switch to the selectionchanged event when the third tabpage_4 newindex=3, and
Tabpage_4 is control [4], that is, the control sequence with itself tabpage newindex 3 order from left to right position is not consistent, if removed a tabpage, sequence control and automatically adjust,

I want to get the currently selected tabpage, because when dynamic is not very good by tab_1. Tabpage_4 this name directly access, also not sure use tab_1. Control [?] Access, who know to have simple through the selectionchanged event of newindex solution to replace, thank you very much

CodePudding user response:

Global or instance to create a userobject amount
Then the TAB in the TAB controls the select sample event... Item [selectindex ()], deputy to the variable
The userobject can access within the range you set,
According to this thought,

CodePudding user response:

Yes, thank you the elder brothers, do you want to use auxiliary object preserved is less, mainly is the key word format you said can't write
"And then TAB in the TAB control the select sample event... Item [selectindex ()], deputy to the variable "
I also want to ask is similar to how to write this format tab_1. Item [newindex] (this sentence format is wrong)
  • Related