Home » Extra libraries, Code snippets, applications etc. » U++ users applications in progress and useful code snippets, including reference examples! » Window without title bar
Re: Window without title bar [message #14129 is a reply to message #14126] |
Wed, 13 February 2008 16:41 |
Werner
Messages: 234 Registered: May 2006 Location: Cologne / Germany
|
Experienced Member |
|
|
Some time ago I wrote a UPT ("StandardApplication") which also creates a splash screen. You can get it at message #8210 (Home » Developing Ultimate++ » Bazaar » New UPT: Standard Application). The UPT creates, among other files, 2 files named "...Splash.hpp" and "...Splash.cpp". Maybe a closer look at these 2 files might help you.
Furthermore you might want to have a look at the following code which deals with a popup window. But beware, it's very simple. Just a proof of concept for another U++ feature (Single).
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
class PopUpWin : public LineEdit
{
private:
bool poppedUp_;
void RightDown(Point p, dword keyFlags)
{
Close();
poppedUp_ = false;
}
public:
PopUpWin() : poppedUp_(false) { }
void SetPoppedUp(bool yesNo) { poppedUp_ = yesNo; }
bool IsPoppedUp() const { return poppedUp_; }
};
class MainWin : public TopWindow
{
private:
void LeftDown(Point p, dword keyFlags)
{
if (Single<PopUpWin>().IsPoppedUp())
return;
Single<PopUpWin>().SetPoppedUp(true);
Single<PopUpWin>().LeftPos(300, 200).TopPos(300, 150);
Single<PopUpWin>().SetColor(TextCtrl::PAPER_NORMAL,Blue);
Single<PopUpWin>().SetColor(TextCtrl::INK_NORMAL, White);
Single<PopUpWin>().PopUp
(
this, // Ctrl* owner = NULL
true, // bool savebits = true
true, // bool activate = true
true, // bool dropshadow = false
false // bool topmost = false
);
}
};
GUI_APP_MAIN
{
MainWin mainWin;
mainWin.SetRect(0, 0, 800, 600);
mainWin.Run();
}
Werner
|
|
|
|
|
Window without title bar
By: DoggyDog on Tue, 12 February 2008 16:48
|
|
|
Re: Window without title bar
By: DoggyDog on Wed, 13 February 2008 12:37
|
|
|
Re: Window without title bar
|
|
|
Re: Window without title bar
By: DoggyDog on Wed, 13 February 2008 13:02
|
|
|
Re: Window without title bar
By: DoggyDog on Wed, 13 February 2008 13:54
|
|
|
Re: Window without title bar
By: Werner on Wed, 13 February 2008 16:41
|
|
|
Re: Window without title bar
By: DoggyDog on Wed, 13 February 2008 17:16
|
|
|
Re: Window without title bar
By: Werner on Wed, 13 February 2008 21:06
|
|
|
Re: Window without title bar
By: DoggyDog on Thu, 14 February 2008 13:15
|
|
|
Re: Window without title bar
By: Werner on Thu, 14 February 2008 13:38
|
|
|
Re: Window without title bar
By: mr_ped on Thu, 14 February 2008 16:15
|
|
|
Re: Window without title bar
By: mrjt on Thu, 14 February 2008 16:18
|
|
|
Re: Window without title bar
|
|
|
Re: Window without title bar
By: Werner on Thu, 14 February 2008 18:54
|
|
|
Re: Window without title bar
By: Werner on Thu, 14 February 2008 22:06
|
|
|
Re: Window without title bar
By: mr_ped on Thu, 14 February 2008 18:07
|
Goto Forum:
Current Time: Fri May 10 02:54:11 CEST 2024
Total time taken to generate the page: 0.03029 seconds
|