473,320 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Putting cursor at end of EditBox

Hi!
I couldn't find a better Newsgroup on this server, so I'll ask here
and hope for the best. <grin>

I'm using MSDevStudio and VisualC++ 6.0 on Win2K.

I have a small GUI program (Dialog) that uses (among other things)
an EditBox. I put text (drive+dirpath+filespec) in that box with
SetDlgItemText(), but the text is longer than the EditBox's visible
area. No problem: I made it selectable so the user could click in
the box and scroll left/right with the arrow keys to see the entire
string.

But that's kind of clunky. The entire string is important, but the
actual FILEname is the most important part. Thus, I would like the
box to initially display the LEFT-HAND end of that string so that
the filename is immediately visible.

I'm sure there's a way to do it; I dimly recall it being discussed
in an MSAccess group for Access controls.

So, (without MSAccess involvement) how do I make that text string
be displayed so the LEFT end is visible?? Probably put the cursor
in the box and at that end of the string, but I don't know how to
do that.

Hints/help, please? :)

Thanks!
Mike
Jul 19 '05 #1
6 4547

"MPBroida" <michael.p.broida@boeing_oops.com> wrote in message
news:3F96FA2C.AB27370A@boeing_oops.com...
Hi!
I couldn't find a better Newsgroup on this server,
Microsoft has a public server which has groups for
Windows issues, which is what your query is about:

msnews.microsoft.com

Find group microsoft.public.win32.programmer.ui
so I'll ask here
and hope for the best. <grin>


Purpose of comp.lang.c++:

http://www.slack.net/~shiva/welcome.txt

-Mike
Jul 19 '05 #2
Mike Wahler wrote:

"MPBroida" wrote:

Hi!
I couldn't find a better Newsgroup on this server,
Microsoft has a public server which has groups for
Windows issues, which is what your query is about:

msnews.microsoft.com

Find group microsoft.public.win32.programmer.ui


Thanks for the info, but I can't get to that newsserver
from here; firewalls/proxies/etc here don't allow it.
I'll try to convince our local newsserver admin to echo/
mirror (whatever the term is) that group here, but I doubt
they will do it.
Purpose of comp.lang.c++:

http://www.slack.net/~shiva/welcome.txt


Thanks for the info. :)

Mike
Jul 19 '05 #3
Mike Wahler wrote:
"MPBroida" <michael.p.broida@boeing_oops.com> wrote in message
news:3F96FA2C.AB27370A@boeing_oops.com...
Hi!
I couldn't find a better Newsgroup on this server,

Microsoft has a public server which has groups for
Windows issues, which is what your query is about:

msnews.microsoft.com

Find group microsoft.public.win32.programmer.ui


In my experience these groups are a joke. They are basically dead,
nothing happens there.

Try comp.os.ms-windows.programmer.* where I still got no answers, but at
least there is a decent amount of traffic.

NR

Jul 19 '05 #4
Noah Roberts wrote:

Mike Wahler wrote:
"MPBroida" wrote in message
news:3F96FA2C.AB27370A@boeing_oops.com...
Hi!
I couldn't find a better Newsgroup on this server,

Microsoft has a public server which has groups for
Windows issues, which is what your query is about:

msnews.microsoft.com

Find group microsoft.public.win32.programmer.ui


In my experience these groups are a joke. They are basically dead,
nothing happens there.

Try comp.os.ms-windows.programmer.* where I still got no answers, but at
least there is a decent amount of traffic.


Thanks. I found comp.os.ms-windows.programmer.win32
and will post there in a couple minutes. :)

Mike
Jul 19 '05 #5
"Noah Roberts" <nr******@dontemailme.com> wrote in message
news:vp************@corp.supernews.com
Mike Wahler wrote:
"MPBroida" <michael.p.broida@boeing_oops.com> wrote in message
news:3F96FA2C.AB27370A@boeing_oops.com...
Hi!
I couldn't find a better Newsgroup on this server,

Microsoft has a public server which has groups for
Windows issues, which is what your query is about:

msnews.microsoft.com

Find group microsoft.public.win32.programmer.ui


In my experience these groups are a joke. They are basically dead,
nothing happens there.

Try comp.os.ms-windows.programmer.* where I still got no answers, but
at least there is a decent amount of traffic.

NR


My experience is very different. There are hundreds of newsgroups on the MS
server, some of them very specialised. Microsoft evidently has the same
philosophy to creating newsgroups as it has to adding features to its
products. Naturally, some of these don't have much traffic but the less
specialised newsgroups have plenty, e.g.,

microsoft.public.vc.language
microsoft.public.vc.mfc

The suggested newsgroup

microsoft.public.win32.programmer.ui

is more specialised but still has a respectable amount of traffic and is a
good source for help.
--
John Carson
1. To reply to email address, remove donald
2. Don't reply to email address (post here instead)

Jul 19 '05 #6
MPBroida wrote:
I have a small GUI program (Dialog) that uses (among other things)
an EditBox...I would like the
box to initially display the LEFT-HAND end of that string


Use CEdit::SetSel. Check MSDN for details.

sh************@computer.org (remove caps for e-mail)

Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: ScooterMX | last post by:
I have a page that is simply a password field. Doesn't scroll, do anything other than accept a password, and has a submit button. How can I automatically place the cursor in this password field...
6
by: dedejavu | last post by:
Hi all you JS experts, Is there any way to put a blinking ibeam cursor in middle of td text - the same way it would blink if I clicked in the middle of the text in a text input? To further...
2
by: Xam | last post by:
Hello Everybody Can you let me know of a javascript/dom routine that will automatically put the flashing cursor in the first text box in my form so that it is ready for entry rather than the...
0
by: lukasz | last post by:
I'm looking for ideas how to implement a tool window with several buttons which, once clicked, should paste certain character in to the active EditBox in an other window of my application. The...
6
by: Sami | last post by:
Problem: Social Security number being used in a database. First problem is that it will not permit numbers beginning in zero to be entered - it sees it as a null or empty space from what I can...
22
by: DraguVaso | last post by:
Hi, For my application I need the following behavior: When I press F4 the cursor has to move to the next line in my multiline textbox which begins with "0". Finding lines starting with 0 isn't...
10
by: Just Me | last post by:
Does Me.Cursor.Current=Cursors.WaitCursor set the current property of Me.Cursor to Cursors.WaitCursor And Me.Cursor.Current=Cursors.Default set the Me.Current property to something (default)...
3
by: durgaprasad0512 | last post by:
Dear all, I am a strange programmer to VC++. I have a problem to highlight the text in the editbox when dialog box displayed. Please do me a favor... Thanks...
3
vavc1980
by: vavc1980 | last post by:
Hello, I have a form in Access that imports some information from Excel and text files. I'm displaying the progress in an editbox, one detail in each line, however, if the content of the editbox...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.