newbie question 
Author Message
 newbie question

hi all,

is there a possibility to get the root window scrollable?
i have a window with a lot of frames, buttons, ...
the root window where all components exists should be dynamically ->
scrollable

any idea?

regards

Bianca Koller



Sat, 08 Mar 2003 03:00:00 GMT  
 newbie question

Quote:

> is there a possibility to get the root window scrollable?
> i have a window with a lot of frames, buttons, ...
> the root window where all components exists should be dynamically ->
> scrollable

You would just place these in a canvas that can be scrolled.
Bwidgets also has megawidgets that make this construction
easier.  You might also consider something like a tabnotebook
or other control that will better break up the display into
manageable chunks.

--
   Jeffrey Hobbs                     The Tcl Guy
   hobbs at ajubasolutions.com       Ajuba Solutions (ne Scriptics)



Sat, 08 Mar 2003 03:00:00 GMT  
 newbie question
Hi,

i have following source code, what's going wrong with it? The canvas
doesn't work correctly, does it?

proc page1 {} {
 #######################
 # Toplevel definition
 #######################
 wm minsize .  1 1
 wm overrideredirect .  0
 wm deiconify .
 wm title .  "Chrq (Page 1/2)"

 frame .c   -relief solid -bd 2
 frame .c.y -relief solid -bd 2

 ###########################
 # Create scrollable Canvas
 ###########################
 scrollbar .c.y.y -command ".c.y.c yview"
 scrollbar .c.x   -command ".c.y.c xview" -orient horiz
 canvas .c.y.c -relief flat -borderwidth 0 -scrollregion {0 0 50 20} \
        -yscrollcommand ".c.y.y set" \
        -xscrollcommand ".c.x set"
 grid .c.y.c -padx 1 -in .c.y -pady 1 -row 0 -column 0 -rowspan 1
-columnspan 1 -sticky news

 frame .c.y.c.f -relief flat -bd 0

pack .c       -side top -fill both -expand y
pack .c.x -side bottom -fill x -expand n
pack .c.y .c.y.c.f -side top -fill both -expand y
pack .c.y.y -side right  -fill y    -expand n
pack .c.y.c -side top    -fill both -expand y
update
.c.y.c create window 2 2 -window .c.y.c.f -anchor nw
set coord  [.c.y.c bbox all]
set xc [lindex $coord 2]
set yc [lindex $coord 3]
.c.y.c configure -scrollregion [list 0 0 $xc $yc]

frame .c.y.c.f.left -borderwidth 2 -relief groove
 frame .c.y.c.f.left.f1 -relief flat -bd 0
 label .c.y.c.f.left.f1.lab01 -text "From"
 entry .c.y.c.f.left.f1.ent01 -textvariable "from"

pack .c.y.c.f.left -fill y -expand n
pack .c.y.c.f.left.f1 -side top -anchor w -fill y -expand n
pack .c.y.c.f.left.f1.lab01 .c.y.c.f.left.f1.ent01 -pady 1m -padx 3m
-fill y -expand n

Quote:
}

page1


Sun, 09 Mar 2003 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Newbie Question (Was: Newbie Question...)

2. Not a newbie, but a newbie question...

3. Trivial Newbie Question (Newbie)

4. Newbie Question: Realbasic Question

5. Yet another question on system calls(newbie question)

6. A few more newbie questions..

7. Newbie question about worth of specializing in Smalltalk

8. Very Newbie questions

9. Newbie question

10. newbie questionS

11. Another Newbie Question

12. newbie question

 

 
Powered by phpBB® Forum Software