Source language: Translate to:

Comboboxes??

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Comboboxes??

Postby sheppard1 » Sat Jun 01, 2013 9:57 am

Ok I have tried multiple things, with no luck....

How do i make a combobox where each option in Combobox1
fills the Combobox2 below it with a unique list, and once you select from that it repeats the process.

So as an example,
Box1-Select-Armor Box1-select-Weapons Continuing 11 more times
Box2-Type of armor Box2-type of weapon Continuing 11 more times

But i want data to only use 4 visible boxes.

Is that too ambitious. Finding it hard to explain
sheppard1
 
Posts: 25
Joined: Thu May 30, 2013 4:37 pm

Re: Comboboxes??

Postby mishem » Sat Jun 01, 2013 11:16 am

You better have a list of files. And to the extent necessary to load the listboks.
Or better yet, use a plug or Neobookdb Neobookdbpro and receive data from the database.
But first you need to learn Neobuk.
:)
Start with the easy projects. Do not rush to build a nuclear bomb.
:)
mishem
 
Posts: 575
Joined: Mon Oct 08, 2012 1:51 pm

Re: Comboboxes??

Postby sheppard1 » Sat Jun 01, 2013 12:35 pm

Its coming along nicely now, :P

I do havge one more question how can i change the desktop icon of my program once its compiled i used the option in F6 but it still shows as the Standard Neobook icon
sheppard1
 
Posts: 25
Joined: Thu May 30, 2013 4:37 pm

Re: Comboboxes??

Postby mishem » Sat Jun 01, 2013 12:43 pm

Properties>General >Icon
mishem
 
Posts: 575
Joined: Mon Oct 08, 2012 1:51 pm

Re: Comboboxes??

Postby sheppard1 » Sat Jun 01, 2013 12:47 pm

mishem wrote:Properties>General >Icon


If i right click>properties> general their is no change icon button though

