Jump to content
Sign in to follow this  

Input to list

Recommended Posts

I was wondering if anyone can teach me how to make data entered to the GUICtrlCreateInput add to the GUICtrlCreateList.

#include <GuiConstants.au3>

GUICreate("AIRCRAFT", 263, 875, 193, 115);, $WS_EX_ACCEPTFILES, (@DesktopWidth - 231) / 2, (@DesktopHeight - 903) / 2, $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)

$List_1 = GUICtrlCreateList("Adam A700", 8, 8, 201, 825)

GUICtrlSetData(-1, "Aerospace Industrial G100|Aerostar FJ100|Atkinson AJ2|BAE Jetstream 41|Beechcraft B200 King Air|Beechcraft Beechjet 400A|Boeing BBJ|Bombardier Challenger 300|Bombardier Lear 35|Bombardier Lear 45|Bombardier Learjet 60|Cessna Citation II 550|Cessna Citation Mustang|Cessna Citation X|Dassault Falcon|Eaglesoft Premier 1|Eclipse 500|Embraer 170|Falcon Twin Jet Executive Concept|Gulfstream 5|Gulfstream G100|Gulfstream IV|Hawker 400XP|Hawker 800XP|Hawker Siddeley HS125-700|Jetstar II|LearFan 2100|Lockheed Jetstar II|Maverick Personal|Rockwell Sabreliner T-39|SabreLiner FDE|Stratojet Excalibur|Vinair Falcon 900")

$Button_2 = GUICtrlCreateButton("OK", 216, 16, 33, 809, 0)

$Input1 = GUICtrlCreateInput("", 8, 848, 201, 21)


$Button2 = GUICtrlCreateButton("ADD", 216, 848, 33, 17, 0)

GUICtrlSetState($Button_2, $GUI_DEFBUTTON)



$msg = 0

While $msg <> $GUI_EVENT_CLOSE

$msg = GUIGetMsg()


Case $msg = $Button_2




Share this post

Link to post
Share on other sites

The line you want is:

_GUICtrlListAddItem ($List_1, GUICtrlRead($input1))oÝ÷ Ù¦y·«¶§r[^)Þjëh×6#Include <GuiList.au3>

Or it wont work :)

If you dont mind me asking, what are you making. Im just intrested.....

Share this post

Link to post
Share on other sites

Thanks Bert. I missed GUICtrlListAddItem in the help file.

To your question. I am toying with an idea to to bring up engineering detail/specs for aircraft faster and easier. We build turbofan engines for Corporate Jets.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...