[Gambas-user] Get data from a column (not the head) of the control WebTable

2017-01-12 Thread מיוסט שרון
First of all sorry for my english


I put on the Form the WebTable1

To set the top of the table as follows:

Dim i As Integer
  
  WebTable1.Columns.Count = 2
  For I = 0 To WebTable1.Columns.Count - 1
WebTable1.Columns [I] .Text = Chr $ (65 + I)
  Prev

So far there are two columns of the table head of the first column I Text of 
"A1" and
the second "A2"

To add rows to the table as follows:

  WebTable1.Count = 2

And the event "Data" of WebTable1 that:

Public Sub WebTable1_Data (Row As Integer, Column As Integer, Data As 
WebTableData)

  Data.Text = "This is the" & CStr (Row) & ":" & CStr (Column) & "cell"
  WebTable1.Rows [1] = 1
End

If I want to know the value of the second column in the title table I do this:

Print WebTable1.Columns [1] .Text

My question is how I can get the value of each column which is the second or 
third line,
etc.


--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Get data from a column (not the head) of the control WebTable

2017-01-12 Thread Benoît Minisini
Le 12/01/2017 à 10:07, מיוסט שרון a écrit :
> First of all sorry for my english
>
>
> I put on the Form the WebTable1
>
> To set the top of the table as follows:
>
> Dim i As Integer
>
>   WebTable1.Columns.Count = 2
>   For I = 0 To WebTable1.Columns.Count - 1
> WebTable1.Columns [I] .Text = Chr $ (65 + I)
>   Prev
>
> So far there are two columns of the table head of the first column I Text of 
> "A1" and
> the second "A2"
>
> To add rows to the table as follows:
>
>   WebTable1.Count = 2
>
> And the event "Data" of WebTable1 that:
>
> Public Sub WebTable1_Data (Row As Integer, Column As Integer, Data As 
> WebTableData)
>
>   Data.Text = "This is the" & CStr (Row) & ":" & CStr (Column) & "cell"
>   WebTable1.Rows [1] = 1

---> What is that supposed to mean?

> End
>
> If I want to know the value of the second column in the title table I do this:
>
> Print WebTable1.Columns [1] .Text
>
> My question is how I can get the value of each column which is the second or 
> third line,
> etc.
>

I don't understand your question. I just can tell you that WebTable does 
not store the content of the table. It is up to your code to do that. 
WebTable just asks you for the data through its "Data" event.

Regards,

-- 
Benoît Minisini

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Key.Text Bug

2017-01-12 Thread Benoît Minisini
Le 12/01/2017 à 08:36, Shane a écrit :
> Key.Text doesn't return anything in the following project
>

Key.Text is only available during the "Text" event. "KeyPress" is only 
for getting the Key.Code.

Regards,

-- 
Benoît Minisini

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] MenuButton question

2017-01-12 Thread Gianluigi
I set to Enabled = False both the SaveButton that the SaveMenu, but if I
click on the File button (showing the menu) and I move on the Save button I
can work in MenuSave.
To get the save menu to false I must to set to false each item.
Is it correct or is it a bug?

Example attached

Regards
Gianluigi

[System]
Gambas=3.9.90 r8051
OperatingSystem=Linux
Kernel=4.4.0-59-generic
Architecture=x86_64
Distribution=Ubuntu 16.04.1 LTS
Desktop=UNITY
Theme=Cleanlooks
Language=it_IT.UTF-8
Memory=15975M

[Libraries]
Cairo=libcairo.so.2.11400.6
Curl=libcurl.so.4.4.0
DBus=libdbus-1.so.3.14.6
GStreamer=libgstreamer-1.0.so.0.802.0
GTK+2=libgtk-x11-2.0.so.0.2400.30
GTK+3=libgtk-3.so.0.1800.9
OpenGL=libGL.so.1.0.0
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]
CLUTTER_IM_MODULE=xim
COMPIZ_BIN_PATH=/usr/bin/
COMPIZ_CONFIG_PROFILE=ubuntu
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-7cFT32ny4w
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
DESKTOP_SESSION=ubuntu
DISPLAY=:0
GB_GUI=gb.qt4
GDMSESSION=ubuntu
GDM_LANG=it
GIO_LAUNCHED_DESKTOP_FILE=/home//.local/share/applications/gambas3.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=7662
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_KEYRING_CONTROL=
GNOME_KEYRING_PID=
GPG_AGENT_INFO=/home//.gnupg/S.gpg-agent:0:1
GTK2_MODULES=overlay-scrollbar
GTK_IM_MODULE=ibus
GTK_MODULES=gail:atk-bridge:unity-gtk-module
HOME=/home/
IM_CONFIG_PHASE=1
INSTANCE=
JOB=unity-settings-daemon
LANG=it_IT.UTF-8
LANGUAGE=it
LOGNAME=
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
PATH=/home//bin:/home//.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PWD=/home/
QT4_IM_MODULE=xim
QT_ACCESSIBILITY=1
QT_IM_MODULE=ibus
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
QT_QPA_PLATFORMTHEME=appmenu-qt5
SESSION=ubuntu
SESSIONTYPE=gnome-session
SESSION_MANAGER=local/:@/tmp/.ICE-unix/1626,unix/:/tmp/.ICE-unix/1626
SHELL=/bin/bash
SHLVL=0
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TZ=:/etc/localtime
UPSTART_EVENTS=xsession started
UPSTART_INSTANCE=
UPSTART_JOB=unity7
UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1408
USER=
XAUTHORITY=/home//.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg
XDG_CURRENT_DESKTOP=Unity
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/
XDG_MENU_PREFIX=gnome-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_ID=c1
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
XDG_VTNR=7
XMODIFIERS=@im=ibus


