HighGuy Posted January 7, 2005 Posted January 7, 2005 The last weeks I had a big problem with one of my GUI-programs. My screen starts to flicker as sonn as I updated my ListView-entries. I wasn't sure if I made a mistake or if it was a GUI-bug. Coincidentally another program started to flicker also and I could link this with the usage of GUISetFont. I tried to reproduce this with the sample code of the ListView doc. Here is the adapted code. To see the effect start the program with the different font variables and fill the ListView with multiple clicks to the add-button. Can anyone confirm this behavior? #include <GUIConstants.au3> GUICreate("listview items",220,250, 100,200,-1,$WS_EX_ACCEPTFILES) GUISetBkColor (0x00E0FFFF) ; will change background color ;$FONT = ""; --> added by me (NO FLICKERING) $FONT = "Courier"; --> added by me (FLICKERING SCREEN) GUISetFont (9, 400, -1, $FONT); --> added by me $listview = GuiCtrlCreateListView ("col1 |col2|col3 ",10,10,200,150);,$LVS_SORTDESCENDING) $button = GuiCtrlCreateButton ("Add",75,170,70,20); -> changed by me $item1=GuiCtrlCreateListViewItem("item2|col22|col23",$listview) $item2=GuiCtrlCreateListViewItem("item1|col12|col13",$listview) $item3=GuiCtrlCreateListViewItem("item3|col32|col33",$listview) $input1=GuiCtrlCreateInput("",20,200, 150) GuiCtrlSetState(-1,$GUI_ACCEPTFILES) ; to allow drag and dropping GuiSetState() GUICtrlSetData($item2,"ITEM1") GUICtrlSetData($item3,"||COL33") GUICtrlDelete($item1) Do $msg = GuiGetMsg () Select Case $msg = $button ;MsgBox(0,"listview item",GuiCtrlRead(GuiCtrlRead($listview)),2) $itemX=GuiCtrlCreateListViewItem("one|two|three",$listview); --> added by me Case $msg = $listview MsgBox(0,"listview", "clicked="& GuiCtrlGetState($listview),2) EndSelect Until $msg = $GUI_EVENT_CLOSE
phillip123adams Posted January 7, 2005 Posted January 7, 2005 The last weeks I had a big problem with one of my GUI-programs. My screen starts to flicker as sonn as I updated my ListView-entries. I wasn't sure if I made a mistake or if it was a GUI-bug. Coincidentally another program started to flicker also and I could link this with the usage of GUISetFont. I tried to reproduce this with the sample code of the ListView doc. Here is the adapted code. To see the effect start the program with the different font variables and fill the ListView with multiple clicks to the add-button. Can anyone confirm this behavior?<{POST_SNAPBACK}>Yes, I get a single screen flicker when the Add button is pressed and the font is set to Courier. I also tried a couple of other fonts with the same result. When the font name is a null string, there is no flicker. Phillip
jpm Posted January 7, 2005 Posted January 7, 2005 I have a look, but it is true that font="" does do anything from the font point of view so it is normal it does not flicker. be on touch
jpm Posted January 7, 2005 Posted January 7, 2005 I found a go aroud that I upload to JON. Thanks for pointing out the problem
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