Quantcast

Re: Gambas-user Digest, Vol 128, Issue 33

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Gambas-user Digest, Vol 128, Issue 33

Marty
Tobi,

Thanks for your reply. I'm trying to embed a window running another program
into a scrollview. I've added a scrollview to the form and put the embedder
into the scrollview. This works but, as the embedder is larger than the
scrollview it extends over the borders of the scrollview. It scrolls but,
the embedder moves outside the scrollview control. It seems to me that the
embedded window should scroll within the borders of the scrollview and not
be seen outside its borders. Something is not right. What am I missing?

How do I access the attachment as it was scrubbed from your reply?

Thanks

Marty
------------------------------

Message: 4
Date: Fri, 27 Jan 2017 22:07:31 +0100
From: Tobias Boege <[hidden email]>
Subject: Re: [Gambas-user] Scrollview control coding example
To: mailing list for gambas users <[hidden email]>
Message-ID: <[hidden email]>
Content-Type: text/plain; charset="us-ascii"

On Fri, 27 Jan 2017, Martin McGlensey wrote:
> I'm looking for an example of the use of the scrollview control. Have
> spent about a week trying different approaches and web research. No luck
so far.
> Gambas help does not give enough detail.
>
> I want to embed a window into the control and scroll the contents by
> using the scrollbars. This may not be the tool to use. I'm open to
> suggestions as to how to accomplish this. An explicit example would be a
great help.
>
>  
>
> All responses are appreciated.
>

Attached is an example project which embeds 10 windows. There is really
nothing to say about it. Just create your controls inside the ScrollView and
it will add scrollbars if necessary. Anything more advanced depends on what
you want to do.

Regards,
Tobi

--
"There's an old saying: Don't change anything... ever!" -- Mr. Monk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-0.0.1.tar.gz
Type: application/octet-stream
Size: 11565 bytes
Desc: not available




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Gambas-user Digest, Vol 128, Issue 33

Gianluigi
The example of Tobias you can download it here [0]

Tobias essentially recommends that:
'---------------------------------
Public Sub Form_Open()

  Dim hFrm1 As Form1

  hFrm1 = New Form1(ScrollView1)

End
'---------------------------------

Regards

Gianluigi

[0]
http://gambas.8142.n7.nabble.com/Scrollview-control-coding-example-td58341.html

2017-01-28 15:43 GMT+01:00 Martin McGlensey <[hidden email]>:

> Tobi,
>
> Thanks for your reply. I'm trying to embed a window running another program
> into a scrollview. I've added a scrollview to the form and put the embedder
> into the scrollview. This works but, as the embedder is larger than the
> scrollview it extends over the borders of the scrollview. It scrolls but,
> the embedder moves outside the scrollview control. It seems to me that the
> embedded window should scroll within the borders of the scrollview and not
> be seen outside its borders. Something is not right. What am I missing?
>
> How do I access the attachment as it was scrubbed from your reply?
>
> Thanks
>
> Marty
> ------------------------------
>
> Message: 4
> Date: Fri, 27 Jan 2017 22:07:31 +0100
> From: Tobias Boege <[hidden email]>
> Subject: Re: [Gambas-user] Scrollview control coding example
> To: mailing list for gambas users <[hidden email]>
> Message-ID: <[hidden email]>
> Content-Type: text/plain; charset="us-ascii"
>
> On Fri, 27 Jan 2017, Martin McGlensey wrote:
> > I'm looking for an example of the use of the scrollview control. Have
> > spent about a week trying different approaches and web research. No luck
> so far.
> > Gambas help does not give enough detail.
> >
> > I want to embed a window into the control and scroll the contents by
> > using the scrollbars. This may not be the tool to use. I'm open to
> > suggestions as to how to accomplish this. An explicit example would be a
> great help.
> >
> >
> >
> > All responses are appreciated.
> >
>
> Attached is an example project which embeds 10 windows. There is really
> nothing to say about it. Just create your controls inside the ScrollView
> and
> it will add scrollbars if necessary. Anything more advanced depends on what
> you want to do.
>
> Regards,
> Tobi
>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: test-0.0.1.tar.gz
> Type: application/octet-stream
> Size: 11565 bytes
> Desc: not available
>
>
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Gambas-user mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Loading...