Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Window not scrolling
Re: Window not scrolling [message #43136 is a reply to message #43135] Thu, 15 May 2014 17:35 Go to previous message
omari is currently offline  omari
Messages: 266
Registered: March 2010
Experienced Member
Hi,

probably you try to add a Ctrl to his child.

this is another example that use AutoScroller, without .lay file

hope it help:

#include <CtrlLib/CtrlLib.h>

using namespace Upp;

#include <AutoScroller/AutoScroller.hpp>


class AView : public ParentCtrl 
{
	DocEdit doc0, doc1, doc3, doc2;

public:
	AView()
	{
		SetRect(0, 0, 500, 600);

		Add(doc0.LeftPosZ(12, 68).TopPosZ(12, 44));
		Add(doc1.LeftPosZ(12, 164).BottomPosZ(12, 176));
		Add(doc2.RightPosZ(16, 176).TopPosZ(16, 92));
		Add(doc3.RightPosZ(12, 176).BottomPosZ(12, 92));
	}
};

class AScroller : public TopWindow
{
	AView v;
	AutoScroller<ParentCtrl> sc;
public:
	
	AScroller()
	{
		Sizeable().Zoomable();
		SetRect(0, 0, 200, 300);
		sc.EnableScroll();
		sc.AddPane(v); 
		Add(sc.SizePos());
	}
};

GUI_APP_MAIN
{
	AScroller().Run();
}


regards
omari.

[Updated on: Thu, 15 May 2014 19:15]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: FontPusher Ctrl
Next Topic: Bugfix: DocEdit, not to put back to wantfocus after clicking into it
Goto Forum:
  


Current Time: Wed May 08 00:26:34 CEST 2024

Total time taken to generate the page: 0.01972 seconds