Home » U++ Library support » U++ Library : Other (not classified elsewhere) » [Feature request] Libraries!
[Feature request] Libraries! [message #6892] |
Sun, 03 December 2006 20:16  |
g00fy
Messages: 15 Registered: December 2006 Location: Mechelen, Belgium, Europe
|
Promising Member |
|
|
Hi all,
Maybe the title is somehow obscure because U++ IS a library, but what I mean is... I would like some way to compile it into a .lib (MS Visual Studio), a .dll (Windows), a .so (Linux), an .a (mingw), ...
Maybe it's already possible, I don't really know...
I just came from wxWidgets and I have to say it's rather simple... After you read through the code . I was having difficulties with placing an Image in the TrayArea . But one thing I have to say is that wxWidgets might be bigger... It's MUCH more extensible, and supports a lot more platforms. The comparison is a little flawed I think because wx 'looks' better. And no, I am not here to start some flamewar, I am just asking for libraries .
One thing that eludes me is all these codes you can put in prompts. Before I was used to call a messagebox like
wxMessageBox(const wxString& message, const wxString& caption = "Message", int style = wxOK,
wxWindow *parent = NULL, int x = -1, int y = -1)
And now it's like
PromptOK, PromptAbortRetry, ... (or Prompt & tell it yourselves)
But so far I couldn't get it to center on my screen and show above every application.
So I made there this tray-hello-icon program, and doubleclicked the trayicon... The promptok-message prompted below every window! (and I had like 20 open), so I saw it was opened, but it didn't show .
Pretty fast and nifty library I think once I'll get the hang of it, but not entirely mature I guess?
Oh, did I say I really miss libraries?
Greetz!
EDIT:
BTW, the IDE ROCKS! It's the best opensource IDE I have ever seen... Little rough on the edges, but really really good!
EDIT2:
#include "TrayIcon.h"
#define IMAGECLASS Tray
#define IMAGEFILE "Bombs.iml"
#include <Draw/iml.h>
struct App : TrayIcon {
void Info() {
// Icon(Tray::Icon1());
PromptOK("TrayIcon launched this prompt!");
// Icon(Tray::Icon());
}
void Menu(Bar& bar) {
bar.Add("Info..", THISBACK(Info));
bar.Separator();
bar.Add("Exit", THISBACK(Break));
}
typedef App CLASSNAME;
App() {
WhenBar = THISBACK(Menu);
WhenLeftDouble = THISBACK(Info);
Icon(Tray::Small());
Tip("This is U++ tray icon");
}
};
GUI_APP_MAIN
{
App().Run();
}
The problem is that when you rightclick on the trayicon, it appears in the left upper corner of the screen. Otherwise it nicely pops up in the middle of the screen. Don't know how to reproduce to pop under every window.
[Updated on: Sun, 03 December 2006 20:22] Report message to a moderator
|
|
|
 |
|
[Feature request] Libraries!
By: g00fy on Sun, 03 December 2006 20:16
|
 |
|
Re: [Feature request] Libraries!
By: mirek on Sun, 03 December 2006 20:43
|
 |
|
Re: [Feature request] Libraries!
By: mirek on Sun, 03 December 2006 21:23
|
 |
|
Re: [Feature request] Libraries!
By: g00fy on Sun, 03 December 2006 21:37
|
 |
|
Re: [Feature request] Libraries!
By: mirek on Sun, 03 December 2006 21:40
|
 |
|
Re: [Feature request] Libraries!
By: g00fy on Sun, 03 December 2006 22:05
|
 |
|
Re: [Feature request] Libraries!
By: mirek on Sun, 03 December 2006 22:40
|
 |
|
Re: [Feature request] Libraries!
By: mirek on Sun, 03 December 2006 23:35
|
 |
|
Re: [Feature request] Libraries!
By: g00fy on Mon, 04 December 2006 00:36
|
 |
|
Re: [Feature request] Libraries!
By: mirek on Mon, 04 December 2006 09:45
|
 |
|
Re: [Feature request] Libraries!
By: g00fy on Mon, 04 December 2006 13:14
|
 |
|
Re: [Feature request] Libraries!
By: mirek on Mon, 04 December 2006 13:20
|
 |
|
Re: [Feature request] Libraries!
By: g00fy on Tue, 05 December 2006 16:21
|
 |
|
Re: [Feature request] Libraries!
By: mirek on Tue, 05 December 2006 13:00
|
 |
|
Re: [Feature request] Libraries!
By: g00fy on Tue, 05 December 2006 16:23
|
 |
|
Re: [Feature request] Libraries!
By: Olli on Fri, 05 January 2007 11:47
|
 |
|
Re: [Feature request] Libraries!
By: mirek on Fri, 05 January 2007 12:11
|
Goto Forum:
Current Time: Sun Jun 22 20:25:07 CEST 2025
Total time taken to generate the page: 0.04249 seconds
|