Inputpanel Navigatorbar

WinForms

ComponentOne's WinForms controls

Inputpanel Navigatorbar

  • rated by 0 users
  • This post has 2 Replies |
  • 1 Follower
  • Hi

    Can someone please give me an example of how to change the display of navigator items during runtime...

    I need to modify the bar dpending on the diffent users entering the form...

    I have tried first setting the items = none

    then adding multilple lines depending on the user access but the bar does not add/display the items correctly... for example

    Case is = 1 

    .navCOMPONENTS.NavigatorItems = C1.Win.C1InputPanel.InputNavigatorItems.None

    .navCOMPONENTS.NavigatorItems = C1.Win.C1InputPanel.InputNavigatorItems.AddNewButton

    .navCOMPONENTS.NavigatorItems = C1.Win.C1InputPanel.InputNavigatorItems.CancelButton

    Case is = 2

    .navCOMPONENTS.NavigatorItems = C1.Win.C1InputPanel.InputNavigatorItems.None

    .navCOMPONENTS.NavigatorItems = C1.Win.C1InputPanel.InputNavigatorItems.PositionInputBox

    .navCOMPONENTS.NavigatorItems = C1.Win.C1InputPanel.InputNavigatorItems.CountLabel

    .navCOMPONENTS.NavigatorItems = C1.Win.C1InputPanel.InputNavigatorItems.MoveNextButton

    .navCOMPONENTS.NavigatorItems = C1.Win.C1InputPanel.InputNavigatorItems.MovePreviousButton

     

    Regards

    Graham

     

  • anybody out there?

  •  You may use something like this

    case 2 Then
                C1DbNavigator1.EnabledButtons = C1.Win.C1Input.NavigatorButtonFlags.Add Or C1.Win.C1Input.NavigatorButtonFlags.Refresh
                      
    case  1

      C1DbNavigator1.EnabledButtons = C1.Win.C1Input.NavigatorButtonFlags.All

Page 1 of 1 (3 items)