Re: [Gambas-user] gb.web.form: Multiple main forms
On Sun, 13 Nov 2016, Benoît Minisini wrote: > Le 13/11/2016 à 17:47, Tobias Boege a écrit : > > Hi Benoit, > > > > in revision #7958 you removed support for multiple main forms in > > gb.web.form. > > I have two webforms, a Login.webform and a MainSite.webform, the latter of > > which is my startup class. If the user is not logged in yet, according to > > the > > session, I used to > > > > Response.Redirect("/Login") > > > > which would run the login webform. This does not seem to be intended > > anymore. > > How would I do something like that now? I don't want all the code in one > > webform, obviously. > > > > Regards, > > Tobi > > > > I'm aware of the problem, but didn't find a good solution yet. > > Maybe the multiple main form support will come back. > The Webform.Startup introduced in #7977 does the job for me. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gb.web.form feature request: Custom title bar for windows
On Sun, 20 Nov 2016, Benoît Minisini wrote: > Le 20/11/2016 à 16:09, Tobias Boege a écrit : > > Hi Benoit, > > > > I would like to be able to render the title bar of a window by myself, > > because the gb.web.form standard does not match the design of my site. > > Is there any hook for that already? If not, I could imagine it being a > > new Titlebar event which is raised by the form. If the user handles it, > > they should Stop Event afterwards to prevent the standard title bar > > from being rendered. > > > > However, I *would* like gb.web.form to still handle window resizing and > > moving. Is it possible? > > > > Regards, > > Tobi > > > > Isn't style sheet enough to customize the window title bar? > Yes, I'm getting by with CSS for now. The two things I was worried about were: that I may want to add a custom button to the title bar in the future and that my style sheets break when you change some CSS class in gb.web.form. But for now, I'm happy. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gb.web.form feature request: Custom title bar for windows
Le 20/11/2016 à 16:09, Tobias Boege a écrit : > Hi Benoit, > > I would like to be able to render the title bar of a window by myself, > because the gb.web.form standard does not match the design of my site. > Is there any hook for that already? If not, I could imagine it being a > new Titlebar event which is raised by the form. If the user handles it, > they should Stop Event afterwards to prevent the standard title bar > from being rendered. > > However, I *would* like gb.web.form to still handle window resizing and > moving. Is it possible? > > Regards, > Tobi > Isn't style sheet enough to customize the window title bar? -- Benoît Minisini -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Monitoring DBus-Signal ?
Am 19.11.2016 um 17:14 schrieb Hans Lehmann: I want to see the signal 'VolumeChanged' sent by the application 'org.gtk.Private.MTPVolumeMonitor' with the interface 'org.gtk.Private.RemoteVolumeMonitor'. The dbus-monitor program shows: signal sender=:1.10 -> dest=(null destination) serial=319 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=VolumeChanged I am not able to observe this DBus signal. The project is attached. The project follows the documentation under the link: http://gambaswiki.org/wiki/doc/dbus#t4 . Hello, this line in attached Project: $hDBusSignal = New DBusSignal(DBus.Session, "org.gtk.Private.RemoteVolumeMonitor", True) As "MySignal" generated an error. Example: USB-Stick in: Under Stack.Backstrace in line 19 (DBusSignal.DBusObserver_Message.19): Error-Message: Typ mismatch: wanted String, got String[] instead USB-Stick out: Under Stack.Backstrace in line 19 (DBusSignal.DBusObserver_Message.19): Error-Message: Typ mismatch: wanted String, got Collection instead Regards, Hans SignalWatch-1.2.11.tar.gz Description: application/gzip -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] DBusSignal Error (Send)
Am 18.11.2016 um 18:16 schrieb Benoît Minisini: > Thus: > > DBus[$sDBusService].Raise($hDBusObject, "GetGBVersion", ["3.9.1"]) > > is replaced by: > > DBus[$sDBusService].Raise($hDBusObject, > "org.gambas.signaltx2.nameversion.GetGBVersion", ["3.9.1"]) Hello, This change has the disadvantage that the signal is not displayed in the introspection! With the code: Event GetGBVersion (version As String), the XML file of Introspection contains the interface 'org.gambas.signaltx.nameversion' and the signal 'GetGBVersion'. However, the interpreter terminates with an error message. What now? What to do? Regards, Hans -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Load modules dynamically ? Works as promised. Thanks. Closed
On 2016-11-16 06:42, u...@gmx.ch wrote: > Dear gbWilly > > Works as promised, great! > Maintaining becomes much easier now. > Thanks a lot! > > Regarding http://gambaswiki.org/wiki/doc/library: > - My system: Xubuntu 16.04 LTS, Gambas 3.9.1 > - The "project properties" looks slightly different (no problem) > - The "Component property" I could not find at all. >(but the given EXPORT-Link did it) Well, since version 3.9 stuff has changed concerning libraries. Seems the wiki still hasn't undergone that change :) Luckily, you managed, even with outdated instructions :) Enjoy, gbWilly -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] gb.web.form feature request: Custom title bar for windows
Hi Benoit, I would like to be able to render the title bar of a window by myself, because the gb.web.form standard does not match the design of my site. Is there any hook for that already? If not, I could imagine it being a new Titlebar event which is raised by the form. If the user handles it, they should Stop Event afterwards to prevent the standard title bar from being rendered. However, I *would* like gb.web.form to still handle window resizing and moving. Is it possible? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Load modules dynamically ?
On 2016-11-16 08:52, Rolf-Werner Eilert wrote: > Am 14.11.2016 19:56, schrieb gbwi...@openmailbox.org: >> On 2016-11-14 18:17, u...@gmx.ch wrote: >>> Dear Gambas users, >>> >>> >>> The situation: >>> - Different gambas-programs, >>> - all using similar functions >>> - All those functions are packed in modules. >>> >>> The question: >>> I there a way to load those modules at runtime? >>> As for example in the FMain.Form_Open, something like: >>> - "ModuleXY.Load(Path_to_Module)", or >>> - "ImportModule("Path_to_module","LoadAsModuleName") >>> >>> My hope: >>> Stopping to struggle with similar but diverging functions in >>> different >>> programs by loading a "Master-Module" at runtime. >>> >>> >>> Sorry if there is a simple and stupid answer, I've not found it yet. >>> >>> >> In short: >> I would put the modules in a seperate gambas application and make that >> a >> library, instead of regular application. >> Next make your applications depend on the library (done in project >> properties of the applications -> refers to an executable of the >> library), and they can use the common functions. >> >> More info: http://gambaswiki.org/wiki/doc/library >> >> If you have any questions, just ask. >> >> gbWilly >> >> >> > > What will the Gambas IDE do when a program is packaged (Make > installation package)? Will it add the library to the package, or will > I > have to take care for it myself? > > Rolf Hi Rolf, First, you need to package the Gambas library. Next, you package the application. In the packaging wizard (when packaging the application) at the step Extra dependencies, you need to add the exectable name and version of the library. The name of the library has to be in lower case (and without the .gambas extension). The library version, is the version you used when packaging the library. When distributing the application you need to distribute the libary package along with it. When installing the application, the OS installer will check if the library is installed, if not it will not install the application. So, first install the library package, next the application package and you should be good. Have fun, gbWilly -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user