Other Programming Languages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreOther Programming Languages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old April 16th, 2007, 10:12 PM
SerskiLas SerskiLas is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 12 SerskiLas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 51 m 54 sec
Reputation Power: 0
MaxScript help !!!

Write a script that adds the functionality to the "Lec 2 Demo" utility that we started in class. The "red box" button creates a red box of default dimensions somewhere on the x-y plane. The "Yellow Box" does the same thing except that the box color is yellow. When a person presses the "Delete" button, the utility should delete objects according to the option set in the radiobuttons.
that my code :
utility utDemo "My First Utility"
(
Button btnMakeRedBox "RedBox" toolTip:"Make a Box" \ -- red button
align:#Left Width:70 across:2
Button btnMakeYellowBox "YellowBox" toolTip:"Make a Yellow Box" \-- Yellow button
align:#Left Width:70 across:2

RadioButtons rdoDelete "Remove..."\
labels:#("boxes only", "Everything except boxe","all")\
default:1 columns:1

button button3 "Delete Now" -- delete button

local b, c= classof != b


on spinnerExample open do
(
s=undefined
)

--button RED box handler
on btnMakeRedBox pressed do
(
b=box wirecolor:[255,0,0]

)
--button Yellow box handler
on btnMakeYellowBox pressed do
(
b=box wirecolor:[255,255,0]
--b.pos = [0,0,1]

)

--button3 Delete handler

on button3 pressed do
(
if (rdoDelete.state == 1) then
delete b
if (rdoDelete.state == 2) then
delete c
)
)

I have problem with RadioButtons
where use RadioButtons and delete button

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreOther Programming Languages > MaxScript help !!!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway