TheSaint Posted yesterday at 01:06 AM Posted yesterday at 01:06 AM (edited) 13 hours ago, joseLB said: Besides Koda, there is today a GUI builder that is functional? One with more modern controls? To this day, I still code my GUIs using GUIBuilder, if I need to. It's so quick and efficient ... and blessedly small when it comes to screen real estate. But really, I hard code my GUIs mostly by ear/eye/mind/memory/example. Example, is probably the most common method for me, I just borrow the basic code from some other program of mine I've worked on recently ... so basically copy & paste & edit. None of that is helpful of course if you want all the bells and whistles and something ultra modern, but it certainly serves me well, and I always opt for practical over pretty. Edited yesterday at 01:09 AM by TheSaint Make sure brain is in gear before opening mouth! Remember, what is not said, can be just as important as what is said. Spoiler What is the Secret Key? Life is like a Donut If I put effort into communication, I expect you to read properly & fully, or just not comment. Ignoring those who try to divert conversation with irrelevancies. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)
joseLB Posted 23 hours ago Posted 23 hours ago Thanks for replies. Just as an example, I was wondering something like visual tanks of water or batteries filling when AU3 receivers data from a pic thru serial for and fields that are used today instead the windows controls (I like them, but users always ask for more modern controls).
argumentum Posted 22 hours ago Posted 22 hours ago (edited) 21 minutes ago, joseLB said: I was wondering something like visual tanks of water or batteries take a look at https://www.autoitscript.com/forum/topic/213479-autoit-help-v33180-dark/ . Maybe an HTML can show anything you'd like to show. Just make your app a TCP back and forth via AJAX API/IPC 🤔 If you make one share it here ..or use GDI+ and make your own graphics ? Spoiler #include <GDIPlus.au3> #include <GUIConstantsEx.au3> Example() Func Example() _GDIPlus_Startup() ;initialize GDI+ Local Const $iWidth = 600, $iHeight = 600, $iBgColor = 0x303030 ;$iBGColor format RRGGBB Local $hGUI = GUICreate("GDI+ Example (" & @ScriptName & ")", $iWidth, $iHeight) ;create a test GUI GUISetBkColor($iBgColor, $hGUI) ;set GUI background color GUISetState(@SW_SHOW) Local $hGraphics = _GDIPlus_GraphicsCreateFromHWND($hGUI) ;create a graphics object from a window handle _GDIPlus_GraphicsSetSmoothingMode($hGraphics, $GDIP_SMOOTHINGMODE_HIGHQUALITY) ;sets the graphics object rendering quality (antialiasing) Local $hPen = _GDIPlus_PenCreate(0xFFA08080, 2) ;color format AARRGGBB (hex) _GDIPlus_GraphicsDrawPie($hGraphics, 100.5, 0.5, 400.75, 400.125, 45, 90, $hPen) Do Until GUIGetMsg() = $GUI_EVENT_CLOSE ;cleanup GDI+ resources _GDIPlus_PenDispose($hPen) _GDIPlus_GraphicsDispose($hGraphics) _GDIPlus_Shutdown() GUIDelete($hGUI) EndFunc ;==>Example Edited 22 hours ago by argumentum more ideas Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
ioa747 Posted 19 hours ago Posted 19 hours ago #include <GUIConstantsEx.au3> #include <WindowsStylesConstants.au3> Global $idBattery Example() Func Example() Local $sFlFont = "Segoe Fluent Icons" Local $hGUI = GUICreate("Example (" & @ScriptName & ")", 300, 300, -1, -1, -1, $WS_EX_COMPOSITED) GUISetBkColor(0x17191A) $idBattery = GUICtrlCreateLabel(ChrW(0xE850), 30, 50, 200, 200) ; Icon code for 'home' GUICtrlSetFont(-1, 150, 400, 0, $sFlFont) GUICtrlSetColor(-1, 0x444444) GUISetState(@SW_SHOW) AdlibRegister("_IconProccesing", 250) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch Sleep(50) WEnd EndFunc ;==>Example Func _IconProccesing() Local Static $aBattery[11] = [0xE850, 0xE851, 0xE852, 0xE853, 0xE854, 0xE855, 0xE856, 0xE857, 0xE858, 0xE859, 0xE83F] Local Static $id = -1 $id += 1 If $id > 10 Then $id = 0 GUICtrlSetData($idBattery, ChrW($aBattery[$id])) EndFunc ;==>_IconProccesing argumentum and WildByDesign 2 I know that I know nothing
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