Hi again. I tried what you told me to, now I can insert widgets inside the scrollable frame. But when I save and reload my project, the height and width of my "frame" reverts back to 1. This is what I did:
1. in my toplevel window, i inserted a "scrolledframe"
2. after selecting the frame in the widget tree, I adjusted its height and width
(my widget tree)
New Toplevel 1
Scrolledframe
Frame
But: button
But: button2
Entryfield
3. now, I inserted buttons and entry fields.
4. I saved and closed my project
But when I opened it, I can't see all the widgets I inserted inside the scrollable
frame.
When I looked at the attributes of the "frame" its height and width reverted back to 1
and when I adjusted its size again, I still cant use the scroll bar.
I may have missed something [ again :) ].
If you have a spare time, could you kindly have a look at my project, which I attached
....
Thanks again..
===> On 31 January 2002 01:13 am, [EMAIL PROTECTED] wrote:
It is not obvious :-) but you should select the "Frame" in the widget tree
first, because initially the widget doesn't know what the contents are, so
the frame (the "insertable" area) is 0 in size
(in the upper left corner). This explains why when you try to insert, you
click outside the "insertable" area (which is barely visible) and you get
an error.
So, select the "frame" underneath the scrollable frame, then Shift + click
in the toolbar on the widget to insert.
The widget tree looks like this:
Scrollable Frame
Frame <- select this one for inserting
CG
Note: to have the widget scrolling correctly you need to save and reload
your project. Don't worry if it doesn't scroll at first. And of course, you
need to add scrollbars too :-) You can insert the scrollable frame inside a
scrollable window to get the scrollbars.
|---------+------------------------------------->
| | jepoy |
| | <jgubalde@meridiantelekoms|
| | .com> |
| | Sent by: |
| | [EMAIL PROTECTED]|
| | ceforge.net |
| | |
| | |
| | 01/29/2002 11:36 PM |
| | |
|---------+------------------------------------->
>------------------------------------------------------------------------------------------------------------------------------|
|
|
| To: [EMAIL PROTECTED]
|
| cc:
|
| Fax to:
|
| Subject: [vtcl-user] scrolled frame widget sample
|
|
|
>------------------------------------------------------------------------------------------------------------------------------|
good day!
I would just like to ask if anybody here has a project developed in vTCL
1.6a1 that makes use of scrolled frame widget.
I tried making one, but had no luck. I wanted to create a data entry
screen,
and instead of making two separate screens I would like to make use of
scrolled frame so that i can fit in two of my entry forms.
This is what I did,
1. I created a new project and named my top level window.
2. I inserted a "scrolled frame" widget (the one with the bluegreen icon)
3. When i try to put a widget inside (a button widget) it returns a "You
Cannot Insert a Widget Here" error.
I tried modifying its attributes in the attribute editor, but to no avail.
Is
there something i missed out or am i using the wrong widget for that
purpose.
thanks in advance.......
Jeffrey Ubalde
Meridian Telekoms Inc.
url: http://www.meridiantelekoms.com
mailto:[EMAIL PROTECTED]
main.tcl
Description: application/shellscript
