[Gambas-user] changes on HPanel

Charlie Reinl Karl.Reinl at ...2345...
Thu Jun 4 18:43:41 CEST 2015


Am Donnerstag, den 04.06.2015, 04:19 +0200 schrieb Benoît Minisini:
> Le 03/06/2015 23:56, Charlie Reinl a écrit :
> > Am Mittwoch, den 03.06.2015, 22:44 +0200 schrieb Benoît Minisini:
> >> Le 03/06/2015 22:36, Karl Reinl a écrit :
> >>> Am Mittwoch, den 03.06.2015, 22:03 +0200 schrieb Benoît Minisini:
> >>>> Le 03/06/2015 21:53, Karl Reinl a écrit :
> >>>>> Salut Benoît,
> >>>>>
> >>>>> see attached screenshot, this comes from the same executable, made 30
> >>>>> March 2015, the left side is a screenshot made at this time (rev.7017),
> >>>>> the right side made today (rev.7109) the 03 June 2015. This happens on
> >>>>> start up.
> >>>>> The parent control is a HPanel. As workaround I can make a view.W+1 and
> >>>>> view.W-1 and then my toolbar is expand. So I think on draw, the event to
> >>>>> expand is not fired.
> >>>>>
> >>>>
> >>>> The parent of control of what? Where?
> >>>>
> >>>
> >>> Salut Benoît,
> >>>
> >>> parent of the 'Toolbox'.
> >>> The Toolbox consists of a
> >>> 	Form (Expand=True)
> >>> with a	Label
> >>> and a	HPanel (AutoResize=True)
> >>> on a	Scrollview (Expand=True)
> >>> I place my buttons etc on that HPanel
> >>> The width of the 'Toolbox'-form is saved on close,
> >>> and restored at start up.
> >>>
> >>>
> >>
> >> Can you isolate your form in a little project that reproduces the bug
> >> and send me the result?
> >>
> >
> > Salut Benoît,
> >
> > here it is.
> > Went faster than I thought.
> > Start it the resize the form
> >
> 
> The value sv.ClientWidth is not necessarily accurate when the Form 
> Resize event is raised. You must use the Arrange event of the ScrollView 
> instead.
> 
> Moreover, your project fails when you use gb.gtk or gb.gtk3, because you 
> code depends on undocumented behaviours that are not the same between 
> the GUI components. So you are playing with the fire...
> 
> Regards,
> 

Salut Benoît,

for gb.gtk I have to say I dropped the idea to run this project with.
And for the undocumented behaviours, that project starts somewhere in
2005 with gambas1 was ported in 2009 to gambas2 and June 2011 to
gambas3.

But hey the bleeding edges were always repaired.   
Yes I know it should be rewritten or replaced.


-- 
Amicalement
Charlie





More information about the User mailing list