dave
New Member
Posts: 5
|
Post by dave on Jul 4, 2023 13:31:26 GMT 1
Hello all, New member, hope I have posted in right section, apologies if not. My question then, I'm running a kiosk type application and would like to create some programs using Bacon. However, they must not have any minimize or exit buttons at all. The only way to "kill" the program, is to SSH into the box and "kill" it via it's process ID. Is this possible with Bacon? I have attached a picture to better explain what I'm after. Thank you.
|
|
|
Post by Pjot on Jul 4, 2023 17:32:15 GMT 1
Hi dave, Welcome to BaCon! Hope you find this little BASIC-to-C converter useful. Your question is more related to GTK than to BaCon itself. The sample in your posting uses the (obsolete) HUG interface to GTK2. It means that you have to read the GTK2 documentation to see how this works. In HUG, it is possible to set a property of a widget. Your question refers to the way the main window of the application is displayed. So, in this case, I would use the "decorated" property to hide those pesky buttons of the window manager. INCLUDE "hug.bac"
mainwin = WINDOW("Calculating network", 320, 200)
SETPROPERTY(mainwin, "decorated", FALSE) : ' <-------add this line
frame = FRAME(310, 190) ATTACH (mainwin, frame, 5, 5)
<..... rest of program ..........>
This will create a window as shown in the screenshot below. HTH Peter Attachments:
|
|
dave
New Member
Posts: 5
|
Post by dave on Jul 4, 2023 19:26:06 GMT 1
Hi Peter,
Thank you very much for the information. It's exactly what I was looking for.
|
|