From 627afc0c90f5827cf6692671338195bfe0c59abd Mon Sep 17 00:00:00 2001 From: gambas Date: Thu, 27 May 2021 04:15:39 +0200 Subject: [PATCH] SystemTray: Update example to follow the new behaviour of X11Systray class. [EXAMPLES] * BUG: SystemTray: Update example to follow the new behaviour of X11Systray class. --- app/examples/Misc/SystemTray/.icon.png | Bin 3462 -> 17595 bytes app/examples/Misc/SystemTray/.project | 5 ++-- app/examples/Misc/SystemTray/.src/FMain.class | 27 +++--------------- 3 files changed, 7 insertions(+), 25 deletions(-) diff --git a/app/examples/Misc/SystemTray/.icon.png b/app/examples/Misc/SystemTray/.icon.png index 911211ec2ba50cbcc9657096b871036ff02a1b6e..44f5ec7c61d2168a2d16ab12f2461d14f550911f 100644 GIT binary patch literal 17595 zcmb@u^;cWp^F16~i#rr8F2UW4Q;HSW;!=vcySuwXdErjc;4X#Y5}dZU6A0v+_h+r= zKX`t~I?2ji=iJ$oGkf-&xrx>ItoRO-0uulLyi-<^(*ghx;BOHC=&10)*zJc6eAu)9 z_))`MOHmd8Aj`BgHy57;Ab-Na#{TKcC@*vI852KM6BApBmgi?z2!fEgmHCs`J2_r% z zB1r3!(jBs*1Y#Jmg=vNb*j6Wi^=tHjqj_8Nrl%ngNF1Loi$5{+tG^gh_{jT+oGDpU z)Hhw!D5q?Ei{jV8H)|rXFKLFFhy>S5-c~G194g4FeBp@voQa`(OKzyBJ4&didsx`m z#=r2qLl7K!xJ#6=nc-%+tqDey(dduxhEdrCEPuM68B-fO#phph2+yB|;tHTl;vdHG9BuK@1~q=}Z6LoJvPp zyqmf&vF;6l^JrxRHnru`R;py0d4Gk*=@_`%}3ZuLR7EeJx6LzO$Ce*Zn`~gdV!a1WZRhYYK#jx09wu;F-+C(;*b}t=QGa`&^-|;n z<<|&;=t-09z{#!Y(luS{-`Mqy;Afz$IIRn{&_9H>vjif4HTM$7=IjVFE-V-{ifiG` zx%|-m6pRjYpfbOI-ge|q8vS_=gPdgEwy9X(?-=2J6}aUF54>;}-f}&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#6&rMbUzDb&nH$` zeAOas+OP(&yt=yyuW~Wp-t9v)k}dJl9+(J`zDAz7a}Jv}thwy#JyD}MzzCzOfYQp< zLp!O^BEe<)bkoYK*mTc!W*s}gk6K%aRL&wHmd>trKDXsJVDVDsA8p{jPkchB&LcK^ z5f)2y$vXN|gOn=8U5l46bKY$n z)%o0a|7NNx%dco5*8|2BLPl_9XlohR?2>vV%w4>Ul7!x&!z`hyXr0)8;{X&Xb&x29e82L%<@WVH*QC+!|P|QHF}~;tB8`J4)|~m5P-Lj z+pqR#_&Pu;ohkD}8=aWt&jyT=bY9fy1t@a(n+NLUIRjuN7<7G&wV}A_K!?_H%bk!B zP$D{1N<_pKM(iLAg+RRL;u$|u97(1Fm2%TVesv2f0NRIWepH9?p2V5qs{&N~;AbsA zix!nF2&{5$VFAz*X43t=XMTHQ?IxgWL;zqrPzU4#5#Z*$!u{nT05W6`N}T|HGAsaO zkCD~@i+~wGDG=idr^!Eq2+5YdeLy>K8aM}}hXoL_GaeffBQiw(RyiwUheYs(h70(B o9Z&F9A$&E0OkoOBn8FnP2Q#vUSJ(k~5&!@I07*qoM6N<$f=#HMQUCw| diff --git a/app/examples/Misc/SystemTray/.project b/app/examples/Misc/SystemTray/.project index 18bcc6211..1553b8235 100644 --- a/app/examples/Misc/SystemTray/.project +++ b/app/examples/Misc/SystemTray/.project @@ -1,5 +1,4 @@ # Gambas Project File 3.0 -# Compiled with Gambas 3.6.90 Title=SystemTray Startup=FMain Icon=icon.png @@ -7,9 +6,11 @@ Version=1.0.0 Component=gb.image Component=gb.gui Component=gb.form +Component=gb.desktop Component=gb.desktop.x11 Description="X11 System tray example.\n\nThis example shows how to create a system tray with the gb.desktop.x11 component." TabSize=2 +Translate=1 +Language=fr Vendor=Example Packager=1 -Translate=1 diff --git a/app/examples/Misc/SystemTray/.src/FMain.class b/app/examples/Misc/SystemTray/.src/FMain.class index 87e76fb6c..2c792ffea 100644 --- a/app/examples/Misc/SystemTray/.src/FMain.class +++ b/app/examples/Misc/SystemTray/.src/FMain.class @@ -10,22 +10,16 @@ End Public Sub Form_Open() - X11Systray.Show(dwgSystemTray.Handle) + X11Systray.Show(dwgSystemTray.Handle, dwgSystemTray.Background) End Static Public Sub X11Systray_Arrange() - FMain.ArrangeTray - -End - -Public Sub ArrangeTray() - Dim I As Integer Dim X, Y, H As Integer - Debug + Debug X11Systray.Count X = 2 Y = 2 For I = 0 To X11Systray.Count - 1 @@ -44,21 +38,8 @@ Public Sub ArrangeTray() End -' Public Sub DrawingArea1_Draw() -' -' Paint.DrawImage($hImage, 0, 0) -' -' End +Public Sub dwgSystemTray_Arrange() -Public Sub Form_Resize() - - ' Dim DH As Integer - ' - ' Paint.Begin(draSystemTray) - ' DH = 1 + draSystemTray.H / $hImage.H - ' Paint.DrawImage($hImage, 0, - DH, draSystemTray.W, draSystemTray.H + DH * 2) - ' Paint.End - ArrangeTray + X11Systray.Move(0, 0, dwgSystemTray.Width, dwgSystemTray.Height) End -