Le 29 sept. 06 à 15:21 Soir, Bart Pietercil a écrit:

But, what do you mean by "they may see the controls, but can't use them"?
When a control is invisible, it can't be neither seen nor used.

Yes I understand

I just mean that it is OK for my user to see the control as long as they are not able to manipulate them. Since I throw a msgbox when they see the second page they cannot manipulate it because when the msgbox is closed the tabpanel.value = 0

Ok, now I understand.

If you want, you can however hide them.

For example, if you use this method:

sub SetControlsVisibleInTabPanel(PanelID as Integer,IsVisible As Boolean)
  dim c As Control
  dim i As integer
  dim r As RectControl

  for i=0 to ControlCount-1
    c=Control(i)
    if c.TabPanelIndex=PanelID then
      if c isa RectControl then
        r=RectControl(c)
        r.Visible=False
      end if
    end if
  Next
  self.Refresh
end sub

you can then use

SetControlsVisibleInTabPanel 2,false
MsgBox "So you think you are allowed to see this pane?! Haha, that's funny!"
SetControlsVisibleInTabPanel 
2,true_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to