Activity for stabud

  • stabud stabud created ticket #318

    Add a Timer setting for the CondWait function.

  • stabud stabud posted a comment on ticket #493

    Update: bug still not fixed: https://www.freebasic.net/forum/viewtopic.php?t=31958

  • stabud stabud posted a comment on discussion setedit-users

    Hi! How to set English menu? I have Russian-speaking Linux. The menu contains strange symbols. Options->encoding only changes the encoding of the file.

  • stabud stabud posted a comment on discussion General Discussion

    Hi! 1) Delete all files related to window9 on your computer 2) Download the latest version of window9 (archive window9_linux.tar.gz) 3) Select libwindow9.a version from bin / Lin64 / gtk3 folder for 64-bit system or bin / Lin32 / gtk3 for 32-bit system 4) In the file window9.bi uncomment the line '#define USE_GTK3 5) GTK3 needs libwebkit2gtk-3.0, but your current version is compatible with it. Just create a symlink from your libwebkit2gtk-4.0.so .... to libwebkit2gtk-3.0.so

  • stabud stabud posted a comment on ticket #1421

    It's clear. Thanks for the answer!

  • stabud stabud created ticket #1421

    How compile shared library with lexers?

  • stabud stabud created ticket #932

    Examples bugs cairo

  • stabud stabud posted a comment on discussion General Discussion

    Try checking what the BITMAP is before sending it to the RESIZE_IMAGE function: Var bitmap=Load_image("image.jpg") if bitmap then messbox("success" , "success") Resize_image(.....) else messbox("error" , "error") endif I can't find the error from here. Unambiguously, an invalid BITMAP is received in the RESIZE_IMAGE function or other functions. Find this place in the code where the error takes off. Most likely you made a mistake with the file load line in Load_image

  • stabud stabud posted a comment on discussion General Discussion

    Do you call the FREE_IMAGE function and then use the image functions? The FREE_IMAGE function is called when the image is no longer needed. Basically: after calling FREE_IMAGE, the image no longer exists and any access to this image causes an error, even if it is displayed in the gadget.

  • stabud stabud posted a comment on discussion General Discussion

    Hi! I have no such mistakes. The most simple code attach where this error appears.

  • stabud stabud posted a comment on discussion General Discussion

    Your error seems to occur due to the fact that you do not free memory after resize_image. The principle should be as follows: dim imgFullSize as Hbitmap dim imgScaled as Hbitmap dim as Long imgWidth , imgHeight imgFullSize = Load_image(file) imgScaled = Resize_image(imgFullSize ,imgWidth , imgHeight) Free_Image(imgFullSize) Advice: 1) No need to create 20 gadgets every time (ButtonImageGadget). Use SetImageGadget to change the image in it. 2) Create an array for images at the beginning of the program,...

  • stabud stabud posted a comment on discussion General Discussion

    Hi John! Provide code + images, then maybe we will find a solution or errors.

  • stabud stabud posted a comment on discussion General Discussion

    The setgadgettext function does not tolerate being sent a zero-length string. For example, you cannot do this: setgadgettext (gadget, ""). If you need to make the gadget empty, then you can do so setgadgettext (gadget, " "), or so setgadgettext (gadget, chr (0)).

  • stabud stabud posted a comment on discussion General Discussion

    Please post the minimum possible code in which you receive this error.

  • stabud stabud posted a comment on discussion General Discussion

    The help says (Please translate this sentence yourself into your native language.): При клике по CheckBoxGadget , в Windows сначала меняется состояние гаджета, а потом отправляется событие окну о клике мышкой по гаджету, в Linux наоборот. The GetGadgetState function is needed to determine the state of the gadget in case of events with other gadgets. For example, by clicking on ButtonGadget, you can find out in its click event the current state of CheckBoxGadget (as it is in the help example) If you...

  • stabud stabud posted a comment on ticket #1

    Ваши доводы мне понятны и возможно в будущем я найду в себе силы , желание и время на реализацию. Спасибо , что нашли время и желание на отзыв и содержательные советы!

  • stabud stabud posted a comment on ticket #1

    Добрый день! 1) Язык переключается в меню: Options->Customizing the editor... 2) Мне казалось, что установка пути к компилятору ни у кого не вызовет проблем, тем более , что каждый пользователь сам желает устанавливать компилятор туда , куда ему хочется. Путь до файла fbc.exe так же задается в настройках 3) Делать установщик наверное просто лень. Слишком малая аудитория , использующих программу. 4) На этой странице: https://sourceforge.net/projects/iupfbeditor/ лицензия указывается. так же про лицензию...

  • stabud stabud posted a comment on discussion General Discussion

    John! I'll show you an example of how examples are indicated in the help: http://users.freebasic-portal.de/freebasicru/window9lib/ScrollBarGadget.html See example 4, there it is indicated in the title (only for Windows)

  • stabud stabud posted a comment on discussion General Discussion

    Hi John! You are most likely running examples for the Windows platform , while working on Linux There are some examples in the library help that only work for one platform (this should be quoted before the example).

  • stabud stabud posted a comment on discussion General Discussion

    Hi John! Perhaps this is a spelling mistake? Understand, I am not an English speaking nationality. Even in their own language, people often make typos. It is too late to fix, as it will break the compatibility of the programs/source codes. Let it remain as it is, I hope English-speaking users will forgive me :)

  • stabud stabud posted a comment on discussion General Discussion

    Run the compiled program directly from the terminal , what is the result ? In any case , you can try to recompile the library window9 from source and then put the compiled library in the right folder.

  • stabud stabud posted a comment on discussion General Discussion

    No, this operation with MessageBox is impossible (at least I don’t know this way).

  • stabud stabud posted a comment on discussion General Discussion

    Hi John! Yes, you understand correctly, the button background doesn't change.

  • stabud stabud posted a comment on discussion General Discussion

    Hi John! Help indicates that style ES_UPPERCASE only for Windows. On Linux, you can try to edit the text in the callback function, but I don’t know how fast it will work: #include "window9.bi" Dim As HWND hwnd , edit dim as string formula Dim shared As integer event sub insertText (entry as any ptr, user_data as gpointer) dim as const zstring ptr pszText = gtk_entry_get_text(entry) if pszText andalso *pszText <> "" then dim as string sText = UCASE(wstr(*pszText)) gtk_entry_set_text(entry , sText)...

  • stabud stabud posted a comment on discussion General Discussion

    Thank you, but I do not have paypal cards, and indeed any cards that could be replenished with currency. It makes no sense to provide a "Yandex Money" electronic wallet; it only accepts rubles. I have never had any money transfers from outside the Russian Federation, therefore, it is irrational for me to hold an international card for which bankers regularly strip off their interest just because it exists. All the best, John!

  • stabud stabud posted a comment on discussion General Discussion

    Hi John! I managed to temporarily connect my old laptop to the TV and it seems the code that I was looking for should work for you too: #include "window9.bi" dim as GdkScreen ptr scr dim as Long num_monitors dim as Long i scr = gdk_screen_get_default () num_monitors = gdk_screen_get_n_monitors (scr) ? "Screen: " & gdk_screen_get_width(scr) & "x" & gdk_screen_get_height(scr) for i as long = 0 to num_monitors-1 dim as GdkRectangle r gdk_screen_get_monitor_geometry (scr, i, @r) ? i , r.width , r.height...

  • stabud stabud posted a comment on discussion General Discussion

    I stop such games. I cannot program blindly. I tried, but all these actions are a lot of stupidity, even though it brought me little benefit in understanding the work of LIBXRANDR. Perhaps someday I will have the opportunity to program on a computer with 2 monitors, but for now you’ve highlighted the results. Thank you for helping me. All the best!

  • stabud stabud posted a comment on discussion General Discussion

    Also I ask you to run again this example of the GDK: #include "window9.bi" dim as GdkScreen ptr scr dim as Long num_monitors scr = gdk_screen_get_default () num_monitors = gdk_display_get_n_screens (gdk_display_get_default ()) ? num_monitors sleep

  • stabud stabud posted a comment on discussion General Discussion

    Hi John! Even the GDK code doesn't work ... Can you try this code yet? #include "window9.bi" #include "X11/extensions/Xrandr.bi" #inclib "X11" #inclib "Xrandr" type T_E_S_D as zstring*30 szName as zstring*20 szRes End Type dim shared as Long iResetEnum = -1 redim shared m(10) as T_E_S_D function EnumSettingsDisplay (sNameIF as string = "" ) as string if iResetEnum = -1 then dim as Display ptr dpy = XOpenDisplay(0) if dpy = 0 then return "-1" dim as window root = RootWindow(dpy, 0) if root = 0 then...

  • stabud stabud posted a comment on discussion General Discussion

    Hi John! That will show this code: #include "window9.bi" dim as GdkScreen ptr scr dim as Long num_monitors dim as Long i scr = gdk_screen_get_default () num_monitors = gdk_display_get_n_screens (gdk_display_get_default ()) 'for gtk3 gdk_display_get_n_monitors for i as long = 0 to num_monitors - 1 dim as GdkRectangle r gdk_screen_get_monitor_geometry (scr, i, @r) ? i , r.width , r.height next sleep

  • stabud stabud modified a comment on discussion General Discussion

    That will show this code: #include "window9.bi" dim as Long iDisplay do dim as Display ptr dpy = XOpenDisplay(":" & iDisplay) if dpy then XCloseDisplay(dpy) dim as Long iScreen ? "Display: " & iDisplay do dpy = XOpenDisplay(":" & iDisplay & "." & iScreen) if dpy then ? "Screen: " & iDisplay & "." & iScreen dim as Integer iCount = XScreenCount(dpy) if iCount then for i as integer = 0 to iCount - 1 ? XDisplayWidth(dpy , i) , XDisplayHeight(dpy , i) Next EndIf iScreen +=1 XCloseDisplay(dpy) else exit...

  • stabud stabud posted a comment on discussion General Discussion

    That will show this code: #include "window9.bi" dim as Long iDisplay do dim as Display ptr dpy = XOpenDisplay(":" & iDisplay) if dpy then XCloseDisplay(dpy) dim as Long iScreen ? "Display: " & iDisplay do dpy = XOpenDisplay(":" & iDisplay & "." & iScreen) if dpy then ? "Screen: " & iDisplay & "." & iScreen dim as Integer iCount = XScreenCount(dpy) if iCount then for i as integer = 0 to iCount - 1 ? XDisplayWidth(dpy , i) , XDisplayHeight(dpy , i) Next EndIf iScreen +=1 else exit do endif loop else...

  • stabud stabud posted a comment on discussion General Discussion

    How many files you have at : /tmp/.X11-unix/ ?

  • stabud stabud posted a comment on discussion General Discussion

    Do you have the ability to connect monitors to the same interface (hdmi or vga or ...)? I.e: 1 monitor using HDMI , 2 monitor using HDMI or 1 monitor using VGA , 2 monitor using VGA .... Then execute XRANDR and show the result of work. It’s important for me to understand what XRANDR will return in this situation As important info XRANDR in which both monitors duplicate the same information (that is, displays the same thing on two monitors)

  • stabud stabud posted a comment on discussion General Discussion

    hm... Say what the terminal displays if you run this code: #include "window9.bi" Dim As String Directory = "/tmp/.X11-unix/" Var Dir_=ExamineDirectory(Directory, "*.*") Do If DirectoryEntryAttributes(Dir_) And FILE_ATTRIBUTE_DIRECTORY Then else dim as string sDispName = DirectoryEntryName(Dir_) if left(sDispName , 1) <> "X" then continue do else dim as Display ptr dpy = XOpenDisplay(":" & mid(sDispName , 2)) if dpy <> NULL then ? "Display: " & mid(sDispName , 2) dim as integer iCount = XScreenCount(dpy)...

  • stabud stabud posted a comment on discussion General Discussion

    Say what the terminal displays if you run this code: #include "window9.bi" dim as Display ptr dpy = XOpenDisplay(0) dim as Integer iCount = XScreenCount(dpy) if iCount then for i as integer = 0 to iCount - 1 ? XDisplayWidth(dpy , i) , XDisplayHeight(dpy , i) Next EndIf XCloseDisplay(dpy) sleep

  • stabud stabud posted a comment on discussion General Discussion

    Ok, let's get it right from the start :) Can you show the result of the XRANDR output for your dual-monitor computer? Also, please show what the functions output: GetCurrentSettingsDisplay + GetHeightDesktop + GetWidthDesktop

  • stabud stabud posted a comment on discussion General Discussion

    If I could program in C very well, I would do your last suggestion. Unfortunately that is why I program in basic. And what does the language C have to do with it? I meant that window9 code is open and you can always make changes to existing functions written in freebasic. As for this topic with monitors, I still physically cannot write these functions, since I only have one monitor and it is a little lively. :)

  • stabud stabud posted a comment on discussion General Discussion

    I have one question: if 4-6 monitors are connected to the computer, then which monitor should display the window in the center? We cannot predict user preferences in advance . Therefore, programs make it possible to maintain the location of the window. CenterWindow is simply one of the default options for users. Agree that you cannot create something universal for all tasks. If you need such a functional so much, you can do what I do in such situations. I take the ready-made function, change it as...

  • stabud stabud posted a comment on discussion General Discussion

    John! I already wrote that I will not do anything with this function and even described the reason. Does XRANDR work well for you? On my main computer, it’s also good, but on my laptops it shows the wrong information. How can I rely on functionality that does not guarantee proper operation? Let everything remain as it is.

  • stabud stabud posted a comment on discussion General Discussion

    Hi! This error occurs if the 3D.png file is not at the specified address. Please note that I recently updated the library. In the update, including I made changes to the Load_image function. Now, if the file is not found, such errors should not be, the function will simply return zero.

  • stabud stabud posted a comment on discussion General Discussion

    I'm sorry, but on Linux there is no unification for display-related functionality. That is, that code that can execute well on one machine may not work on another machine. At least I don’t know a 100% working way for all Linux to get full reliable information about the display. Even the famous XRANDR program on different machines / distributions behaves differently.

  • stabud stabud posted a comment on discussion General Discussion

    On the page which I have indicated, there are instructions. Quote: Install Howto 1) Add RPM Fusion repositories to your system 2) Download latest rpmsphere-release rpm from 3) Install rpmsphere-release rpm: rpm -Uvh rpmsphere-release*rpm 4) Install webkitgtk rpm package: dnf install webkitgtk

  • stabud stabud posted a comment on discussion General Discussion

    webkit: link Provides: libwebkitgtk-1.0.so.0()(64bit) gtkgl2: link suggest to download Source Package and build library from sources. I already wrote how, but I'll explain again: 1) download 2) unzip and go to folder: gtkglarea-2.0.1 3) ./configure 4) go to folder gtkgl 5) make 6) in a hidden folder .libs will need a library : libgtkgl-2.0.so.1.0.1 7) put it in /usr/lib64 8) create her symbolic links: libgtkgl-2.0.so and libgtkgl-2.0.so.1

  • stabud stabud posted a comment on discussion General Discussion

    I'm counting on you linux not new, just chosen the not easiest Linux distribution. For example, distributions based on Debian , required packages are available for installation directly from synaptic. Well , let me explain: you need the packages provided FEDORA31 no, but you can them find\install. For example, the package webkitgtk-1.0-devel can be found on the website : pkgs.org (for Fedora version 30 , but it should work ). Also the package libgtkgl-2 you can take from this site , but from the...

  • stabud stabud posted a comment on discussion General Discussion

    file createbuildMakefile.bas need to create makefile. makefile you need to compile the library from source. You wish to compile the library from source? Then compile the file createbuildMakefile.bas in the folder where all the source codes of the library , then in the terminal run in the same folder should be created makefile. Next, type the command make . And then the compiled library will place in the folder: /usr/local/lib/freebasic/linux-x86 (for x86 system) OR /usr/local/lib/freebasic/linux-x86_64...

  • stabud stabud modified a comment on discussion General Discussion

    Hi! For Windows you need to download the archive: window9.zip For LINUX you need to download the archive: window9_linux.tar.gz In the archive window9_linux.tar.gz the file keys.bi present

  • stabud stabud posted a comment on discussion General Discussion

    For Windows you need to download the archive: window9.zip For LINUX you need to download the archive: window9_linux.tar.gz In the archive window9_linux.tar.gz the file keys.bi present

1
MongoDB Logo MongoDB