I need to keep the spacing even so move numbers align up on the right and the distance from Player1's move to Player2's move align up on the left
Last edited by jmsrickland; Feb 28th, 2014 at 02:04 PM.
Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.
if you are using a fixed width font, you can just count the characters and pad with spaces
if you are using proportional fonts (as i would be), you need to set a form or picturebox to the same font (name and size), then you can calculate the text widths using the textwidth property, and again pad with spaces
alternatively you can try sendmessage API with EMTABSTOPS or using other drawtext APIs
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case. Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
I kind of thought there is a Tab statement that puts the text at certain columns
Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.
that is why you set tabstop positions using sendmessage
there will be many examples, if you do not find one i can dig one up
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case. Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
How then to scroll each textbox with only one vertical scrollbar?
Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.
You could also use a grid, and make the cell borders invisible
As long as I can scroll the cells
Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.
@jmsrickland, Why use a text box and not a listview, etc that has columns.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu. https://get.cryptobrowser.site/30/4111672
Yup.
If there are more rows than there are visible, then a scroll bar appears, and the user can scroll.
I have not used the Flexgrid for years, as I use the free SGrid 2 instead
It would be quicker for you (getting up to speed) to use the Flexgrid.
Yell out if you wish me to refresh (my 72 year old) memory on that grid.
Rob
PS Anyone familiar with the flexgrid can you assure us, that the horizontal and vertical rows/columns borders can be invisible ? ?
Last edited by Bobbles; Mar 10th, 2014 at 02:52 AM.
Reason: Can flexgrid cell borders be invisible ?
I am attaching an example demonstrating the flexgrid as a scrollable, no cell borders, list
I am rusty on flexgrid so have not attempted to play with formatting, spacing, Font selection, etc.
Not yet fully matching your needs. But I am sure that the flexgrid can be configured to get the exact spacing, etc that you will require.
Yell out if you wish further help.
Rob