the button has actually changed if i view it from a folder :( go reverts on everything else

Pff fixed it, by renaming lol thats just strange
sheppard1
 
Posts: 25
Joined: Thu May 30, 2013 4:37 pm

Re: Comboboxes??

Postby mishem » Sat Jun 01, 2013 1:18 pm

Image
mishem
 
Posts: 575
Joined: Mon Oct 08, 2012 1:51 pm

Re: Comboboxes??

Postby sheppard1 » Sat Jun 01, 2013 1:57 pm

Oh i know about thta but for some reason the icon just refused to show up till i renamed it.

last question before i retire..

I'm trying to link a combobox with an article, I want it to show a different article everytime I choose a different option.

No idea where to start
sheppard1
 
Posts: 25
Joined: Thu May 30, 2013 4:37 pm

Re: Comboboxes??

Postby mishem » Sat Jun 01, 2013 5:32 pm

Excuse me.
I have a Google can not figure out the problem.
And the more I can not explain it.
In fact, everything is very simple, but for a long time to explain.
Read help. There's all well-told.
mishem
 
Posts: 575
Joined: Mon Oct 08, 2012 1:51 pm

Re: Comboboxes??

Postby sheppard1 » Sun Jun 02, 2013 7:01 pm

Ok I have another issue, Heres how it should work, I choose radio button option it displays more options in combobox depending on radio button choice(each radio button gives Different options in combobox, But each radio button has the same set of names inserted into combobox. Which is the way i want it) But when i select the option from the combobox i cant get it to display an article dependent on both what radio button and which option is chosen.

*Concept*
So if i select radio button one, and then garage it shows Radio1.garage file
So if i select radio button two, and then garage it shows Radio2.garage file
but it should never show the file for Radio1.garage if radio2.garage is selected.

I have it working up to the choosing combobox option
Here is my current progress.
Code: Select all
{NeoBook 5 Objects}
NeoBookVer=5.80
ObjectType=5
Name=Rectangle6
X=0
Y=0
W=264
H=600
Anchor=0
LineColor=37104
LineWidth=2
LineStyle=0
FillColor=0
FillPattern=3
FillMode=Yes
TabOrder=8
ObjectType=4
Name=Picture5
X=0
Y=0
W=256
H=288
Anchor=0
FileName=C:\Users\thomas bacon\Desktop\Prog images\AAuico.png
PictStyle=0
Resample=Yes
LineColor=37104
LineWidth=0
LineStyle=0
FillColor=0
FillPattern=1
FillMode=Yes
TabOrder=1
ObjectType=3
Name=PushButton8
X=0
Y=0
W=40
H=24
Anchor=0
Text=back
Align=2
ImageStyle=0
ObjAction=GotoPage "Fallen Earth Tools"
LineColor=32984
LineWidth=0
LineStyle=6
FillColor=0
FillPattern=1
FillMode=Yes
Font=Space Bd BT
FontSize=10
FontStyle=0
FontCharset=1
TextColor=24792
TabOrder=2
ObjectType=10
Name=ListBox1
X=-232
Y=112
W=208
H=328
Anchor=0
Text=[Embedded]s1garage.rtf¶
VarName=[ListBox1]
VarType=0
LineColor=37104
LineWidth=2
LineStyle=0
FillColor=16777215
FillPattern=3
FillMode=Yes
Font=Arial
FontSize=10
FontStyle=0
FontCharset=1
TextColor=0
TabOrder=9
ObjectType=2
Name=Article3
X=264
Y=0
W=304
H=600
Anchor=0
FileName=[File]
ScrollBar=No
WordWrap=No
AllowCopy=Yes
LineColor=37104
LineWidth=2
LineStyle=0
FillColor=0
FillPattern=3
FillMode=Yes
Font=Arial
FontSize=10
FontStyle=0
FontCharset=1
TextColor=16777215
TabOrder=3
ObjectType=13
Name=RadioButton1
X=24
Y=280
W=104
H=32
Anchor=0
Text=Sector 1
Align=1
VarName=[RadioGroup3]
InitState=0
XPTheme=No
ObjAction=If "[RadioGroup3]" "=" "Sector 1"¶    ListBoxDeleteItem "Combobox7" "All"¶    ListBoxAddItem "ComboBox7" "0" "Town Coordinates"¶    ListBoxAddItem "ComboBox7" "0" "Garage Coordinates"¶    ListBoxAddItem "ComboBox7" "0" "Lifenet Coordinates"¶    ListBoxAddItem "ComboBox7" "0" "Bunker Bar Coordinates"¶    ListBoxAddItem "ComboBox7" "0" "Tourist Telescope Coordinates"¶    EnableObject "ComboBox7"¶Endif
LineColor=37104
LineWidth=2
LineStyle=0
FillColor=16777215
FillPattern=3
FillMode=Yes
Font=Arial
FontSize=10
FontStyle=0
FontCharset=1
TextColor=33023
TabOrder=10
ObjectType=11
Name=ComboBox7
X=8
Y=440
W=248
H=28
Anchor=0
VarName=[ComboBox1]
VarType=1
XPTheme=Yes
ObjAction=If "[RadioGroup3]" "=" "Sector 1"¶else¶If "[ComboBox1]" "=" "Town Coordinates"¶ListBoxGetItem "ListBox1" "[ComboBox1]" "[File]"¶Endif
LineColor=37104
LineWidth=2
LineStyle=0
FillColor=16777215
FillPattern=3
FillMode=Yes
Font=Arial
FontSize=10
FontStyle=0
FontCharset=1
TextColor=0
Enabled=No
TabOrder=4
ObjectType=13
Name=RadioButton4
X=24
Y=352
W=72
H=32
Anchor=0
Text=Deadfall
Align=1
VarName=[RadioGroup3]
InitState=0
XPTheme=No
ObjAction=If "[RadioGroup3]" "=" "Deadfall"¶    ListBoxAddItem "ComboBox7" "0" "Town Coordinates"¶    ListBoxAddItem "ComboBox7" "0" "Garage Coordinates"¶    ListBoxAddItem "ComboBox7" "0" "Lifenet Coordinates"¶    ListBoxAddItem "ComboBox7" "0" "Bunker Bar Coordinates"¶    ListBoxAddItem "ComboBox7" "0" "Tourist Telescope Coordinates"¶    EnableObject "ComboBox7"¶Endif
LineColor=37104
LineWidth=2
LineStyle=0
FillColor=16777215
FillPattern=3
FillMode=Yes
Font=Arial
FontSize=10
FontStyle=0
FontCharset=1
TextColor=33023
TabOrder=13
ObjectType=13
Name=RadioButton5
X=24
Y=376
W=120
H=32
Anchor=0
Text=Terminal Woods
Align=1
VarName=[RadioGroup3]
InitState=0
XPTheme=No
ObjAction=If "[RadioGroup3]" "=" "Terminal Woods"¶    ListBoxAddItem "ComboBox7" "0" "Town Coordinates"¶    ListBoxAddItem "ComboBox7" "0" "Garage Coordinates"¶    ListBoxAddItem "ComboBox7" "0" "Lifenet Coordinates"¶    ListBoxAddItem "ComboBox7" "0" "Bunker Bar Coordinates"¶    ListBoxAddItem "ComboBox7" "0" "Tourist Telescope Coordinates"¶    EnableObject "ComboBox7"¶Endif
LineColor=37104
LineWidth=2
LineStyle=0
FillColor=16777215
FillPattern=3
FillMode=Yes
Font=Arial
FontSize=10
FontStyle=0
FontCharset=1
TextColor=33023
TabOrder=14
ObjectType=13
Name=RadioButton6
X=24
Y=400
W=120
H=32
Anchor=0
Text=Alpha County
Align=1
VarName=[RadioGroup3]
InitState=0
XPTheme=No
ObjAction=If "[RadioGroup3]" "=" "Alpha County"¶    ListBoxAddItem "ComboBox7" "0" "Town Coordinates"¶    ListBoxAddItem "ComboBox7" "0" "Garage Coordinates"¶    ListBoxAddItem "ComboBox7" "0" "Lifenet Coordinates"¶    ListBoxAddItem "ComboBox7" "0" "Bunker Bar Coordinates"¶    ListBoxAddItem "ComboBox7" "0" "Tourist Telescope Coordinates"¶    EnableObject "ComboBox7"¶Endif
LineColor=37104
LineWidth=2
LineStyle=0
FillColor=16777215
FillPattern=3
FillMode=Yes
Font=Arial
FontSize=10
FontStyle=0
FontCharset=1
TextColor=33023
TabOrder=5
ObjectType=13
Name=RadioButton2
X=24
Y=304
W=104
H=32
Anchor=0
Text=Sector 2
Align=1
VarName=[RadioGroup3]
InitState=0
XPTheme=No
ObjAction=If "[RadioGroup3]" "=" "Sector 2"¶    ListBoxDeleteItem "Combobox7" "All"¶    ListBoxAddItem "ComboBox7" "0" "Town Coordinates"¶    ListBoxAddItem "ComboBox7" "0" "Garage Coordinates"¶    ListBoxAddItem "ComboBox7" "0" "Lifenet Coordinates"¶    ListBoxAddItem "ComboBox7" "0" "Bunker Bar Coordinates"¶    ListBoxAddItem "ComboBox7" "0" "Tourist Telescope Coordinates"¶    EnableObject "ComboBox7"¶Endif
LineColor=37104
LineWidth=2
LineStyle=0
FillColor=16777215
FillPattern=3
FillMode=Yes
Font=Arial
FontSize=10
FontStyle=0
FontCharset=1
TextColor=33023
TabOrder=11
ObjectType=13
Name=RadioButton3
X=24
Y=328
W=104
H=32
Anchor=0
Text=Sector 3
Align=1
VarName=[RadioGroup3]
InitState=0
XPTheme=No
ObjAction=If "[RadioGroup3]" "=" "Sector 3"¶    ListBoxAddItem "ComboBox7" "0" "Town Coordinates"¶    ListBoxAddItem "ComboBox7" "0" "Garage Coordinates"¶    ListBoxAddItem "ComboBox7" "0" "Lifenet Coordinates"¶    ListBoxAddItem "ComboBox7" "0" "Bunker Bar Coordinates"¶    ListBoxAddItem "ComboBox7" "0" "Tourist Telescope Coordinates"¶    EnableObject "ComboBox7"¶Endif
LineColor=37104
LineWidth=2
LineStyle=0
FillColor=16777215
FillPattern=3
FillMode=Yes
Font=Arial
FontSize=10
FontStyle=0
FontCharset=1
TextColor=33023
TabOrder=7
ObjectType=5
Name=Rectangle11
X=568
Y=0
W=232
H=600
Anchor=0
LineColor=37104
LineWidth=2
LineStyle=0
FillColor=0
FillPattern=3
FillMode=Yes
TabOrder=12
sheppard1
 
Posts: 25
Joined: Thu May 30, 2013 4:37 pm

Re: Comboboxes??

Postby sheppard1 » Mon Jun 03, 2013 1:30 am

Also, can i implement a search article Function... if so how
sheppard1
 
Posts: 25
Joined: Thu May 30, 2013 4:37 pm


Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 0 guests