Jump to content

Recommended Posts

Posted

i tryed this, didnt work...

#include <GUIConstants.au3>
$Form1 = GUICreate("Test", 237, 112, 192, 125)
$List1 = GUICtrlCreateListView("x|y|z", 8, 16, 217, 84, -1, $WS_EX_CLIENTEDGE)
GUISetState(@SW_SHOW)
GUICtrlSetData($List1,"a|b|c|d|e|f"); d,e,f columns are not created...
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    EndSelect
WEnd

i didnt did find anything in the docs... :P

CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map
Posted

i tryed this, didnt work...

#include <GUIConstants.au3>
$Form1 = GUICreate("Test", 237, 112, 192, 125)
$List1 = GUICtrlCreateListView("x|y|z", 8, 16, 217, 84, -1, $WS_EX_CLIENTEDGE)
GUISetState(@SW_SHOW)
GUICtrlSetData($List1,"a|b|c|d|e|f"); d,e,f columns are not created...
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    EndSelect
WEnd

i didnt did find anything in the docs... :P

#include <GUIConstants.au3>
$Form1 = GUICreate("Test", 237, 112, 192, 125)
$List1 = GUICtrlCreateListView(" | | | | | ", 8, 16, 217, 84, -1, $WS_EX_CLIENTEDGE)
GUISetState(@SW_SHOW)
GUICtrlSetData($List1,"a|b|c|d|e|f"); d,e,f columns are not created...
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    EndSelect
WEnd

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Posted

i worked out this, but i doubt that its the 'real' solution...

#include <GUIConstants.au3>
$Form1 = GUICreate("test", 148, 130, 192, 125)
$List1 = GUICtrlCreateListView("x|y|z", 8, 8, 129, 71)
$Button1 = GUICtrlCreateButton("test 1", 8, 88, 129, 17)
$Button2 = GUICtrlCreateButton("test 2", 8, 108, 129, 17)
GUISetState(@SW_SHOW)
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case $msg = $Button1
        if GUICtrlDelete($List1) Then $List1 = GUICtrlCreateListView("a|b|c|d|e|f|g|h", 8, 8, 129, 71)
    Case $msg = $Button2
        if GUICtrlDelete($List1) Then $List1 = GUICtrlCreateListView("y|z", 8, 8, 129, 71)          
    EndSelect
WEnd

CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map
Posted

if you are working with just those two widths

maybe this

#include <GUIConstants.au3>
$Form1 = GUICreate("test", 148, 130, 192, 125)
$List1 = GUICtrlCreateListView("x|y|z", 8, 8, 129, 71)
$List2 = GUICtrlCreateListView("a|b|c|d|e|f|g|h", 8, 8, 129, 71)
GUICtrlSetState( -1, $GUI_HIDE)
$Button1 = GUICtrlCreateButton("test 1", 8, 88, 129, 17)
$Button2 = GUICtrlCreateButton("test 2", 8, 108, 129, 17)
GUISetState(@SW_SHOW)
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case $msg = $Button1
        GUICtrlSetState( $List1, $GUI_HIDE)
        GUICtrlSetState( $List2, $GUI_SHOW)
    Case $msg = $Button2
        GUICtrlSetState( $List2, $GUI_HIDE)
        GUICtrlSetState( $List1, $GUI_SHOW)   
    EndSelect
WEnd

8)

NEWHeader1.png

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...