OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Oak3s on August 31, 2010, 06:29:11 PM

Title: Tab Strip - Start on specific tab
Post by: Oak3s on August 31, 2010, 06:29:11 PM
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)
Title: Re: Tab Strip - Start on specific tab
Post by: Fred Tomke on September 01, 2010, 03:00:28 AM
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
Title: Re: Tab Strip - Start on specific tab
Post by: BazzaCAD on September 01, 2010, 10:18:11 AM
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
)