473,569 Members | 2,555 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4559

"MPBroida" <michael.p.broi da@boeing_oops. com> wrote in message
news:3F96FA2C.A B27370A@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.microsof t.com

Find group microsoft.publi c.win32.program mer.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.microsof t.com

Find group microsoft.publi c.win32.program mer.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.broi da@boeing_oops. com> wrote in message
news:3F96FA2C.A B27370A@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.microsof t.com

Find group microsoft.publi c.win32.program mer.ui


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

Try comp.os.ms-windows.program mer.* 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.A B27370A@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.microsof t.com

Find group microsoft.publi c.win32.program mer.ui


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

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


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

Mike
Jul 19 '05 #5
"Noah Roberts" <nr******@donte mailme.com> wrote in message
news:vp******** ****@corp.super news.com
Mike Wahler wrote:
"MPBroida" <michael.p.broi da@boeing_oops. com> wrote in message
news:3F96FA2C.A B27370A@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.microsof t.com

Find group microsoft.publi c.win32.program mer.ui


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

Try comp.os.ms-windows.program mer.* 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.publi c.vc.language
microsoft.publi c.vc.mfc

The suggested newsgroup

microsoft.publi c.win32.program mer.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
1879
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 when the page loads? I think it would be really nice to just have to type the password and hit enter.
6
3306
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 explain, I can highlight any text on an HTML page by dragging, but if I just click I get no ibeam cursor (obviously because I am not supposed to be able...
2
5876
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 user having to click into the first textbox with their mouse. Please note that my forms are created dynamically so I won't know the given name of...
0
334
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 problem is to know which EditBox was focused before the focus went to the tool window, and then paste the character to the EditBox, but one apparent...
6
4803
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 tell. Next, foreign students have & as the initial part of their SSN. How to do this?? Finally, how do I force the cursor to the far left of...
22
4492
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 that difficult, but to find the next line is more difficult. For exemple: if my cursor is on line 200, it has to start searching on line 201, and...
10
17317
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) stored in Me.Cursor. Or is Cursors.Default some process wide cursor shape? What is a correct statement?
3
2038
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 for all inadvance. Regards, Durga.
3
2481
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 (lines) exceeds the height of the control, I'm not able to see the progress unless I use the scroll bar (manually), Is there any way to do that...
0
7701
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7615
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7979
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3643
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
940
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.