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++ Library : Other (not classified elsewhere) » [Feature request] Libraries!
[Feature request] Libraries! [message #6892] Sun, 03 December 2006 20:16 Go to previous message
g00fy is currently offline  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 Wink. I was having difficulties with placing an Image in the TrayArea Smile. 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 Wink.

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 Smile.

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? Rolling Eyes


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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: U++ 612-dev 3 HomeBudget run time problem
Next Topic: assign enum to variable?
Goto Forum:
  


Current Time: Sun Jun 22 17:44:21 CEST 2025

Total time taken to generate the page: 0.04284 seconds