Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
162 user(s) are online (95 user(s) are browsing Forums)

Members: 0
Guests: 162

more...

Headlines

Forum Index


Board index » All Posts (zzd10h)




Re: Use of Glow icon as Picture in a MUI program
Just can't stay away
Just can't stay away


Thank Broadblues for your advice.

I still use GetDiskObject to load the iconified icon like this
MUIA_Application_DiskObject, ApplIcone = GetDiskObject("PROGDIR:SysMon"),

therefore I tried

Child, DtpicObject, MUIA_Dtpic_Name, ApplIcone, End,

with ApplIcone = GetDiskObject("PROGDIR:SysMon"),
or
ApplIcone = GetDiskObject("PROGDIR:SysMon.info"),

but picture is no showed :(

With PNG icon it works well, therefore I think that icon datatype is working, no ?

Go to top


Use of Glow icon as Picture in a MUI program
Just can't stay away
Just can't stay away


Hi,
I've 2 questions about MUI and the use of picture inside a program.
If somebody could answer me, it will be very nice.

1) I'm trying to use a Glow icon as source of a DTPic picture in a program but it fails to show.

For example, in the program SysMon (on OS4depot) I'm trying to replace the png info file source of the main panel (at the top left) by a glow icon info file.
With PNG it works well like this

#define DtpicObject MUI_NewObject(MUIC_Dtpic
#define MUIA_Dtpic_Name 0x80423d72
Child, DtpicObject, MUIA_Dtpic_Name, "PROGDIR:SysMon.info", End,

But if I replace the SysMon.info PNG file by a SysMon.info Glow icon file, the picture is no more showed.

But in the AboutBox (AboutBox MUI class) the glow icon is well showed !

Is it possible to add a Glow icon as DTPic source ?
(I don't know what is exactly a glow icons, I use one of cha05e90, thanks :))

Or is it possible with another MUI class to use a glow icon .info file as source ?

2) In the MCC NList_Demo.c source,
the embedded pictures are described like this

const UBYTE list2_body[156] = {
0x04,0x00,0x04,0x00,0x78,0x00,0x08,0x00,0x30,0x00,0x08,0x00,0x79,0x00,0x02,
...
...
0x00,0x00,0x00,0x00,0x00,0x00, };

Do you know how to transform a normal picture like this ? Is a tool available ?
I would like to add some pictures in my NLists.

Thank by advance, for your replys.
Kinds regards
Guillaume


Go to top


Re: Should I buy an AmigaOne 500 or an AmigaOne X1000?
Just can't stay away
Just can't stay away


Hi ddni,
Which quiet gfx card did you bought to replace your original one (4850, is it?)
Thank for the info.

Go to top


Re: Ask help for MUIA_Application_Version and Version command
Just can't stay away
Just can't stay away


Thank you Thore,
I thought that the MUIA_Appl_Version was a constant string, I didn't imagine that MUI could transform it on the fly.

MUIA_Application_Version,"$VER: SysMon 2.1 (04.10.2012)",
work just fine.

Great, MUI is really powerful :)

Go to top


Re: Ask help for MUIA_Application_Version and Version command
Just can't stay away
Just can't stay away


Thank a lot for these explanations (and advices)
Therefore I just have to write

    MUIA_Application_Version,Chaine_Version_SysMon,"$VER: SysMon 2.1 (10.01.2012)"

For the AboutBox, I tried to use the built-in %t or %p but it was not localized, all was in english,

I will try these changes this evening.

Thank again, it's very nice !

Go to top


Ask help for MUIA_Application_Version and Version command
Just can't stay away
Just can't stay away


Hi,
I'm working on a MUI program in C on OS4 and I have a little problem with the MUIA_Application_Version.

Before that I learned how to obtain a localized date, my MUIA_Application_Version string was simply a string.
But now I want to concatenate a localized date to this string and it doesn't work with the Version command.
What is strange is that it works fine when I look the version with Exchange commodity or with the class AboutBox.

More precisely, I have a string who contained "$VER: SysMon 2.1" and I want to concatenate a date, for example 01/10/2012.

With Exchange and AboutBox, I have the right string "SysMon 2.1 (01/10/2012)"
With Version, I obtain "SysMon 2.1 (%s)", if I use sprintf or snprintf, or "SysMon 2.1", if I use strcpy and strcat.
The results are the same if I replace the date string with a simple string.

Here is my code
char Chaine_Version_SysMon[128];    
    
char Date_SysMon[16];
    
char dtdate[LEN_DATSTRING];    /* date from DateToStr...dat_StrDate */
...
    
strcpy(Date_SysMon,dtdate);
    
sprintf(Chaine_Version_SysMon,"$VER: SysMon 2.1 (%s)",Date_SysMon); /* I tried to directly with dtdate */
           
or 
    
snprintf(Chaine_Version_SysMon,sizeof(Chaine_Version_SysMon),"$VER: SysMon 2.1 (%s)",Date_SysMon);        
           or
    
strcpy(Chaine_Version_SysMon,"$VER: SysMon 2.1");
    
strcat(Chaine_Version_SysMon," (");    
    
strcat(Chaine_Version_SysMon,Date_SysMon);        
    
strcat(Chaine_Version_SysMon,")");    
...
    
MUIA_Application_Version,Chaine_Version_SysMon,


With sprintf :
Version String = SysMon 2.1 (%s)
AboutBox = SysMon 2.1 (01/10/2012)
Exchange = SysMon 2.1 (01/10/2012)

With strcpy, strcat :
Version String = SysMon 2.1
AboutBox = SysMon 2.1 (01/10/2012)
Exchange = SysMon 2.1 (01/10/2012)

Sorry for the long post, but if somebody could say me where I'm wrong, it will be very nice :)
Thanks you by advance,
zzd10h



Go to top



TopTop
« 1 ... 67 68 69 (70)




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project