From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,4e3ade640b8fe417 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "Alexander S. Mentis" Newsgroups: comp.lang.ada Subject: Re: Contents of JEWL Editbox not consistent Date: Thu, 28 Oct 2010 21:42:36 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <2849fcf3-d0e6-4226-83f5-c4a7defb4370@v16g2000yqn.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Injection-Date: Thu, 28 Oct 2010 21:42:36 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="48rFr7wZTHXHen+Z2nllVg"; logging-data="12372"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1//1E/7KHMDAsK2cMq0EnkUQKYei1gkVOU=" User-Agent: XanaNews/1.19.1.269 Cancel-Lock: sha1:XA1FgIPUyTYu/Kk18dK0cP+jHi4= Xref: g2news1.google.com comp.lang.ada:14918 Date: 2010-10-28T21:42:36+00:00 List-Id: tolkamp wrote: > In my application the selected file name is written in an Editbox. > When an new (second) file name is selected this is also displayed in > the Editbox. > When the contents of this Editbox have to be edited, first the mouse > pointer have to be placed in the Editbox, by doing this the original > (first) file name again is coming back in the Editbox. Why remains the > second file name not displayed? As has been pointed out, a small chunk of code that demonstrates the problem you are asking about is usually helpful, so all of the below is just a shot in the dark. Full disclosure: I haven't actually ever used JEWL, having just heard about it recently on this forum, but I did read the documentation today. I'm looking forward to tinkering with it. Anyway, in the JEWL.Windows user manual, section 1.3, there's a line that says "Note that if the Set_Rate button is pressed again, the value that was entered into the edit box will still be there unless it has been explicitly altered by the program." In your post, you don't say how the second filename is being put into the Editbox. I think you have two options: using Set_Text or letting the user change it interactively. I assume using Set_Text is what the note in sec. 1.3 means by "explicitly altered," so I further assume that your problem is that the user is manually editing the Editbox, but you never take that newly-entered text and assign it to the variable that holds the state of the Editbox string. In this case, it looks like the Modified(Editbox) subprogram described in section 4.1.3 might be helpful. Use that to detect when the user has fiddled with the string manually, use Get_Text to get the modified string, and then give the gotten string to Set_Text to explicitly update the Editbox string. And if this is completely wrong, please see the disclaimer in paragraph 2 and post some example code. :-) Alex