Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Is FrameLess() working under Linux ?
Is FrameLess() working under Linux ? [message #38879] Fri, 25 January 2013 09:30 Go to next message
jibe is currently offline  jibe
Messages: 294
Registered: February 2007
Location: France
Experienced Member
Hi,

As said in the title, I can't get FrameLess() working under Linux. I tried this, based on Gui04 tutorial :

#include <CtrlLib/CtrlLib.h>

using namespace Upp;

struct MyAppWindow : TopWindow {
	virtual void Paint(Draw& w) {
		w.DrawRect(GetSize(), Green);
		w.DrawText(20, 20, "Hello world!", Arial(30), Magenta);
	}

	MyAppWindow() {
		FrameLess();
		Title("My application").Zoomable().Sizeable();
	}
};

GUI_APP_MAIN
{
	MyAppWindow app;
	app.SetRect(0, 0, 200, 100);
	app.FrameLess(false);
	app.Run();
}

I made several tries, calling FrameLess() at different places, with or without argument, but I have always a window with title bar...

Am I doing something wrong, or is there a problem under Linux ?
Re: Is FrameLess() working under Linux ? [message #38880 is a reply to message #38879] Fri, 25 January 2013 10:26 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

jibe wrote on Fri, 25 January 2013 09:30

Hi,

As said in the title, I can't get FrameLess() working under Linux.

...

Am I doing something wrong, or is there a problem under Linux ?


Hi Jibe,

You are doing it right. The frameless flag is not regarded on Linux and AFAIK it never was. As far as I can see only Win32 and the new GTK backend support it.

Best regards,
Honza
Re: Is FrameLess() working under Linux ? [message #38883 is a reply to message #38879] Fri, 25 January 2013 11:34 Go to previous message
jibe is currently offline  jibe
Messages: 294
Registered: February 2007
Location: France
Experienced Member
Thanks for your reply, Honza Smile

So, there is no simple way to have a top window without a border under Linux ?
Previous Topic: ~Link
Next Topic: Jsonize int64 surprise
Goto Forum:
  


Current Time: Thu Mar 28 17:12:56 CET 2024

Total time taken to generate the page: 0.01136 seconds