Tab Strip - Start on specific tab

Started by Oak3s, August 31, 2010, 06:29:11 PM

Previous topic - Next topic

Oak3s

I am developing a block insertion tool utilizing the tab strip. I would like to have the option of loading to a specific tab rather than the first tab. The idea is to have a tool bar button with flyouts. The flyouts will be the different tabs. Currently I have the button working but it goes to the first tab only. How do I initialize to a different tab?

(I posted this as a different topic from my last Tab Strip for future reference)

Fred Tomke

Hi, can you post a simple sample, please? I cannot imagine quite well what you want to do.
If you want to show a specific tab on startup use SetCurSel in OnInitialize event.
Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

BazzaCAD

ya like Fred said, do something like this...

Code (autolisp) Select

(defun c:Untitled_Form1_OnInitialize (/)
  (dcl_TabStrip_SetCurSel Untitled_Form1_TabStrip1 2);; <-- load the 3rd tab page
)
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom