Ed Leafe wrote:
> Generally, a paged control is best for displaying different controls
> in the same screen area. Since you want to control which controls are
> visible programmatically, the dPageFrameNoTabs (probably our clunkiest-
> named class) is your best choice.
>
So now I have a DropdownList with 3 values set to ValueMode = position.
And the following:
--------------------------------------------------------------------------------
def onInteractiveChange(self, evt):
dictValuePage = {0:{'Pagina':self.Form.pgDateTextBox,
'Control':self.Form.dDateTextBox}
, 1:{'Pagina':self.Form.pgEditBox,
'Control':self.Form.dEditBox}
, 2:{'Pagina':self.Form.pgListBox,
'Control':self.Form.dListBox}
}
self.Form.PgFrmOMs.SelectedPage = dictValuePage[self.Value]['Pagina']
dictValuePage[self.Value]['Control'].setFocus()
--------------------------------------------------------------------------------
And besides it the PageFrameNoTabs with three Pages with different
controls in them. Now when I run it and select a value in the
DropdownList I keep seeing Page 0. And the PageFrameNoTabs does not grow
to accomodate the controls in the pages (Page 0 has a Label and a
DateTextBox and the DateTextBox is partially hidden whilst the page has
scroll bars).
Any hints?
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]