[Gambas-user] something wrong with new gambas version

Steve G simonlebon54 at yahoo.com
Thu Feb 10 20:43:11 CET 2022


It looks like I am using gtk + 2. My previous gambas version was version 3.15. I do not have a window manager installed until after this to correct the problem. It is being run on gnome 41.
I use very simple stuff.
Fmain.top=settings["fmaintop"]
That is done on the form open in the Form close I have
Settings["fmaintop"]=fmain.top

And yes I do save the setting. What I have noticed is that even after moving the window and then closing it the setting has the wrong coordinate it seems to have the original coordinate not the new one.

⁣Sent from TypeApp ​

On Feb 9, 2022, 18:09, at 18:09, user-request at lists.gambas-basic.org wrote:
>Send User mailing list submissions to
>	user at lists.gambas-basic.org
>
>To subscribe or unsubscribe via the World Wide Web, visit
>	http://lists.gambas-basic.org/listinfo/user
>or, via email, send a message with subject or body 'help' to
>	user-request at lists.gambas-basic.org
>
>You can reach the person managing the list at
>	user-owner at lists.gambas-basic.org
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of User digest..."
>
>
>Today's Topics:
>
>   1. HTML Tags in TextEditor is always foreground black
>      (Martin Belmonte)
>   2. Problem with new gambas (Steve G)
>   3. Re: Problem with new gambas (Beno?t Minisini)
>   4. Re: HTML Tags in TextEditor is always foreground black
>      (Beno?t Minisini)
>   5. Re: Right-to-left support in GTK OR QT (Beno?t Minisini)
>
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Thu, 10 Feb 2022 00:37:43 +0100
>From: Martin Belmonte <mbelmonte at belmotek.net>
>To: user at lists.gambas-basic.org
>Subject: [Gambas-user] HTML Tags in TextEditor is always foreground
>	black
>Message-ID: <fc8866df-1386-c7c0-7834-71b6492a7a10 at belmotek.net>
>Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
>The html tags forward color appear in black and are not visible in dark
>
>themes.
>I have tried to apply, in the form editing mode, the properties of the 
>control (texteditor) highlight and mode but there is no case, always
>the 
>same result.
>I don't know if it's a bug or if there's something I'm missing.
>Note: component: gb.gui   desktop: gtk3
>
>This using .theme
>https://imgur.com/mqyHH1J
>
>This using zen.theme
>https://imgur.com/v5Ywkpa
>
>Attachments, themes and the method for convert the info in theme file
>to 
>collection.
>
>Regards.
>Mart?n.
>-------------- next part --------------
>'' Carga el tema de visualizacion para el TextEditor
>
>Public Sub AplyTheme(Optional strPath As String)
>
>  Dim tgg As String
>  Dim tmp As String
>  Dim vrt As Variant
>  Dim cnx As New Collection
>
>  Dim r As String
>
>  cnx.Clear
>  'strPath = "./editor-themes/gaucho.theme"
>  'If Application.DarkTheme Then
>  'strPath = "./editor-themes/oblivion.theme"
>  'strPath = "./editor-themes/dark.theme"
>  'Else
>  strPath = "./editor-themes/zen.theme"
>  'Endif
>
>  For Each r In Split(File.Load(strPath), "\n")
>    If InStr(r, "=") > 0 Then
>      tgg = Split(r, "=")[0]
>      tmp = Replace(Split(r, "=")[1], "\"", "")
>      tmp = Replace(tmp, "#", "&H")
>      If InStr(tmp, ",") > 0 Then
>        'vrt = [Val(Split(tmp, ",")[0]), Split(tmp, ",")[1]]
>        vrt = Val(Split(tmp, ",")[0])
>      Else
>        vrt = Val(tmp)
>      Endif
>      cnx.Add(vrt, tgg)
>    Endif
>  Next
>  TextEditor1.Highlight = "HTML"
>  ' With TextEditor1
>  '    .Mode = "HTML"
>'   .Styles[Highlight.Background].Color = cnx["Background"]
>'Val(strVal)
>  '   .Styles[Highlight.Normal].Color = cnx["Normal"]
>  '   .Styles[Highlight.Keyword].Color = cnx["Keyword"]
>  '   .Styles[Highlight.DataType].Color = cnx["Datatype"]
>  '   .Styles[Highlight.Function].Color = cnx["Function"]
>  '   .Styles[Highlight.Operator].Color = cnx["Operator"]
>  '   .Styles[Highlight.Symbol].Color = cnx["Symbol"]
>  '   .Styles[Highlight.Number].Color = cnx["Number"]
>  '   .Styles[Highlight.String].Color = cnx["String"]
>  '   .Styles[Highlight.Comment].Color = cnx["Comment"]
>  '
>  '   .Styles[Highlight.Preprocessor].Color = cnx["Preprocessor"]
>  '   .Styles[Highlight.Breakpoint].Color = cnx["Breakpoint"]
>  '   .Styles[Highlight.Current].Color = cnx["Current"]
>  '   .Styles[Highlight.Selection].Color = cnx["Selection"]
>  '   .Styles[Highlight.Highlight].Color = cnx["Highlight"]
>  '   .Styles[Highlight.CurrentLine].Color = cnx["CurrentLine"]
>  '   .Styles[Highlight.Error].Color = cnx["Error"]
>  '
>  '   '.Styles[Highlight.Escape].Color = cnx["Escape"]
>  '
>  '   '.Styles[Highlight.Constant].Color = cnx["Constant"]
>  '   '.Styles[Highlight.Alternate].Color = cnx["Alternate"]
>  '   '.Styles[Highlight.Added].Color = cnx["Added"]
>  '   '.Styles[Highlight.Removed].Color = cnx["Removed"]
>  '   '.Styles[Highlight.Class].Color = cnx["Class"]
>  '   '.Styles[Highlight.Id].Color = cnx["Id"]
>  '   '.Styles[Highlight.Element].Color = cnx["Element"]
>  '   '.Styles[Highlight.Property].Color = cnx["Property"]
>  '   '.Styles[Highlight.Pseudo].Color = cnx["Pseudo"]
>  '   '.Styles[Highlight.Rule].Color = cnx["Rule"]
>  '   '.Styles[Highlight.Important].Color = cnx["Important"]
>  '   '.Styles[Highlight.File].Color = cnx["File"]
>  '   '.Styles[Highlight.Header].Color = cnx["Header"]
>  '   '.Styles[Highlight.Position].Color = cnx["Position"]
>  '   '.Styles[Highlight.Markup].Color = cnx["Markup"]
>  '   '.Styles[Highlight.Attribute].Color = cnx["Attribute"]
>  '   '.Styles[Highlight.Value].Color = cnx["Value"]
>  '   '.Styles[Highlight.Entity].Color = cnx["Entity"]
>  '   '.Styles[Highlight.WebMarkup].Color = cnx["WebMarkup"]
>  '   '.Styles[Highlight.WebComment].Color = cnx["WebComment"]
>  '   '.Styles[Highlight.WebArgument].Color = cnx["WebArgument"]
>  ' 'End With
>  ' 'Endif
>
>  TextEditor1.Refresh
>
>End
>-------------- next part --------------
>A non-text attachment was scrubbed...
>Name: dark.theme
>Type: application/x-theme
>Size: 390 bytes
>Desc: not available
>URL:
><http://lists.gambas-basic.org/pipermail/user/attachments/20220210/d55976ed/attachment-0003.bin>
>-------------- next part --------------
>A non-text attachment was scrubbed...
>Name: oblivion.theme
>Type: application/x-theme
>Size: 447 bytes
>Desc: not available
>URL:
><http://lists.gambas-basic.org/pipermail/user/attachments/20220210/d55976ed/attachment-0004.bin>
>-------------- next part --------------
>A non-text attachment was scrubbed...
>Name: zen.theme
>Type: application/x-theme
>Size: 391 bytes
>Desc: not available
>URL:
><http://lists.gambas-basic.org/pipermail/user/attachments/20220210/d55976ed/attachment-0005.bin>
>
>------------------------------
>
>Message: 2
>Date: Wed, 09 Feb 2022 14:57:23 -0900
>From: Steve G <simonlebon54 at yahoo.com>
>To: Gambas Mailing List <user at lists.gambas-basic.org>
>Subject: [Gambas-user] Problem with new gambas
>Message-ID: <f873717b-d0ef-4fd7-86c2-0a2d1eaf4635 at yahoo.com>
>Content-Type: text/plain; charset="utf-8"
>
>I am using version 3.16. It seems I have a problem that is serious to
>me. I was using the settings to save the last known location of each
>and every window in my programs. And of course when they open put the
>window back exactly where it was last time. My programming makes use of
>multiple monitors so this is extremely important to me. The various
>Windows have to go to the correct location. I just upgraded to the new
>gambas. My windows show up in random locations on different monitors.
>The information is being saved as to where they're supposed to go
>however the windows do not go back where they were saved. I am assuming
>this is a glitch in the new gambas. Or is there something new that I am
>missing?
>
>?Sent from TypeApp ?
>-------------- next part --------------
>An HTML attachment was scrubbed...
>URL:
><http://lists.gambas-basic.org/pipermail/user/attachments/20220209/33d1bced/attachment-0001.htm>
>
>------------------------------
>
>Message: 3
>Date: Thu, 10 Feb 2022 01:25:56 +0100
>From: Beno?t Minisini <g4mba5 at gmail.com>
>To: user at lists.gambas-basic.org
>Subject: Re: [Gambas-user] Problem with new gambas
>Message-ID: <ba39ff7b-713f-a52f-d3c4-5dabbc69e972 at gmail.com>
>Content-Type: text/plain; charset=UTF-8; format=flowed
>
>Le 10/02/2022 ? 00:57, Steve G via User a ?crit?:
>> I am using version 3.16. It seems I have a problem that is serious to
>
>> me. I was using the settings to save the last known location of each
>and 
>> every window in my programs. And of course when they open put the
>window 
>> back exactly where it was last time. My programming makes use of 
>> multiple monitors so this is extremely important to me. The various 
>> Windows have to go to the correct location. I just upgraded to the
>new 
>> gambas. My windows show up in random locations on different monitors.
>
>> The information is being saved as to where they're supposed to go 
>> however the windows do not go back where they were saved. I am
>assuming 
>> this is a glitch in the new gambas. Or is there something new that I
>am 
>> missing?
>> 
>> Sent from TypeApp <http://www.typeapp.com/r>
>> 
>
>More details are needed.
>
>Which Gambas version did you use before? Which desktop do you use?
>
>Nothing has changed recently about that. But maybe you now use the
>GTK+3 
>version of the IDE, instead of the QT5 one, and the GTK+3 component is 
>broken in restoring window placement? Or maybe it's your window
>manager?
>
>-- 
>Beno?t Minisini
>
>
>------------------------------
>
>Message: 4
>Date: Thu, 10 Feb 2022 01:34:59 +0100
>From: Beno?t Minisini <g4mba5 at gmail.com>
>To: user at lists.gambas-basic.org
>Subject: Re: [Gambas-user] HTML Tags in TextEditor is always
>	foreground black
>Message-ID: <fb03ef04-e496-7382-464a-6a21f9d1bb04 at gmail.com>
>Content-Type: text/plain; charset=UTF-8; format=flowed
>
>Le 10/02/2022 ? 00:37, Martin Belmonte a ?crit?:
>> The html tags forward color appear in black and are not visible in
>dark 
>> themes.
>> I have tried to apply, in the form editing mode, the properties of
>the 
>> control (texteditor) highlight and mode but there is no case, always
>the 
>> same result.
>> I don't know if it's a bug or if there's something I'm missing.
>> Note: component: gb.gui?? desktop: gtk3
>> 
>> This using .theme
>> https://imgur.com/mqyHH1J
>> 
>> This using zen.theme
>> https://imgur.com/v5Ywkpa
>> 
>> Attachments, themes and the method for convert the info in theme file
>to 
>> collection.
>> 
>> Regards.
>> Mart?n.
>> 
>> 
>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
>I don't understand what you are talking about exactly, it's not very
>clear.
>
>To load a theme file (in the development version), you must call:
>
>MyTheme = ThemeHighlighterTheme.Load(<path to theme file>)
>
>You get a ThemeHighlighterTheme object that you assign to your editor:
>
>MyEditor.Theme = MyTheme
>
>The 'ThemeHighlighterTheme.Load()' method takes care of not completely 
>defined theme file like 'zen.theme', and try to assign to non-defined 
>colors the other colors of the theme.
>
>Regards,
>
>-- 
>Beno?t Minisini
>
>
>------------------------------
>
>Message: 5
>Date: Thu, 10 Feb 2022 01:37:48 +0100
>From: Beno?t Minisini <g4mba5 at gmail.com>
>To: user at lists.gambas-basic.org
>Subject: Re: [Gambas-user] Right-to-left support in GTK OR QT
>Message-ID: <a6e9e175-4bba-13d3-d953-def749593354 at gmail.com>
>Content-Type: text/plain; charset=UTF-8; format=flowed
>
>Le 09/02/2022 ? 14:02, Mayost Sharon a ?crit?:
>> Hello
>> 
>> Attached are pictures of what GTK looks like in English and pictures
>of what it looks like in Hebrew
>> 
>> When I run the project (after going through MAKE) by giving it an
>environment he_IL
>> It shows all the controls well and from right to left (pictures
>attached)
>> 
>> If I run the same project in the en_US environment it shows all the
>controls from left to right (pictures attached)
>> 
>> The problem I want on the same project to mix let's say one ComboBox
>control will be right to left and another combo box that is left to
>right
>> 
>> If I try to do this by the new direction property it does not work
>> 
>> There are some controls that work partially for example: TabPanel,
>TabStip
>> 
>> I hope I was able to explain the issue
>> 
>> Many thanks
>> 
>
>You have a warning message telling that hebrew locale is not installed 
>on your system, which will break many right-to-left support as then 
>Gambas will use the default "C" locale instead.
>
>Please install the support for hebrew locale and try your project
>again.
>
>-- 
>Beno?t Minisini
>
>
>------------------------------
>
>Subject: Digest Footer
>
>----[ Gambas mailing-list is hosted by https://www.hostsharing.net
>]----
>
>
>------------------------------
>
>End of User Digest, Vol 53, Issue 25
>************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220210/a0ea393c/attachment-0001.htm>


More information about the User mailing list