[Gambas-user] Make Datacontrol act like textbox with password set to
Martin McGlensey
mmcg29440 at ...3163...
Thu Nov 6 14:36:29 CET 2014
Thanks, Tobias. Routine works perfectly.
Regards,
Marty
-----Original Message-----
From: gambas-user-request at lists.sourceforge.net
[mailto:gambas-user-request at lists.sourceforge.net]
Sent: Wednesday, November 5, 2014 1:45 AM
To: gambas-user at lists.sourceforge.net
Subject: Gambas-user Digest, Vol 102, Issue 6
Send Gambas-user mailing list submissions to
gambas-user at lists.sourceforge.net
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/gambas-user
or, via email, send a message with subject or body 'help' to
gambas-user-request at lists.sourceforge.net
You can reach the person managing the list at
gambas-user-owner at lists.sourceforge.net
When replying, please edit your Subject line so it is more specific than
"Re: Contents of Gambas-user digest..."
Today's Topics:
1. Re: Directory navigation in IDE PictureBox Picture property
not working (Beno?t Minisini)
2. Error configuring gambas3.6.1 (ePost)
3. Make Datacontrol act like textbox with password set to true
(Martin McGlensey)
4. Re: Make Datacontrol act like textbox with password set to
true (Tobias Boege)
5. Re: Directory navigation in IDE PictureBox Picture property
not working (Lee)
6. Re: Problems compiling Gambas 3.6.1 (Sebastian Kulesz)
7. Issue 576 in gambas: TextBox.Select not reliable
(gambas at ...2524...)
----------------------------------------------------------------------
Message: 1
Date: Mon, 03 Nov 2014 17:34:36 +0100
From: Beno?t Minisini <gambas at ...1...>
Subject: Re: [Gambas-user] Directory navigation in IDE PictureBox
Picture property not working
To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Message-ID: <5457AE9C.5060109 at ...1...>
Content-Type: text/plain; charset=windows-1252; format=flowed
Le 03/11/2014 16:59, Lee a ?crit :
> Hello,
>
> When I try to select a picture in the IDE PictureBox Picture property,
> the directory navigation does not seem to work. Clicking on any of the
> directories in the navigation bar (screenshot attached) does not
> change the current selected directory.
>
> I don't know if it's my system or not, but I have tried with two
> different users.
>
> [System]
> Gambas=3.6.0
> OperatingSystem=Linux
> Kernel=3.10.54-desktop-2.mga3
> Architecture=x86
> Distribution=Mageia 3
> Desktop=KDE4
> Theme=Oxygen
> Language=en_US.UTF-8
> Memory=1005M
> [Libraries]
> Cairo=libcairo.so.2.11200.12
> Curl=libcurl.so.4.3.0
> DBus=libdbus-1.so.3.7.2
> GStreamer=libgstreamer-0.10.so.0.30.0
> GStreamer=libgstreamer-1.0.so.0.5.0
> GTK+3=libgtk-3.so.0.600.4
> GTK+=libgtk-x11-2.0.so.0.2400.17
> OpenGL=libGL.so.1.2.0
> Poppler=libpoppler.so.34.0.0
> Qt4=libQtCore.so.4.8.6
> SDL=libSDL-1.2.so.0.11.4
>
>
> Lee
>
Picture files used by control properties must be located inside the project.
This is why the tab is named "Project", but maybe it is not very clear...
Regards,
--
Beno?t Minisini
------------------------------
Message: 2
Date: Mon, 3 Nov 2014 19:28:17 +0100
From: "ePost" <epost at ...3386...>
Subject: [Gambas-user] Error configuring gambas3.6.1
To: <gambas-user at lists.sourceforge.net>
Message-ID: <001801cff793$f06c0d20$d1442760$@skellner.de>
Content-Type: text/plain; charset="us-ascii"
Hello,
I can't configure gambas 3.6.1
(./reconv-all done with success, reconv in ./main got same information about
configure.ac and configure.in)
The following error occurs:
bananapi at ...3387... ~/gambas3-3.6.1 $ ./configure -C
configure: loading cache config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for a BSD-compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p
checking for gawk... (cached) mawk
checking whether make sets $(MAKE)... (cached) yes
checking whether make supports nested variables... (cached) yes
checking whether make supports nested variables... (cached) yes
checking build system type... (cached) armv7l-unknown-linux-gnueabihf
checking host system type... (cached) armv7l-unknown-linux-gnueabihf
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
=== configuring in main (/home/bananapi/gambas3-3.6.1/main)
configure: running /bin/bash ./configure --disable-option-checking
'--prefix=/usr' --cache-file=../config.cache --srcdir=.
configure: loading cache ../config.cache
./configure: line 2068: syntax error near unexpected token `main'
./configure: line 2068: `GB_INIT(main)'
configure: error: ./configure failed for main
bananapi at ...3387... ~/gambas3-3.6.1 $
Any idea to solve the problem.?
Best regards
Simon Kellner
------------------------------
Message: 3
Date: Mon, 3 Nov 2014 15:45:47 -0500
From: "Martin McGlensey" <mmcg29440 at ...3163...>
Subject: [Gambas-user] Make Datacontrol act like textbox with password
set to true
To: <gambas-user at lists.sourceforge.net>
Message-ID:
<!&!AAAAAAAAAAAYAAAAAAAAAMgV5JlR2FVDl5W96SsTJPLCgAAAEAAAANcGjRTn6SBLtdA3h5Tm
R+sBAAAAAA==@frontier.com>
Content-Type: text/plain; charset="us-ascii"
Hello,
I need to have users enter a password into a data control. The password
should be hidden from view as the user types. This can be done in a textbox
by setting the password property to true. Nice but, there is no password
property for a data control. An old post by Bennoit suggests the following:
Dim hTextbox As TextBox = MyDataControl.Children[0]
hTextBox.Password = True
The first statement returns error - "Wanted textbox got datacontrol" Is it
=Datasource.Children or is it =datacontrol like Datacontrol4?
Maybe you guys could point out my mistake or suggest a better way. I'm using
Gambas 3.6.2 on Ubuntu 12.04.
Thanks,
Marty
------------------------------
Message: 4
Date: Mon, 3 Nov 2014 22:24:44 +0100
From: Tobias Boege <taboege at ...626...>
Subject: Re: [Gambas-user] Make Datacontrol act like textbox with
password set to true
To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Message-ID: <20141103212444.GD655 at ...2774...>
Content-Type: text/plain; charset=us-ascii
On Mon, 03 Nov 2014, Martin McGlensey wrote:
> Hello,
>
>
>
> I need to have users enter a password into a data control. The password
> should be hidden from view as the user types. This can be done in a
textbox
> by setting the password property to true. Nice but, there is no password
> property for a data control. An old post by Bennoit suggests the
following:
>
>
>
> Dim hTextbox As TextBox = MyDataControl.Children[0]
>
> hTextBox.Password = True
>
>
>
> The first statement returns error - "Wanted textbox got datacontrol" Is
it
> =Datasource.Children or is it =datacontrol like Datacontrol4?
>
>
>
> Maybe you guys could point out my mistake or suggest a better way. I'm
using
> Gambas 3.6.2 [...]
>
Maybe I'll borrow your time machine some day ;-)
About your problem: I have just tested this code and it worked here:
--8<------------------------------------------------------------------------
'' Set the Password property of all TextBoxes contained in hDataControl
'' (normally just one) to bVal.
Private Sub SetPassword(hDataControl As DataControl, bVal As Boolean)
Dim aTextboxes As TextBox[] = Discover(hDataControl, "TextBox")
Dim hTextBox As TextBox
For Each hTextBox In aTextboxes
hTextBox.Password = bVal
Next
End
'' Return all children of hContainer (recursively) which are of class
sClass.
Private Function Discover(hContainer As Container, sClass As String) As
Control[]
Dim hControl As Control
Dim aRes As New Control[]
For Each hControl In hContainer.Children
If hControl Is Container Then aRes.Insert(Discover(hControl, sClass))
If Object.Type(hControl) = sClass Then aRes.Add(hControl)
Next
Return aRes
End
--8<------------------------------------------------------------------------
This is a plain generalisation of Benoit's suggestion. It doesn't assume
that the TextBox is at some specific index in the children array and it
doesn't assume that there is only one TextBox. We set the Password property
of *every* TextBox, just to be sure -- but there should really be just one.
It will work until something *seriously* changes in the way DataControl
is implemented or container children are managed. But it's hard to imagine
that such a big change will ever happen.
Regards,
Tobi
--
"There's an old saying: Don't change anything... ever!" -- Mr. Monk
------------------------------
Message: 5
Date: Mon, 03 Nov 2014 18:00:45 -0500
From: Lee <t.lee.davidson at ...626...>
Subject: Re: [Gambas-user] Directory navigation in IDE PictureBox
Picture property not working
To: gambas-user at lists.sourceforge.net
Message-ID: <5458091D.40308 at ...626...>
Content-Type: text/plain; charset=windows-1252; format=flowed
On 11/03/2014 11:34 AM, Beno?t Minisini wrote:
> Picture files used by control properties must be located inside the
> project. This is why the tab is named "Project", but maybe it is not
> very clear...
>
> Regards,
>
> -- Beno?t Minisini
Ah, okay, that makes sense. (Maybe that navigation bar shouldn't even be
provided.)
Thank you, Beno?t.
------------------------------
Message: 6
Date: Tue, 4 Nov 2014 00:48:28 -0300
From: Sebastian Kulesz <sebikul at ...626...>
Subject: Re: [Gambas-user] Problems compiling Gambas 3.6.1
To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Message-ID:
<CAAkQKUbmay4snnmAMpA-G7PpKqjX3zBSvJuhj_eYn8HN-MyHdw at ...627...>
Content-Type: text/plain; charset=UTF-8
Beno?t, could you please backport this fix to the 3.6 branch? It was the
only thing keeping me from compiling the compiler and interpreter under Mac
OS without issues. I will post another thread in a few days with the
remaining problems I had.
On Mon, Nov 3, 2014 at 6:46 AM, CJ <lists at ...2828...> wrote:
>
> > I tried to fix it in #6607. What compiler (version) do you use? I ask
> > because there is nothing more in those lines than a forward
> > typedef. As far as I can remember back, all my compilers could handle
> this.
>
> See below...
>
> gcc-4.4 4.4.5-8 The GNU C compiler
>
> Just a FYI if it helps, the last version I compiled without problems on
the
> same setup was 3.5.4.
>
> /CJ
>
>
>
>
----------------------------------------------------------------------------
--
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
------------------------------
Message: 7
Date: Wed, 05 Nov 2014 06:45:11 +0000
From: gambas at ...2524...
Subject: [Gambas-user] Issue 576 in gambas: TextBox.Select not
reliable
To: gambas-user at lists.sourceforge.net
Message-ID:
<0-6813199134517018827-3097106346779491654-gambas=googlecode.com at ...3390...
com>
Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes
Status: New
Owner: ----
Labels: Version-3.6.0 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 576 by chr4... at ...1601...: TextBox.Select not reliable
https://code.google.com/p/gambas/issues/detail?id=576
Hi,
1) By developing an alternative combobox I found an issue with Gambas
TextBox. The alternative combobox inherits TextBox. If the user enters
letters in the combobox it searches in a list and completes the user's
entry with matching words as a selection. This is done in the project in
Sub SelectToInput() on line 460 with the code
Me.Select(lensearch, lengridtext).
To reproduce (but is it not always reliable reproducible):
Enter one Letter after the other in the combobox
M - i (the combobox shall complete to Mi-lben)
n - e - r - a - f - u - t - t - e - r
(the combobox shall complete to Min-eralfutter after the "n" and so on)
After a couple of entered letters, sometimes after the second, very often
within five, the combobox suddenly does not display the completed text as
selection anymore. But as one can see by watching debug output in the code,
the selection is registered by the interpreter.
This bug prevents me from further developing of the combobox. tux_ in the
German forum gambas-club.de could reproduce this bug on his system.
2) Give information about your system. Use the 'System information' menu in
the Gambas IDE, and paste the result there.
[System]
Gambas=3.6.0
OperatingSystem=Linux
Kernel=3.11.0-20-generic
Architecture=x86_64
Distribution=Ubuntu 14.04.1 LTS
Desktop=XFCE
Theme=QGtk
Language=de_DE.UTF-8
Memory=3848M
[Libraries]
Cairo=libcairo.so.0.0.0
Cairo=libcairo.so.2.11301.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.204.0
GTK+3=libgtk-3.so.0.1000.8
GTK+=libgtk-x11-2.0.so.0.2400.23
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.44.0.0
Qt4=libQtCore.so.4.8.6
SDL=libSDL-1.2.so.0.11.4
Attachments:
DegComboBox-0.0.2.tar.gz 16.0 KB
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
------------------------------
----------------------------------------------------------------------------
--
------------------------------
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
End of Gambas-user Digest, Vol 102, Issue 6
*******************************************
More information about the User
mailing list