MerkurAlex Posted June 25, 2008 Posted June 25, 2008 If i create a listview using this udf how in the world are you supposed to hide the listview? [quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote]
smashly Posted June 25, 2008 Posted June 25, 2008 Hi, use ControlHide() and ControlShow() functions. Both functions can be found in Autoit Help File under "Function Reference->Window Management->Controls" Cheers
PsaltyDS Posted June 25, 2008 Posted June 25, 2008 If i create a listview using this udf how in the world are you supposed to hide the listview? I don't see the problem: #include <GuiConstants.au3> #include <GuiListView.au3> Global $fShowLV = True Global $hGUI = GUICreate("Test", 400, 300) Global $hLV = _GUICtrlListView_Create($hGUI, "Test 1|Test 2", 20, 20, 360, 210) Global $IdButton = GUICtrlCreateButton("Hide", 150, 250, 100, 30) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $IdButton $fShowLV = Not $fShowLV If $fShowLV Then ControlSetText($hGUI, "", $IdButton, "Hide") ControlShow($hGUI, "", $hLV) Else ControlSetText($hGUI, "", $IdButton, "Show") ControlHide($hGUI, "", $hLV) EndIf EndSwitch WEnd Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
MerkurAlex Posted June 27, 2008 Author Posted June 27, 2008 Very strange this works fine now a few days ago it was giving major problems it would hide it partially and a few other things but it works fine now thanks guys. [quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now