[Gambas-user] [Gambas Bug Tracker] Bug #1103: no border change on a imageview control.

bugtracker at ...3416... bugtracker at ...3416...
Tue May 9 19:16:21 CEST 2017


http://gambaswiki.org/bugtracker/edit?object=BUG.1103&from=L21haW4-

Klaus-Peter MAIS reported a new bug.

Summary
-------

no border change on a imageview control.

Type             : Bug
Priority         : Medium
Gambas version   : 3.9
Product          : Unknown


Description
-----------

If I want to change the border property in an imageview control, it always gets the value "false". The change is dynamic in the code.
I think this is a bug.
when you use only the ide, no problem. you can change the border param in the ide. but dynamicly no chance.

here a little code. put this in a empty form.
when you use an other control (button etc.) - no problem.
you can switch between true and false.
but the imageview can not store a "true" input.

Private myButton As New Button(Me) As "mBEvent"
Private myText As New TextLabel(Me)
Private myIView As New ImageView(Me)

Public Sub form_Open()
  
  With myButton
    .H = 35
    .w = 100
    .x = 20
    .y = 50
  End With
  
  With myText
    .H = 30
    .W = 180
    .X = 7
    .Y = 105
  End With
  
  With myIView
    .H = 130
    .W = 200
    .X = 190
    .Y = 50
  End With
  
End


Public Sub mbevent_Click()

  Select Case myIView.Border
    Case False
      myText.Text = conBool(myIView.Border)
      myIView.Border = True
    Case True
      myIView.Border = False
      myText.Text = conBool(myIView.Border)
  End Select

End

Static Public Sub conBool(myVar As Variant) As String

    Select Case TypeOf(myVar)

        Case 1
          Select Case myVar
            Case True
              Return "True"
            Case False 
              Return "False"
          End Select

    End Select
  
End


System information
------------------

[System]
Gambas=3.9.2
OperatingSystem=Linux
Kernel=4.4.0-77-generic
Architecture=x86_64
Distribution=Linux Mint 18 Sarah
Desktop=LXDE
Theme=Gtk
Language=de_DE.UTF-8
Memory=3632M

[Libraries]
Cairo=libcairo.so.2.11400.6
Curl=libcurl.so.4.4.0
DBus=libdbus-1.so.3.14.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.803.0
GTK+2=libgtk-x11-2.0.so.0.2400.30
GTK+3=libgtk-3.so.0.1800.9
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.58.0.0
QT4=libQtCore.so.4.8.7
QT5=libQt5Core.so.5.5.1
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

[Environment]
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-4VEy9eiJtl,guid=9a50d692646bed66c9835da75911c06f
DEFAULTS_PATH=/usr/share/gconf/LXDE.default.path
DESKTOP_SESSION=LXDE
DISPLAY=:0.0
GB_GUI=gb.qt4
GDMSESSION=LXDE
GDM_XSERVER_LOCATION=local
GTK_MODULES=gail:atk-bridge
HOME=<home>
LANG=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_MONETARY=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_NUMERIC=de_DE.UTF-8
LC_PAPER=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LOGNAME=<user>
MANDATORY_PATH=/usr/share/gconf/LXDE.mandatory.path
MDMSESSION=LXDE
MDM_LANG=de_DE.UTF-8
MDM_XSERVER_LOCATION=local
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PWD=<home>
QT_ACCESSIBILITY=1
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
QT_PLATFORM_PLUGIN=lxqt
QT_QPA_PLATFORMTHEME=lxqt
SAL_USE_VCLPLUGIN=gtk
SHELL=/bin/bash
SSH_AGENT_PID=1891
SSH_AUTH_SOCK=/tmp/ssh-tICDjAy3fB2Q/agent.1772
TZ=:/etc/localtime
USER=<user>
USERNAME=<user>
WINDOWPATH=8
XAUTHORITY=<home>/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-LXDE:/etc/xdg
XDG_CONFIG_HOME=<home>/.config
XDG_CURRENT_DESKTOP=LXDE
XDG_DATA_DIRS=/usr/local/share:/usr/share:/usr/share/gdm:/var/lib/menu-xdg:/usr/local/share/:/usr/share/:/usr/share/gdm/:/var/lib/menu-xdg/
XDG_MENU_PREFIX=lxde-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SESSION_COOKIE=4603ef0b0eb640e2836974a04d12e5ab-1494335597.743520-186849717
XDG_SESSION_DESKTOP=LXDE
XDG_SESSION_ID=c1
XDG_VTNR=8
_LXSESSION_PID=1772






More information about the User mailing list