wahoyaho Posted November 22, 2007 Share Posted November 22, 2007 I made a tab item, and then put a listview inside it, and now sometimes after a few seconds the listview will disappear on it's own :s Link to comment Share on other sites More sharing options...
martin Posted November 22, 2007 Share Posted November 22, 2007 I made a tab item, and then put a listview inside it, and now sometimes after a few seconds the listview will disappear on it's own :sYou are expecting too much without showing any code. But check that you have closed your tab as it shows in the help. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
wahoyaho Posted November 22, 2007 Author Share Posted November 22, 2007 (edited) Here's what I have so far $hWnd = GUICreate($app_name & " - v." & $app_ver, $app_w, $app_h, @DesktopWidth-$app_w-10, @DesktopHeight-$app_h-200) WinSetOnTop($app_name & " - v." & $app_ver, "", 1) GUISetFont("8.5", "", "", "Calibri", $hWnd) $trans_l = GUICtrlCreateLabel("Transparency:", 155, 241) GUICtrlSetColor($trans_l, "0x676767") $trans = GUICtrlCreateSlider(221, 243, "155", "15", $TBS_NOTICKS) GUICtrlSetLimit($trans, 255, 100) $log = GUICtrlCreateCheckBox("Log", 535, 241, 70, 15) $save = GUICtrlCreateButton("Save", 634, 239, 90, 19) $tab = GUICtrlCreateTab(5, 5, 721, 254, BitOR($TCS_RIGHT, $TCS_FOCUSNEVER)) $tab0 = GUICtrlCreateTabItem("tab0") $output = GUICtrlCreateListView("Output", 10, 10, 709, 222, $LVS_NOCOLUMNHEADER) _GUICtrlListViewSetColumnWidth($output, 0, 704) $tab1 = GUICtrlCreateTabItem("tab1") $tab2 = GUICtrlCreateTabItem("tab2") GUICtrlCreateTabItem("") GUISetState () GUICtrlSetData($trans, 255) $trans_v = GUICtrlRead($trans) While $running $msg = GUIGetMsg() If GUICtrlRead($trans) <> $trans_v Then $trans_v = GUICtrlRead($trans) WinSetTrans($app_name & " - v." & $app_ver, "", $trans_v) EndIf If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd Edited November 22, 2007 by wahoyaho Link to comment Share on other sites More sharing options...
smashly Posted November 22, 2007 Share Posted November 22, 2007 Well that's a hard problem to find .. I tried your bit of code in Autoit v3.2.8.1 and Autoit (beta) v3.2.9.14 and I'm not getting the same symptoms. When you say sometimes , it doesn't give much to go on , since I can't seem to replicate your problem. Mind you I did remove a couple of things due to variables that weren't supplied with your code. But I couldn't see them making much differance.#include <GUIConstants.au3> ; added needed for styles $hWnd = GUICreate("Variable not supplied", 729, 270) ; guessed the width and hiegt, variable not supplied WinSetOnTop($hWnd, "", 1) ; variable not supplied, used handle GUISetFont("8.5", "", "", "Calibri", $hWnd) $trans_l = GUICtrlCreateLabel("Transparency:", 155, 241) GUICtrlSetColor($trans_l, "0x676767") $trans = GUICtrlCreateSlider(221, 243, "155", "15", $TBS_NOTICKS) GUICtrlSetLimit($trans, 255, 100) $log = GUICtrlCreateCheckBox("Log", 535, 241, 70, 15) $save = GUICtrlCreateButton("Save", 634, 239, 90, 19) $tab = GUICtrlCreateTab(5, 5, 721, 254, BitOR($TCS_RIGHT, $TCS_FOCUSNEVER)) $tab0 = GUICtrlCreateTabItem("tab0") $output = GUICtrlCreateListView("Output", 10, 10, 709, 222, $LVS_NOCOLUMNHEADER) ;~ _GUICtrlListViewSetColumnWidth($output, 0, 704); include/function not provided $tab1 = GUICtrlCreateTabItem("tab1") $tab2 = GUICtrlCreateTabItem("tab2") GUICtrlCreateTabItem("") GUISetState () GUICtrlSetData($trans, 255) $trans_v = GUICtrlRead($trans) While 1 $msg = GUIGetMsg() If GUICtrlRead($trans) <> $trans_v Then $trans_v = GUICtrlRead($trans) WinSetTrans($hWnd, "", $trans_v) ;used a handle instead of a title EndIf If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd Can you give some more info when it happens .. eg: switching between tabs, when setting transparency, after minimizing, while just sitting on screen doing nothing... Maybe also give more details on the version of autoit your using.. The operating system your using... Cheers Link to comment Share on other sites More sharing options...
wahoyaho Posted November 23, 2007 Author Share Posted November 23, 2007 (edited) Hmm, the include is #include <GUIListView.au3> It seems that if I comment this code ;~ _GUICtrlListViewSetColumnWidth($output, 0, 704); include/function not provided out as well, then it's ok. (Except for a little blink in the window after 5 seconds of running) I'm using the newst version and on Winxp sp2 It seems like whenever the window goes from inactive to active window, after ~5 seconds it does this Edited November 23, 2007 by wahoyaho Link to comment Share on other sites More sharing options...
smashly Posted November 23, 2007 Share Posted November 23, 2007 In both Autoit v3.2.8.1 and Autoit (beta) v3.2.9.14 I can't replicate the problem your having, that's with or without the commented line. I don't get any flicker apart if I adjust the transpency to solid and then to transparent and back to solid.. (this only happens when transparency reaches 255). But that behavior has always been there for me even in earlier versions. As for the list view disappearing it just doesn't do it for me no matter what I try I've tried active/inactive and wait between , tried minimize/restore, tried changing tabs, setting transparency and combinations of the sort with waiting in between. It just doesn't do it for me. I'm running english WinXP SP2. I'm sorry but I don't have any positive input to resolve your problem. Hopefully someone else has had a similar problem and they can be of more help. Cheers Link to comment Share on other sites More sharing options...
BrettF Posted November 23, 2007 Share Posted November 23, 2007 Is it the AutoIt Listview, or the _GUICtrlListBox_Create? I think that does change some parts... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
wahoyaho Posted November 23, 2007 Author Share Posted November 23, 2007 (edited) It's the Autoit Listview, what is the _GUICtrlListBox_Create? I might give it a try Yah I don't know....the only temporary fix I can see right now is to set the gui state to lock so it doesn't repaint the tab over the listview... This problem seems to disappear once I add a extended style to it...but now the border isn't coming up :/ Edited November 23, 2007 by wahoyaho Link to comment Share on other sites More sharing options...
BrettF Posted November 23, 2007 Share Posted November 23, 2007 (edited) Have a try with the _GUICtrlListBox_Create... See how it goes. I think Ii read somewhere that it did make a difference... Think EDIT: Smiley Edited November 23, 2007 by Bert Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
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