Prev: TCOM error
Next: Gridplus2 definning keyboard event
From: jamshed on 1 Feb 2010 08:19 Hi, My app uses a notebook widget with multiple pages. I would like to call a proc when specific notebook page is selected. Any hints as to how i might achieve this? Thanks in advance.
From: Adrian Davis on 1 Feb 2010 08:56 > My app uses a notebook widget with multiple pages. I would like to > call a proc when specific notebook page is selected. Any hints as to > how i might achieve this? Sorry, I seem to have missed this out when doing the GRIDPLUS2 documentation. The GRIDPLUS2 "notebook" has a "-command" option. For example:- gridplus notebook .mynotebook -command myproc { "Page 1" .mypage1 "Page 2" .mypage2 "Page 3" .mypage3 } Two parameters are passed to the specified command - The notebook tab ID and the text displayed. For example:- If "myproc" is defined as... proc myproc {id text} { puts "ID=$id" puts "TEXT=$text" } ....Selecting the "Page 2" tab will display the following:- ID=1 TEXT=Page 2 NOTE: The tab IDs are indexed from zero. I hope this helps. I'll update the GRIDPLUS2 documentation accordingly. Best Regards, =Adrian=
|
Pages: 1 Prev: TCOM error Next: Gridplus2 definning keyboard event |