Home » U++ Library support » U++ Widgets - General questions or Mixed problems » scrolling without Frame and wrapping Ctrl?
scrolling without Frame and wrapping Ctrl? [message #3954] |
Tue, 11 July 2006 15:02 |
fallingdutch
Messages: 258 Registered: July 2006
|
Experienced Member |
|
|
I want something like this:
----------
| |
|--- |
| | |
|--- |
| |
----------
and the inner rectangle should be scrollable, so i need to set the rectangle of it using SetRect(), this means i need either a Frame around it or a wrapping Ctrl, or is there another possibility to do this? eg a SetCtrlPositionSize() or anything similar.
thanks,
Bas
[Updated on: Tue, 11 July 2006 15:03] Report message to a moderator
|
|
|
|
|
Re: scrolling without Frame and wrapping Ctrl? [message #3960 is a reply to message #3957] |
Tue, 11 July 2006 17:54 |
|
fudadmin
Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
|
Ultimate Contributor Administrator |
|
|
fallingdutch wrote on Tue, 11 July 2006 14:28 | Hi, fudamin,
I want to be able to put different Ctrls inside the non scroleable Area.
Yes, I had a look at your scrolleable area, but I dont want Scrollbars and with Scrollbars you put a Frame around the scrolling area.
thanks for your answer, Bas
|
ScrollArea::ScrollArea()
{
SetWorkSize(Size(1000,1000));
AddFrame(sc);
Add(work);
sc.HideX(); //
// sc.HideY(); // ADDED uncomment to hide scrollbars...
sc.WhenScroll=THISBACK(Scroll);
// AddFrame(ThinOutsetFrame());
// AddFrame(ThinInsetFrame()); //comment if you don't need
}
Use HideX and HideY accordingly if you don't need scrollbars.
You can remove my added frames by commenting them at initialization and , as I remember, it is possible to remove other frames with RemoveFrame(...).
But what is behind the idea: scrollable area without the scrollbars?
|
|
|
|
|
|
|
Goto Forum:
Current Time: Mon Jun 10 13:48:50 CEST 2024
Total time taken to generate the page: 0.02580 seconds
|