2010-02-03 12:23 UTC
Hi
I used Methods.odcl to show the problems with c:Methods_Main_TabControl_OnChanged and c:Methods_Main_TabControl_OnSelChanging in Tab Strip.
Did anybody already see this?
;;;**********************************************************************************************************************
(defun c:Methods_Main_TabControl_OnChanged (ItemIndex /
BottomFromBottom
RightFromRight TopFromBottom
LeftFromRight nLeft
nTop nWidth
nHeight
)
(if (= ItemIndex 1) ;_ Sliders Tab
(progn
;;;**********************************************************************************************************************
;;;My changes
(dcl_Control_SetCaption
Methods_Main_Label2
"I incapacitated Label with c:Methods_Main_TabControl_OnChanged"
)
(dcl_Control_SetEnabled Methods_Main_Label2 NIL)
;;;**********************************************************************************************************************
(dcl_Control_SetValue
Methods_Main_AngleSlider1
(atoi (dcl_Control_GetText Methods_Main_AngleBox))
)
(dcl_Control_SetValue
Methods_Main_ScrollBar1
(atoi (dcl_Control_GetText Methods_Main_VScrollLabel))
)
(dcl_Control_SetValue
Methods_Main_SliderBar1
(atoi (dcl_Control_GetText Methods_Main_VSliderLabel))
)
(dcl_Control_SetValue
Methods_Main_ScrollBar2
(atoi (dcl_Control_GetText Methods_Main_HScrollLabel))
)
(dcl_Control_SetValue
Methods_Main_SliderBar2
(atoi (dcl_Control_GetText Methods_Main_HSliderLabel))
)
(dcl_Control_SetText
Methods_Main_SpinnedBox
(itoa (dcl_Control_GetValue Methods_Main_SpinButton1))
)
)
) ;_ if
(if (= ItemIndex 2) ;_ Manipulation Tab
(PopulateManipulationTabFields)
) ;_ if
)
;;;**********************************************************************************************************************
;;;I ADDED THIS EVENT
(defun c:Methods_Main_TabControl_OnSelChanging (ItemIndex /)
(if (= ItemIndex 0) ;_ Sliders Tab
(progn
(dcl_Control_SetCaption
Methods_Main_Label2
"I incapacitated Label with c:Methods_Main_TabControl_OnSelChanging"
) ;_ end of dcl_Control_SetCaption
(dcl_Control_SetEnabled Methods_Main_Label2 NIL)
) ;_ end of progn
(progn ;_ Others
(dcl_Control_SetEnabled Methods_Main_Label2 T)
(dcl_Control_SetCaption
Methods_Main_Label2
"I enabled Label with c:Methods_Main_TabControl_OnSelChanging"
) ;_ end of dcl_Control_SetCaption
) ;_ end of progn
) ;_ end of if
) ;_ end of defun
;;;**********************************************************************************************************************
I used Methods.odcl to show the problems with c:Methods_Main_TabControl_OnChanged and c:Methods_Main_TabControl_OnSelChanging in Tab Strip.
Did anybody already see this?
;;;**********************************************************************************************************************
(defun c:Methods_Main_TabControl_OnChanged (ItemIndex /
BottomFromBottom
RightFromRight TopFromBottom
LeftFromRight nLeft
nTop nWidth
nHeight
)
(if (= ItemIndex 1) ;_ Sliders Tab
(progn
;;;**********************************************************************************************************************
;;;My changes
(dcl_Control_SetCaption
Methods_Main_Label2
"I incapacitated Label with c:Methods_Main_TabControl_OnChanged"
)
(dcl_Control_SetEnabled Methods_Main_Label2 NIL)
;;;**********************************************************************************************************************
(dcl_Control_SetValue
Methods_Main_AngleSlider1
(atoi (dcl_Control_GetText Methods_Main_AngleBox))
)
(dcl_Control_SetValue
Methods_Main_ScrollBar1
(atoi (dcl_Control_GetText Methods_Main_VScrollLabel))
)
(dcl_Control_SetValue
Methods_Main_SliderBar1
(atoi (dcl_Control_GetText Methods_Main_VSliderLabel))
)
(dcl_Control_SetValue
Methods_Main_ScrollBar2
(atoi (dcl_Control_GetText Methods_Main_HScrollLabel))
)
(dcl_Control_SetValue
Methods_Main_SliderBar2
(atoi (dcl_Control_GetText Methods_Main_HSliderLabel))
)
(dcl_Control_SetText
Methods_Main_SpinnedBox
(itoa (dcl_Control_GetValue Methods_Main_SpinButton1))
)
)
) ;_ if
(if (= ItemIndex 2) ;_ Manipulation Tab
(PopulateManipulationTabFields)
) ;_ if
)
;;;**********************************************************************************************************************
;;;I ADDED THIS EVENT
(defun c:Methods_Main_TabControl_OnSelChanging (ItemIndex /)
(if (= ItemIndex 0) ;_ Sliders Tab
(progn
(dcl_Control_SetCaption
Methods_Main_Label2
"I incapacitated Label with c:Methods_Main_TabControl_OnSelChanging"
) ;_ end of dcl_Control_SetCaption
(dcl_Control_SetEnabled Methods_Main_Label2 NIL)
) ;_ end of progn
(progn ;_ Others
(dcl_Control_SetEnabled Methods_Main_Label2 T)
(dcl_Control_SetCaption
Methods_Main_Label2
"I enabled Label with c:Methods_Main_TabControl_OnSelChanging"
) ;_ end of dcl_Control_SetCaption
) ;_ end of progn
) ;_ end of if
) ;_ end of defun
;;;**********************************************************************************************************************