Unwanted scrollers

Post Reply
User avatar
DGDanforth
Posts: 1061
Joined: Tue Sep 17, 2013 1:16 am
Location: Palo Alto, California, USA
Contact:

Unwanted scrollers

Post by DGDanforth »

I do not like the way BlackBox handles scrollers!

I was just stopped cold when some of my code suddenly generated traps.
Those traps said that I did not have a frame associated with my view.

Well, it turns out that BlackBox in its great wisdom put a wrapper around my view and added scrollers.
I did not want either. So when I accessed the pointer to my view I was not getting the pointer
that I had originally created for the view. Somewhere, someone, substituted the wrapper pointer.

I find that to be a very, very, bad design. If I want a view to be 2x2 pixels I should be allowed to create it
without BB restricting its size or putting scrollers on it.

Discussion please!!!

-Doug
Zinn
Posts: 476
Joined: Tue Mar 25, 2014 5:56 pm
Location: Frankfurt am Main
Contact:

Re: Unwanted scrollers

Post by Zinn »

Dear Doug,

I also have a problem with the scrollers.
My procedure ShowSelection
TextControllers.SetSelection(md, start, stop);
TextViews.ShowRange(md, start, stop, TextViews.any);
select and displays a part of my text,
but it does not update the position of the scroller on the right side.
I don't know how to do that.

- Helmut
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

Re: Unwanted scrollers

Post by Josef Templ »

connecting the BB views to the underlying Windows graphics primitives is done
by using so-called frames, if I remember correctly.
This is a very subtle part of BB and cannot be changed easily.
I don't know much about scrollers and unless a complete code example is shown it is
hard to go into the details of Doug's problem.
Typically, it is crucial to start with the right code examples because
it is hard to get the required info from the docu as it is spread
across multiple documents.

The discussion could be put to the community forum and may be the
experts from OberonCore can help to clarify things.

A change in the design of the view-frame association is clearly out of scope for us.

- Josef
Post Reply