| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| 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 |
|
#2
| |||
| |||
| > > 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 |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.