C1 Community
ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Inputpanel Navigatorbar

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

Top 500 Contributor
Posts 19
LimarOT Posted: Sat, Mar 7 2009 7:51 PM

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

 

Top 500 Contributor
Posts 19
LimarOT replied on Thu, Mar 12 2009 6:11 AM

anybody out there?

Top 50 Contributor
Posts 121

 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) | RSS
Contact ComponentOne: 1.800.858.2739 ©1987-2010 ComponentOne LLC All Rights Reserved.