Consider sample "GetBtn.prg".
Now, change line 5 from:
local oWnd, cTest := "Hello world!"local oWnd, cTest := "Hello world! "Notice that the carret and the scrolling text goes behind the button.
Patrick
local oWnd, cTest := "Hello world!"local oWnd, cTest := "Hello world! "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.
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.
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 ![]()
This seems as a possible solution: WM_NCCALCSIZE
http://msdn.microsoft.com/en-us/library/ms632634(VS.85).aspx
Google is great ![]()
Antonio Linares wrote:Google is great
http://www.gipsysoft.com/articles/BuddyButton/
You can adjust this?
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.
James Bott wrote:>Most of my gets are horizontal scrollable.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.
As a user I would hate that. You can't see all the data; you have to scroll each GET one at a time.
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.
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

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