Search found 195 matches

by bill-lancaster
Sunday 19th December 2021 3:49pm
Forum: General
Topic: Scrollview question
Replies: 6
Views: 2879

Re: Scrollview question

Thanks Bruce, so negative positions for child objects is not allowed, that explains it.
Thanks again,
Bill
by bill-lancaster
Sunday 19th December 2021 1:49pm
Forum: General
Topic: Scrollview question
Replies: 6
Views: 2879

Re: Scrollview question

Tried changing the arrange settings - makes no difference. Perhaps you might try this:- Public Sub Form_Open() Dim hScrollview As New ScrollView(Me) With hScrollview .X = 10 .Y = 10 .W = 500 .H = 500 End With Dim hFrame As New Frame(hScrollview) With hFrame .X = -100 .Y = -10 .W = 200 .H = 200 End W...
by bill-lancaster
Sunday 19th December 2021 1:39pm
Forum: General
Topic: Scrollview question
Replies: 6
Views: 2879

Re: Scrollview question

Thanks Bruce
I thought I'd make it clearer with the last statement, unfortunately it should read:-
In other words, a child object to the right of the scrollview can be viewed whereas a child object to the LEFT cannot.
by bill-lancaster
Sunday 19th December 2021 11:55am
Forum: General
Topic: Scrollview question
Replies: 6
Views: 2879

Scrollview question

I've only just noticed this. If I place a control (a button say) in a scrollview container with it's .X value greater than scrollview.W then the horizontal scrollbar is initiated and the control can be brought into view. However if the .X position of the control is less than scrollview.X then the sc...
by bill-lancaster
Monday 6th December 2021 8:56am
Forum: General
Topic: inputbox width
Replies: 6
Views: 3153

Re: inputbox width

The problem occurs with QT4/5.
With GTK inputbox works properly - the width of the textbox seems to be set by the with of text as Bruce points out.
Will give inputboxw a try
by bill-lancaster
Sunday 5th December 2021 5:56pm
Forum: General
Topic: inputbox width
Replies: 6
Views: 3153

Re: inputbox width

Thanks Cogier, hadn't thought to check the help pages!
Now:-

Code: Select all

InputBox("<h1>Enter Year<h1>", "Year of the document date")
looks like:-
by bill-lancaster
Sunday 5th December 2021 10:16am
Forum: General
Topic: inputbox width
Replies: 6
Views: 3153

inputbox width

Is it just me? inputbox is now shown as quite narrow in width. For example:- InputBox("Enter description", "Document description", sVar) looks like the attached image where the prompt is just "Enter". Also the width of the box is partly affected by the length of the pro...
by bill-lancaster
Friday 8th October 2021 8:41am
Forum: General
Topic: advice needed re mysql decimal field type
Replies: 3
Views: 2471

Re: advice needed re mysql decimal field type

Thanks Quincunxian that is useful. With accounting and financial projects its important to avoid unwanted fractions of a penny. For this reason I have always used integers to represent money values, dividing by 100 to display the true value. This way there is never a problem with penny fractions. Re...
by bill-lancaster
Tuesday 5th October 2021 8:30am
Forum: General
Topic: advice needed re mysql decimal field type
Replies: 3
Views: 2471

Re: advice needed re mysql decimal field type

Create a field of type DECIMAL(6,2) using an sql statement .
This then shows as type 'float' in Gambas but is always has only 2 decimal places.
by bill-lancaster
Monday 4th October 2021 5:09pm
Forum: General
Topic: advice needed re mysql decimal field type
Replies: 3
Views: 2471

advice needed re mysql decimal field type

I have always used an integer value for a money type, then simply divide by 100 for display. This avoids fractional penny values occurring.
Although mysql supports a decimal type, I've never found a way of using it in Gambas.
Any ideas?