[Gambas-user] DirChooser bug

Charlie Ogier charlie at cogier.com
Fri Oct 25 16:22:39 CEST 2019


Hi Fabien,

Thanks for the tip, this works well.

All the best,

Charlie

On 24/10/2019 18:14, Fabien Bodard wrote:
>
> Public Sub View_Select()
>
>   Raise {Select}
>
> End
>
> Public Sub View_Click()
>
>   Raise Click
>
> End
>
> Public Sub View_Activate()
>
>   Raise Activate
>
> End
>
> Public Sub View_Menu()
>
>   Raise Menu
>
> End
>
> As you can see other events are not linked to the outside..
>
> A workaround will be able to get it by
> dim o as object
>
>
> For each o in FileView.Children
> OBS = new Observer(o,true) as "OBS"
> next
>
> then you can use
>
> Public sub OBS_MouseDown.. etc
>
>
>
>
> Le jeu. 24 oct. 2019 à 18:15, Gianluigi <bagonergi at gmail.com 
> <mailto:bagonergi at gmail.com>> a écrit :
>
>     Hi Charlie,
>
>     I think thet FileChosser uses the mentioned events internally.
>     See if the attached project works.
>
>     Regards
>     Gianluigi
>
>     Il giorno gio 24 ott 2019 alle ore 17:32 Charlie Ogier
>     <charlie at cogier.com <mailto:charlie at cogier.com>> ha scritto:
>
>         Hi,
>
>         Is this just me but I can't get the following code to do
>         anything: -
>
>         /*Public Sub FileChooser1_MouseUp()*//*
>         *//*
>         *//* Print "Up"*//*
>         *//*
>         *//*End*//*
>         *//*
>         *//*Public Sub FileChooser1_MouseDown()*//*
>         *//*
>         *//*  Print "Down"*//*
>         *//*
>         *//*End*//*
>         *//*
>         *//*Public Sub FileChooser1_DblClick()*//*
>         *//*
>         *//*  Print "Dbl Click"*//*
>         *//*
>         *//*End*/
>
>         Thanks,
>
>         Charlie
>
>         [System]
>         Gambas=3.14
>         OperatingSystem=Linux
>         Kernel=4.15.0-66-generic
>         Architecture=x86_64
>         Distribution=Linux Mint 19.2 Tina
>         Desktop=CINNAMON
>         Theme=Qt5CTProxy
>         Language=en_GB.UTF-8
>         Memory=7848M
>
>         [Libraries]
>         Cairo=libcairo.so.2.11510.0
>         Curl=libcurl.so.4.5.0
>         DBus=libdbus-1.so.3.19.4
>         GStreamer=libgstreamer-1.0.so.0.1405.0
>         GTK+2=libgtk-x11-2.0.so.0.2400.32
>         GTK+3=libgtk-3.so.0.2200.30
>         OpenGL=libGL.so.1.0.0
>         Poppler=libpoppler.so.73.0.0
>         QT4=libQtCore.so.4.8.7
>         QT5=libQt5Core.so.5.9.5
>         SDL=libSDL-1.2.so.0.11.4
>         SQLite=libsqlite3.so.0.8.6
>
>         [Environment]
>         CINNAMON_VERSION=4.2.4
>         DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
>         DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path
>         DERBY_HOME=/usr/lib/jvm/java-8-oracle/db
>         DESKTOP_SESSION=cinnamon
>         DISPLAY=:0
>         GB_GUI=gb.qt5
>         GDMSESSION=cinnamon
>         GDM_LANG=en_GB
>         GJS_DEBUG_OUTPUT=stderr
>         GJS_DEBUG_TOPICS=JS ERROR;JS LOG
>         GNOME_DESKTOP_SESSION_ID=this-is-deprecated
>         GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
>         GTK_MODULES=gail:atk-bridge
>         GTK_OVERLAY_SCROLLING=1
>         HOME=<home>
>         J2REDIR=/usr/lib/jvm/java-8-oracle/jre
>         J2SDKDIR=/usr/lib/jvm/java-8-oracle
>         JAVA_HOME=/usr/lib/jvm/java-8-oracle
>         LANG=en_GB.UTF-8
>         LANGUAGE=en_GB.UTF-8
>         LC_ADDRESS=en_GB.UTF-8
>         LC_IDENTIFICATION=en_GB.UTF-8
>         LC_MEASUREMENT=en_GB.UTF-8
>         LC_MONETARY=en_GB.UTF-8
>         LC_NAME=en_GB.UTF-8
>         LC_NUMERIC=en_GB.UTF-8
>         LC_PAPER=en_GB.UTF-8
>         LC_TELEPHONE=en_GB.UTF-8
>         LC_TIME=en_GB.UTF-8
>         LOGNAME=<user>
>         MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path
>         PAPERSIZE=a4
>         PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin
>         PWD=<home>
>         QT_ACCESSIBILITY=1
>         QT_QPA_PLATFORMTHEME=qt5ct
>         SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/2172,unix/<hostname>:/tmp/.ICE-unix/2172
>         SHELL=/bin/bash
>         SHLVL=0
>         SSH_AGENT_PID=2239
>         SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
>         S_COLORS=auto
>         TZ=:/etc/localtime
>         USER=<user>
>         XAUTHORITY=<home>/.Xauthority
>         XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg
>         XDG_CURRENT_DESKTOP=X-Cinnamon
>         XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:<home>/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop
>         XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/<user>
>         XDG_RUNTIME_DIR=/run/user/1000
>         XDG_SEAT=seat0
>         XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
>         XDG_SESSION_DESKTOP=cinnamon
>         XDG_SESSION_ID=c1
>         XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
>         XDG_SESSION_TYPE=x11
>         XDG_VTNR=7
>
>         ----[ Gambas mailing-list is hosted by
>         https://www.hostsharing.net ]----
>
>
>     ----[ Gambas mailing-list is hosted by https://www.hostsharing.net
>     ]----
>
>
>
> -- 
> Fabien Bodard
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20191025/164e3526/attachment.html>


More information about the User mailing list