FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Button in GET problem
Posts: 246
Joined: Sat Mar 03, 2007 08:42 PM
Button in GET problem
Posted: Sat Aug 23, 2008 10:53 AM
Hello,

Consider sample "GetBtn.prg".
Now, change line 5 from:
local oWnd, cTest := "Hello world!"
to
local oWnd, cTest := "Hello world!                                        "
Notice that cTest is now longer. This makes that cTest will scroll in the GET.

Notice that the carret and the scrolling text goes behind the button.

Patrick
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Button in GET problem
Posted: Sat Aug 23, 2008 11:09 AM

Patrick,

The BUTTON is created as a child control of the GET, so you have to give the GET enough width so the text and the button don't overlay.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 246
Joined: Sat Mar 03, 2007 08:42 PM
Button in GET problem
Posted: Sat Aug 23, 2008 11:13 AM
Antonio Linares wrote:The BUTTON is created as a child control of the GET, so you have to give the GET enough width so the text and the button don't overlay.
So you can only use a button in a GET when the text its in the GET? Most of my gets are horizontal scrollable.

Like for example a customer name, it can be 10 char's or 87. So, most of the width's of the GET's are smaller than the text that can fit them and thus almost all of them are horizontal scrollable.

Patrick
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Button in GET problem
Posted: Sat Aug 23, 2008 11:18 AM

Patrick,

The only way to get such behavior would be to find how to reduce the GET client area used to paint the text (if possible!).

Lets google for it :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Button in GET problem
Posted: Sat Aug 23, 2008 12:03 PM

This seems as a possible solution: WM_NCCALCSIZE

http://msdn.microsoft.com/en-us/library/ms632634(VS.85).aspx

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Button in GET problem
Posted: Sat Aug 23, 2008 12:06 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 246
Joined: Sat Mar 03, 2007 08:42 PM
Button in GET problem
Posted: Sat Aug 23, 2008 12:30 PM
Antonio Linares wrote:Google is great :-)
http://www.gipsysoft.com/articles/BuddyButton/

Haha, great! Just what we need! :-)

Patrick
Posts: 344
Joined: Tue Oct 11, 2005 11:33 AM
Button in GET problem
Posted: Sat Aug 23, 2008 12:42 PM
Hello Antonio,



You can adjust this?

Thank´s

Rossine.
Obrigado, Regards, Saludos



Rossine.



Harbour and Harbour++
Posts: 246
Joined: Sat Mar 03, 2007 08:42 PM
Button in GET problem
Posted: Sat Aug 23, 2008 12:45 PM
Hey Rossine,

You can adjust this?

This is exact what we are talking about here. :-)

Patrick
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Button in GET problem
Posted: Sat Aug 23, 2008 04:31 PM
Patrick,

>Most of my gets are horizontal scrollable.

As a user I would hate that. You can't see all the data; you have to scroll each GET one at a time.

Here is what Alan Cooper has to say about horizontal scrolling, in his book "About Face The Essentials of User Interaction Design." He is talking about listboxes, but I think the same applies to edit boxes.

Listboxes can also be made to scroll horizontally. This feature allows the programmer to put extra long text into the listbox with a minimum of effort. It offers nothing to the user. Scrolling a list of text horizontally is a terrible thing, and it should never ever need to be done. ... The purpose of computers is to eliminate strain from the lives of humans.


It sounds like you are trying to put too many GETs on the same screen. Perhaps you could solve this using tabs and splitting them up into different tab panes. If you display each GET fully, and it takes two tabs, then the user can see all the data with only one click. The current design would require dozens of clicks and arrow movements to see all the data.

Regards,
James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 246
Joined: Sat Mar 03, 2007 08:42 PM
Button in GET problem
Posted: Sat Aug 23, 2008 06:58 PM
Hello James,

James Bott wrote:>Most of my gets are horizontal scrollable.
As a user I would hate that. You can't see all the data; you have to scroll each GET one at a time.
I disagree. Lets say you have an address line on your form. You never know how many characters you need for a address line. So, you make the GET that holds the address line extra wide? Hmm.. design-wise? Not a good decision I think.

Anyway. If you want to use horizontal scrollable GET's or not, I still think the Caret of the GET should NOT go behind the button in the GET.

:-)

Patrick
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Button in GET problem
Posted: Sat Aug 23, 2008 07:18 PM

Patrick,

We are already working on it to provide a fix asap using those urls info :-)

James advise is very clever, but we understand that the GET has to properly work on those circunstances too.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Button in GET problem
Posted: Sat Aug 23, 2008 07:18 PM

Patrick:

I use the BtnGet class and that problem I have solved with the MULTI-LINE property YES

Pls, try this, I hope this can help you.

Best regards

SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Button in GET problem
Posted: Sat Aug 23, 2008 08:58 PM
Patrick,

>I disagree. Lets say you have an address line on your form. You never know how many characters you need for a address line. So, you make the GET that holds the address line extra wide? Hmm.. design-wise? Not a good decision I think.

Well, it doesn't really matter what you or I think (as programmers), it matters what the users think. Your answer reiterates what Alan Cooper said, that it is easier for the programmer but not for the user. You seem to only be looking at it from an ease of programming view.

I have never had a problem making an address line wide enough. Also, I always add an extra line too.



Have you ever seen another program with a screenful of scrolling GETs?

As a user I might tolerate one or two scrolling GETs but not a whole screenful of them.

Why don't you ask some of your users what they think?

Regards,
James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Button in GET problem
Posted: Sat Aug 23, 2008 09:43 PM

Hello,
I have the same design as James.
But many times users ask why the line I that long and you can’t fill in more than a certain number of characters.
Sure you have to make the line a bit longer. There is a difference if there are many W’s or M’s or only I’s in a name.
But reading the thread I thought why don’t one make a standard length and in stead of scrolling a dynamical resize of the get?
I will try this.

Regards,
Otto