[LogoForum] Re: CHanging a string in a combobox/listbox in mswlogo

This is a discussion on [LogoForum] Re: CHanging a string in a combobox/listbox in mswlogo within the logo forums in Programming Languages category; The message below is being cross-posted from LogoForum. --- In LogoForum@yahoogroups.com , Hensley Bass <jstclair @ e...> > Is it possible to change a particular string in a combobox/listbox in > mswlogo. I have loaded a text file in a combobox and want to modify a > particular line. Is there an alternative way to change an alternative > line? As far as I know, there is no direct way to modify a line in the listbox portion of a combo box. The closest thing is to COMBOBOXDELETESTRING everything from that point onward, then COMBOBOXADDSTRING add the modified line, then ...

Go Back   Application Development Forum > Programming Languages > logo

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 12-21-2005, 01:01 PM
david_costanzo
Guest
 
Default [LogoForum] Re: CHanging a string in a combobox/listbox in mswlogo

The message below is being cross-posted from LogoForum.

--- In LogoForum@yahoogroups.com, Hensley Bass <jstclair@e...>

> Is it possible to change a particular string in a combobox/listbox in
> mswlogo. I have loaded a text file in a combobox and want to modify a
> particular line. Is there an alternative way to change an alternative
> line?


As far as I know, there is no direct way to modify a line in the
listbox portion of a combo box. The closest thing is to
COMBOBOXDELETESTRING everything from that point onward, then
COMBOBOXADDSTRING add the modified line, then COMBOBOXADDSTRING the
rest of the lines.

You may be able to use the DLLCALL to directly invoke the Win32 API
that sets the text of a combobox, but that sounds like more trouble
than it's worth.

I think there should be a way to directly change a line in a combo box
(it feels like the combobox API is incomplete without it. I'll
consider adding this sometime in the distant future.

What are you trying to do with the GUI at a higher level? Maybe
there's a different solution that doesn't involve combo boxes.



LogoForum messages are archived at:
http://groups.yahoo.com/group/LogoForum

Reply With Quote
  #2  
Old 12-24-2005, 12:20 PM
Hensley Bass
Guest
 
Default Re: [LogoForum] Re: CHanging a string in a combobox/listbox in mswlogo

>
> I think there should be a way to directly change a line in a combo box
> (it feels like the combobox API is incomplete without it. I'll
> consider adding this sometime in the distant future.
>
> What are you trying to do with the GUI at a higher level? Maybe
> there's a different solution that doesn't involve combo boxes.
>
>


I have written a Midi Keyboard simulator in logo. It can record, save
and load played tunes. My aim is to add an editor to the program. The
editor loads the current file into a combo box. It is supposed to play a
combo string, up to a combo string or from a combo string downwards.
To be able to achieve this, I need to know the listindex of the current
string in a combobox (this feature is not available in logo as far as I
am aware). The editor should allow me to track for mistakes made when
playing and correct them

I have uploaded the program on my webpage at
http://pages.intnet.mu/jhbpage/Progr...codes/midi.htm

Hensley Bass
url: http://pages.intnet.mu/jhbpage
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 11:42 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.