MenuButtonTest-0.0.1.tar.gz
Description: GNU Zip compressed data
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Get data from a column (not the head) of the control WebTable

2017-01-12 Thread מיוסט שרון
This line:

WebTable1.Rows [1] = 1

I have written accidentally



I know,
To insert a data table
By event "Data"

But my question
When the table has 3 rows and each row has two columns

I want to get to the "Text" there is a row 3 column 2

I do not see such a possibility

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] MenuButton question

2017-01-12 Thread Gianluigi
image attached

2017-01-12 16:56 GMT+01:00 Gianluigi :

> I set to Enabled = False both the SaveButton that the SaveMenu, but if I
> click on the File button (showing the menu) and I move on the Save button I
> can work in MenuSave.
> To get the save menu to false I must to set to false each item.
> Is it correct or is it a bug?
>
> Example attached
>
> Regards
> Gianluigi
>
> [System]
> Gambas=3.9.90 r8051
> OperatingSystem=Linux
> Kernel=4.4.0-59-generic
> Architecture=x86_64
> Distribution=Ubuntu 16.04.1 LTS
> Desktop=UNITY
> Theme=Cleanlooks
> Language=it_IT.UTF-8
> Memory=15975M
>
> [Libraries]
> Cairo=libcairo.so.2.11400.6
> Curl=libcurl.so.4.4.0
> DBus=libdbus-1.so.3.14.6
> GStreamer=libgstreamer-1.0.so.0.802.0
> GTK+2=libgtk-x11-2.0.so.0.2400.30
> GTK+3=libgtk-3.so.0.1800.9
> OpenGL=libGL.so.1.0.0
> 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]
> CLUTTER_IM_MODULE=xim
> COMPIZ_BIN_PATH=/usr/bin/
> COMPIZ_CONFIG_PROFILE=ubuntu
> DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-7cFT32ny4w
> DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
> DESKTOP_SESSION=ubuntu
> DISPLAY=:0
> GB_GUI=gb.qt4
> GDMSESSION=ubuntu
> GDM_LANG=it
> GIO_LAUNCHED_DESKTOP_FILE=/home//.local/share/
> applications/gambas3.desktop
> GIO_LAUNCHED_DESKTOP_FILE_PID=7662
> GNOME_DESKTOP_SESSION_ID=this-is-deprecated
> GNOME_KEYRING_CONTROL=
> GNOME_KEYRING_PID=
> GPG_AGENT_INFO=/home//.gnupg/S.gpg-agent:0:1
> GTK2_MODULES=overlay-scrollbar
> GTK_IM_MODULE=ibus
> GTK_MODULES=gail:atk-bridge:unity-gtk-module
> HOME=/home/
> IM_CONFIG_PHASE=1
> INSTANCE=
> JOB=unity-settings-daemon
> LANG=it_IT.UTF-8
> LANGUAGE=it
> LOGNAME=
> MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
> PATH=/home//bin:/home//.local/bin:/
> usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:
> /usr/games:/usr/local/games:/snap/bin
> PWD=/home/
> QT4_IM_MODULE=xim
> QT_ACCESSIBILITY=1
> QT_IM_MODULE=ibus
> QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
> QT_QPA_PLATFORMTHEME=appmenu-qt5
> SESSION=ubuntu
> SESSIONTYPE=gnome-session
> SESSION_MANAGER=local/:@/tmp/.ICE-unix/
> 1626,unix/:/tmp/.ICE-unix/1626
> SHELL=/bin/bash
> SHLVL=0
> SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
> TZ=:/etc/localtime
> UPSTART_EVENTS=xsession started
> UPSTART_INSTANCE=
> UPSTART_JOB=unity7
> UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1408
> USER=
> XAUTHORITY=/home//.Xauthority
> XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg
> XDG_CURRENT_DESKTOP=Unity
> XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/
> local/share/:/usr/share/:/var/lib/snapd/desktop
> XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/
> XDG_MENU_PREFIX=gnome-
> XDG_RUNTIME_DIR=/run/user/1000
> XDG_SEAT=seat0
> XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
> XDG_SESSION_DESKTOP=ubuntu
> XDG_SESSION_ID=c1
> XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
> XDG_SESSION_TYPE=x11
> XDG_VTNR=7
> XMODIFIERS=@im=ibus
>
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Key.Text Bug

2017-01-12 Thread Shane
Ok thanks Benoît


On 12/01/17 23:56, Benoît Minisini wrote:
> Le 12/01/2017 à 08:36, Shane a écrit :
>> Key.Text doesn't return anything in the following project
>>
> Key.Text is only available during the "Text" event. "KeyPress" is only
> for getting the Key.Code.
>
> Regards,
>


--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Sdl Grabbed

2017-01-12 Thread Shane
Hi Benoit could you please add the Window.Grabbed function to the sdl2 
component like

we had with Sdl1


--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user