x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 
Latest Forum Activity

Development Revival ! (lets try it people)

1 2 3 4 5
cmonex Page Icon Posted 2005-04-24 11:37 PM
#
Avatar image of cmonex
H/PC Oracle

Posts:
16,175
Location:
Budapest, Hungary
Status:
soooo cooool!!!
 Top of the page
matrixcore Page Icon Posted 2005-04-24 11:59 PM
#
Avatar image of matrixcore
H/PC Elite

Posts:
627
Location:
The Matrix
Status:
yes!! you should post the code 4 it. GPL maybe?. the XP style window is AWESOME!!!. I may be starting to learn C++ (well, i've started, but i've only done CLI apps)

Hooray for /\/\art!
 Top of the page
Snappy! Page Icon Posted 2005-04-25 8:33 AM
#
Avatar image of Snappy!
H/PC Elder

Posts:
1,712
Location:
New Mexico, US
Status:
Very nice!

Its funny 'cos I was trying to "skin" my HPC to display plain flat windows, hopefully speeding up the GUI ...

 Top of the page
Mart Page Icon Posted 2005-04-25 5:18 PM
#
Avatar image of Mart
Factorite (Junior)

Posts:
33
Location:
Preston, UK
Status:
Thanks for the positive encouragement

I'll attach to this post the code to my example and the supporting resources. The compressed rar file should contain:

(The C++ code)
Xponce.cpp

(The resource script)
Resource.rc

(SH-3 build of the example executable)
Xponce.exe

(10 bitmaps and the program icon)
________________________________________________________________

For anyone wanting to use the code, I've spent some time making it nicer to alter... I'll explain:

[This is copied from the top part of the code]
••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••

/*-------------------------------------------------------------------------
Constants for application strings, the caption text, the
classname and the message which is displayed on the window.
-------------------------------------------------------------------------*/
#define APPLICATION_CAPTION "XP -> CE Example"
#define APPLICATION_CLASSNAME "CEWindowClass"
#define APPLICATION_MESSAGE "Hello HPC:Factor :-)"

/*-------------------------------------------------------------------------
Constants to specify the application width and height in pixels.
-------------------------------------------------------------------------*/
#define APPLICATION_WIDTH 302
#define APPLICATION_HEIGHT 150

/*-----------------------------------------------
Flag to specify if maximizing is allowed.
-----------------------------------------------*/
BOOL MAXIMIZE_ALLOWED = TRUE;

••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••

For people wanting to use this code, I built the framework to work directly from these constants. Changing the APPLICATION_WIDTH and/or APPLICATION_HEIGHT values to suit your application is literally all that's needed for the window size to change.

Likewise, setting MAXIMIZE_ALLOWED to FALSE will cause the maximize button to be faded out, and maximize functionality to be removed.

Last note, if you're wanting to use this code (feel free), presumably you're not going to want the little message in the middle of the window ... all you have to do is remove the drawing of this message from the WM_PAINT case in the window's winproc (specifically the DrawText() function invocation).

I hope this helps

/\/\art

(P.S. If you were wondering why the width has been set to 302, it's in account for the small window border which is 1 pixel on each side.)



Attachments
----------------
Attachments Xponce.rar (23KB - 33 downloads)
 Top of the page
C:Amie Page Icon Posted 2005-04-25 6:21 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
18,029
Location:
United Kingdom
Status:
Course it's OK to post code, we welcome it, thanks for sharing and thanks for revitalising the dwindling flame in my heart that represented hope anyone would code anything

Bravo to you, now make "Windows Blinds" for the H/PC
 Top of the page
Nick Charlton Page Icon Posted 2005-04-25 6:39 PM
#
Avatar image of Nick Charlton
H/PC Elite

Posts:
566
Location:
Farnham, Surrey, United Kingdom
Status:
Nows the time to test CEChat, if anyones interested. I'm online, and I'd like to get some proper testing done

Thanks,

Nick
 Top of the page
cmonex Page Icon Posted 2005-04-25 7:06 PM
#
Avatar image of cmonex
H/PC Oracle

Posts:
16,175
Location:
Budapest, Hungary
Status:
sorry Nick, but it doesn't work.... i've been trying for some time.... did a hard reset too. "An error was encountered while running this program"
 Top of the page
C:Amie Page Icon Posted 2005-04-25 7:18 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
18,029
Location:
United Kingdom
Status:
Mothin seconded. I have been unable to get it to launch. With or without the ROM overwrite.
I don't think PS can get in either.
 Top of the page
cmonex Page Icon Posted 2005-04-25 7:20 PM
#
Avatar image of cmonex
H/PC Oracle

Posts:
16,175
Location:
Budapest, Hungary
Status:
PS couldn't even unpack the zip...

but it could run the other day... how come it doesn't now?
 Top of the page
matrixcore Page Icon Posted 2005-04-25 11:39 PM
#
Avatar image of matrixcore
H/PC Elite

Posts:
627
Location:
The Matrix
Status:
Sorry for being picky in this issue, but i can't open the RAR, it asks me a password. And BTW, could you tell us under what license could this be redistributed? (GPL! GPL! GPL!)

Thanks a lot
 Top of the page
Nick Charlton Page Icon Posted 2005-04-26 2:30 AM
#
Avatar image of Nick Charlton
H/PC Elite

Posts:
566
Location:
Farnham, Surrey, United Kingdom
Status:
cmonex - 2005-04-26 12:20 AM

PS couldn't even unpack the zip...

but it could run the other day... how come it doesn't now?


I've never seen a problem with the zip before, I rezip it and upload it again.

The server version (I just found out) was never copied to my server, its only ever been on my laptop, so when I shut it down so did CEChat, sorry, I didn't know.

Nick
 Top of the page
Nick Charlton Page Icon Posted 2005-04-26 4:47 PM
#
Avatar image of Nick Charlton
H/PC Elite

Posts:
566
Location:
Farnham, Surrey, United Kingdom
Status:
Ok, Try and test it again, all problems have been fixed (I hope), BETA 2 is nearly ready, thanks to Snappy!

I'll Post back with updates;

Nick
 Top of the page
cmonex Page Icon Posted 2005-04-26 6:11 PM
#
Avatar image of cmonex
H/PC Oracle

Posts:
16,175
Location:
Budapest, Hungary
Status:
it works now!
 Top of the page
cmonex Page Icon Posted 2005-04-26 6:20 PM
#
Avatar image of cmonex
H/PC Oracle

Posts:
16,175
Location:
Budapest, Hungary
Status:
who said howdy?
 Top of the page
Snappy! Page Icon Posted 2005-04-27 12:30 AM
#
Avatar image of Snappy!
H/PC Elder

Posts:
1,712
Location:
New Mexico, US
Status:
ok ok ... group hug!

I think the Sigmarion actually has (more or less) the exact specs we all wish for ... unfortunately its only in Japan and in Japanese ... of cos there are those kind folks who after getting it wishes to upgrade and is willing to let it go at the Bay of Happiness. But they are few and hard to come by ...

besides, it runs CE.NET! ... why oh why ... why does NTT Docomo not expand to US market???
 Top of the page
1 2 3 4 5
Jump to forum:
Seconds to generate: 0.218 - Cached queries : 70 - Executed queries : 12