The first step is getting the tools we need. Spotlight Lockscreen (Source: ) The Compiler I’m going to try and make a simple Win32 app, a program which helps me store the Spotlight lock-screen images that are changed periodically. The speed and fast startup is a huge plus for me, especially compared to “modern” desktop applications built with. They start up really quick, are always really fast and they rarely hog resources. I’ve always been fascinated by classic Win32 applications. We can create a composite message box by combining uType flags using the bitwise OR (|) operator. Message Boxes with different uType values Here’s a picture of message boxes with different uType values. It can be defined with flags explained here. UType decides the contents and behavior of the dialog box. Since we don’t have a parent window for our message box, we’ll leave it as NULL. HWnd is a handle to the owner window of the dialog. MessageBoxW is a Win32 API function used to create a modal dialog box. MessageBoxW(NULL, myText, m圜aption, MB_OKCANCEL) For more information on Windows data types, look here. The L prefix before the double quote is used to define a wide character string literal as opposed to a normal string. LPCWSTR is a typedef/alias for const wchar_t * data type. LPCWSTR m圜aption = L"Caption for the message box" (More info here) LPCWSTR myText = L"Text for the message box" hInstance is a HANDLE to an instance, used to identify the executable when it is loaded into memory. hPrevInstance is not used these days, its value is NULL or 0. nCmdShow decides if the application window will be maximized, minimized or act normally on launch. LpCmdLine contains the command line arguments as a long pointer. (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) Then, log out and log back in and you’ll see cbatticon start automatically when you log in. (Thanks to the good folks at for this information) cd $HOME/.fluxbox/Īdd the following line to the top of the file. Go to “ $HOME/.fluxbox/” and open the file “ apps” in a text editor. To get cbatticon to start automatically with every login, we need to edit Fluxbox’s configuration files. Use the command: cd DownloadsĪfter installing the package, we can launch it by using the terminal. Then we download the Debian Buster amd64 package from the Debian package repositories.Īfter downloading the package, we navigate to the directory where the package was downloaded and install it with dpkg. First, we’ll install all the dependencies of cbatticon with the command: apt-get install libatk1.0-0 libc6 libc6 libcairo-gobject2 libcairo2 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnotify-bin libnotify4 libpango-1.0-0 libpangocairo-1.0-0 That’s why using “apt search cbatticon” doesn’t yield any results. The problem is, it is not available for Debian Stretch off of which Slax 9.11 is based. Cbatticon is available on the Debian package repositories. So I did some digging and found a way.Ĭbatticon is a nice battery indicator applet that works well with Fluxbox. One of my readers, Niteen, asked me if I could help install a battery indicator next to the system tray in Slax. Might make a post about this later if I find something interesting. I tried doing a lot of stuff like manually putting in Syslinux 6.03 files from but nothing worked other than changing the USB tool. I’m pretty curious about why this is happening. using a different ISO to USB tool like Win32 Disk Imager, etc. Other people on various forums have also had the same conclusion, i.e. My solution to this was to use UNetBootin for creating the bootable USB and basically avoid this problem altogether. I’ve encountered this problem multiple times. But because of whatever reason all the older ISOs Syslinux 6.03 I’ve burnt with Rufus always fail to boot. When Rufus encounters older distribution images, it downloads Syslinux 6.03 files ldlinux.bss and ldlinux.sys to include in the drive’s boot folder. I had created the bootable drive using Rufus 3.13, a well known bootable USB creator. I got this error while trying to boot Slax off a USB for my previous post.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |