Win Programming question


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Tom Fulton on June 13, 2005 at 07:44:23:

Continues on from post below - I am not resetting the length of the input on the edit box. When my program runs, I load my List Control and wait for operator action. All edit boxes are empty and the Text Size limit has been set to 2 for the Product Line and 40 for the Description.
If I click the mouse in either edit box, I can type in up to 2 characters for the Product Line and 40 characters for the Description.
Great! Now I double click on a product line in the List Control, I populate the controls in my dialog with data from the file and look to
edit. As an example, let's say my Product Line is F and the Description is Fabric. If I click the cursor after the 'c' in Fabric, I cannot input anything. If I hit Shift-End and then press Delete, I am then able to input up to 34 additional characters. The same behavior occurs in the Product Line edit control. In legacy code terms it's as if my data has had trailing blanks stripped out and (tm)s are on the screen where the blanks should be, and I would then only be able to input into that space after printing blanks over the (tm)s to remove them. Very strange. Second issue is that my initial program that provides the ability to maintain any of sixteen or so miscellaneous codes, such as product line, displays static text with an '&' character to provide a keyboard shortcut to the radio button control associated with that code. This works fine when run the first time. When Product Line code is selected and my second program is run
to maintain Product Lines, the Exit button in that program runs the intitial program for selection of a different code, if desired. When returning to the first program, the keyboard shortcuts still exist, but the characters that should be highlighted are no longer. For example, when first run program has P of Product Line underlined, keyboard P will turn on Product Line radio button as the code choice.
When the Product Line program is run and exited, P will still turn on that radio button, but the underline for the P is no longer there. I just noticed that VS.Net2003 Test Dialog button for that dialog no longer shows the underline either when it is run. ;^{ Tom.


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):






[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]