MattyD Posted 19 hours ago Posted 19 hours ago Hi folks, Here's a UDF to cover the statics class - which is basically labels, icons and images. _GUICtrlStatic_Create() ; For boxes, Frames, Lines etc. _GUICtrlStatic_CreateLabel() _GUICtrlStatic_CreateImage() ; For Bitmaps, icons, cursors or ehanced meta files (windows vector images) _GUICtrlStatic_Enable() ; can also disable a control _GUICtrlStatic_Destroy() ; Associated font/image objects can optionally be detroyed too. _GUICtrlStatic_ReplaceFont() ; Replace a label's font by passing font attributes (size,weight,family etc.). The old font is destroyed by default. _GUICtrlStatic_SetFont() ; Set a font using a HFONT handle (eg. for shared fonts.) _GUICtrlStatic_GetFont() _GUICtrlStatic_SetText() _GUICtrlStatic_GetText() _GUICtrlStatic_GetImage() _GUICtrlStatic_SetImage() ; Old image is optionally detroyed. I've included a few notification codes that can used with WM_COMMAND, which is mainly useful for a click handler. And also some additional SS_ styles that were missing from StaticConstants.au3. I found the useful ones are around adding an ellipses for text overflow... Anyway there's a bunch of examples included which should give the gist of things. Hopefully it's useful to someone GuiStatic.zip argumentum, ioa747 and WildByDesign 1 2
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