Q3 - ScrollBars

General help with the Ecere Cross Platform GUI toolkit: Window, common controls, events, etc.
Help with the 2D Graphics library: Surface, Display, Bitmap, Font and others.
D.Bane
Posts: 78
Joined: Thu Jul 29, 2010 2:51 pm

Re: Q3 - ScrollBars

Post by D.Bane »

Haha :)

The last two properties were just what I needed :)

When a window opened it would not show everything as the scrollbar would not get properly drawn (not a bug in Ecere). Now I wanted to answer to your post and tried the

Code: Select all

ScrollArea = null;
and it returned great results (just what I needed actually), then I added the

Code: Select all

modifyVirtualArea = true;
and it is what I wanted.

Because of some reason it would not show the text, then it would hide it and then show it again...Then it would not hide it if the mouse was outside the window when it appears or it would not show it if the window was inside...

Well if anyone else has these problems the answer is simple and it goes like this:

Code: Select all

modifyVirtualArea = true; //set it up where you set the rest of the class properties
parent.scrollArea = null;// set it up where you have some action that changes the size of the child
//It also works if you set it up like scrollArea=null; if you are doing it from the window that you want to update the scrollBars.
If you have something like the next few lines in the code nope, than that is most probably causing the problem...you should not set both of them up like Jerome said

Code: Select all

 
clientSize = 20; //some random number was used
scrollArea = 20; //some random number was used
 
Thank you Jerome,
All the best

D.Bane.
No army is to big, if the heart is beating strong.
There's no bad luck, it's just easier to blame someone else.
Post Reply