----------------------------------- who cares? Thu Oct 09, 2003 9:43 pm GUI drop down selection box ----------------------------------- Hey! Is there any way to create a drop down selection box, maybe using the GUI module. I'm not talking about the Menu command, because you can only use that on the top of the execution window and I don't want that. I'm talking about a drop down selection box that you would typically use in forms on the Internet. Thanks! ----------------------------------- Mazer Thu Oct 09, 2003 10:02 pm ----------------------------------- i remember trying to find one myself last year, but i'm pretty sure there isn't. here's an idea! if you can't find one, try and make your own! could be fun ----------------------------------- Tony Thu Oct 09, 2003 10:04 pm ----------------------------------- well whenever you want to do something non standart in GUI (or often times even anything in GUI), you can guess what sujestion you're going to get. Write your own Edit: heh, I wrote this before Mazer made his post :wink: I'm not kidding... look up previous GUI related questions :lol: Thing is, Turing's GUI sucks. If the schoolwork will ever ease, myself and Dan might write our own... though I'm not promissing anything. Here's what you do though: Take MenuBarClass.tu as your base. Make a copy and raname it into MenuFieldClass.tu. Modify load files to include this into the GUI set. Now you preaty much keep everything the same, but modify where it is to be located. Notice how GUI uses a LOT of constants. Damn guys over at Holt got lazy and assumed GUI is to be used just in one way :roll: Draw.Line (0, maxy, maxx, maxy, black) Draw.FillBox (0, menuLine + 1, maxx, maxy - 1, WidgetGlobals.MENU_COLOUR) Draw.Line (0, menuLine, maxx, menuLine, black) Thats from the DrawBar method. You'd have to replace all those constants with where you want your box to be created... Such as in relation to X/Y of the mouse when it's right-clicked. Most importanly, you'd have to modify the choice of the menu item. if not initialized or not showing or mouseY < menuLine then result false end if selectedMenu := FindMenu (mouseX) under ConsiderButtonDown. As you can see, it assumes your menu is in a fixed place and just checks for X value. You'd have to check for both X and Y of created MenuField and buttonDown position. Would have to play around with FindMenu method... Those are just some guidelines for modifying existing GUI to make it work. Good luck :wink: ----------------------------------- rizzix Thu Oct 09, 2003 10:10 pm ----------------------------------- Actually i won't mind creating my own.. from scratch of course.. i'l make it appear like swing .. well to some extent (it's would take for ever otherwise).. And quite efficient.. unlike holt's version (full of bugs). yea and only if i have that kind of time.. probably next semester. o i got a question.. does turing have the ability to redraw only part of the screen? ----------------------------------- Tony Thu Oct 09, 2003 10:22 pm ----------------------------------- does turing have the ability to redraw only part of the screen? eh... no :lol: Turing doesn't have anything. Besides, if you're talking about something like 3DSMAX/Maya render part function, then you shouldn't be using turing in first place. Though I dont quite understand what you mean... Like View.Update just a sertain part of something? I don't quite see any implementations for that :? ----------------------------------- rizzix Thu Oct 09, 2003 10:28 pm ----------------------------------- exactly! just like view.update but only a part of the screen. thats quite dissapointing. cuz everytime you click on a button for example. the whole screen refreshes.. which sux.. brings down performance. ----------------------------------- who cares? Fri Oct 10, 2003 7:10 am Thanks! ----------------------------------- Thanks for all your responses. Turing sucks :lol: . There is so much stuff that I have tried to do so far but couldn't. It's frustrating. Oh well, I'll figure something out. Might use Radio Buttons. ----------------------------------- rizzix Fri Oct 10, 2003 7:43 am ----------------------------------- well it's not bad for a beginner but hey it can be and should be imporved. i mean not only redesigned. but be made complete. ----------------------------------- Dan Fri Oct 10, 2003 12:59 pm ----------------------------------- the funny thing is turing is not realy a progaming langue it is just an app that trasltes poscode in to c++ and comiples it, what is realy funny about this is that it cuts so much out of the languge it was made in and uses. i whonder why they just dont make it so you can put c++ code wirtgh in to the turing comipler to and have it run, since it is all ready using c++ to compile it :roll: ----------------------------------- Andy Sat Oct 11, 2003 2:34 pm ----------------------------------- the next turing version is supposed to have View.UpdateArea and u specify which area u want changed ----------------------------------- AsianSensation Sat Oct 11, 2003 2:34 pm ----------------------------------- o i got a question.. does turing have the ability to redraw only part of the screen? I think they do, not now, in the future, something like View.UpdateArea or something, ask dodge_tomahawk, he told me this. Edit: this is kinda funny, posted at the same time as dodge, even made a reference to him, you would think I possess prescience. ----------------------------------- Mazer Sat Oct 11, 2003 2:55 pm ----------------------------------- hehe, that was kinda funny. ----------------------------------- Andy Wed Oct 15, 2003 10:34 am ----------------------------------- damn... ur rite... look at the time at when u posted it, its the exact same as mine... one of us is psychic