Jump to content

Recommended Posts

Posted (edited)

_GUICtrlListView

Is there a way to set the font or the size of the text as running it on 1920x1080 i hard to see?

I have searched help and forum.

Soz if its easy.

Only using _GUICtrlListView so I can put a picture on the background.

Edited by Datus

We live as we dream alone!

Posted

_GUICtrlListView

Is there a way to set the font or the size of the text as running it on 1920x1080 i hard to see?

I have searched help and forum.

Soz if its easy.

Only using _GUICtrlListView so I can put a picture on the background.

Maybe you can create the list view with GuiCtrlCreateListView, then you can easily set its font size with GuiCtrlSetFont. You can still use the _GuiListView _... functions using the handle of the listview obtained by GuiCtrlGetHandle.
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.
Posted

Took me a while but yes it does work.

for others who have similar problems in the future here is what you have to do

$GUI1 = GUICtrlCreateListView ("col1", 1, 2, 200, 200,Default);default gets you sliders when a data list fills the screen etc

$GUI2 = GuiCtrlGetHandle ($GUI1)

;For these type of commands GUICtrlCreateListViewItem you need to use $GUI1 var

;For these type of commands _GUICtrlListView_SetBkImage you need to use $GUI2 var

;Eg.

GUICtrlCreateListViewItem ("item",$GUI1)

GUICtrlSetFont ($GUI1, 12, 800, 0, "MS Sans Serif")

_GUICtrlListView_SetBkImage ($GUI2,@WorkingDir & "\backdrop.jpg",1)

Thanks Martin its a bit messy but it works, thanks for your help.

Datus

We live as we dream alone!

Posted (edited)

Ok I have another strange problem now.

If I have a backdrop picture on the main window and a picture on the listview if I resize the columns the main windows backdrop displays over the top

I include the example.....

#include <GUIConstants.au3>
#include <file.au3>
#include <GuiListView.au3>

GUICreate("listview items",220,250, 100,200,-1,$WS_EX_ACCEPTFILES)
GUICtrlCreatePic("backdrop.jpg",0,0,100,200)
GuiCtrlSetState(-1,$GUI_DISABLE)
GUISetBkColor (0x00E0FFFF)
GUISetState()
$listview = GUICtrlCreateListView ("col1  |col2|col3  ",10,10,200,150)
$item1=GUICtrlCreateListViewItem("item2|col22|col23",$listview)
$item2=GUICtrlCreateListViewItem("item1|col12|col13",$listview)
$item3=GUICtrlCreateListViewItem("item3|col32|col33",$listview)
$AviListLocGUI2 = GuiCtrlGetHandle($listview)
_GUICtrlListView_SetBkImage  ($AviListLocGUI2,@WorkingDir & "\backdrop.jpg",1)
Do
  $msg = GUIGetMsg ()
Until $msg = $GUI_EVENT_CLOSE

If I added this $LVS_NOCOLUMNHEADER to the end it works ok.

$listview = GUICtrlCreateListView ("col1  |col2|col3  ",10,10,200,150,$LVS_NOCOLUMNHEADER)

Anything else I can do

Can you help me a bit further please?

gui2.au3

Edited by Datus

We live as we dream alone!

Posted

Ok resolved it

needed extended style option $LVS_EX_FLATSB

so it now looks like

$listview = GUICtrlCreateListView ("col1  |col2|col3  ",10,10,200,150,default,$LVS_EX_FLATSB)

We live as we dream alone!

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...