Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
191 user(s) are online (122 user(s) are browsing Forums)

Members: 2
Guests: 189

flash, VooDoo, more...

Headlines

Forum Index


Board index » All Posts (Alpyre)




A very sophisticated MUI problem.
Just popping in
Just popping in


Hi there Amigans.
Last year I finally could learn C/C++, and being a MUI fan dived right into MUI coding.

Then I thought to start coding something I’ve always needed would be a good way to learn MUI faster… and would be fun too.

So I’ve started my project…
In this humble project of mine, I needed a TextEditor gadget (later it turned out that I actually needed 2 of them – one for edit and one for display).
I like the TextEditor.mcc functionalities… so decided to use it (no problems yet).

As I progressed, I realized that the TextEditor_WrapMode_NoWrap, is not fully implemented yet (no horizontal scrolling).

Ok, no worries. I could wait for the developers to implement it (the reasonable idea).
Or I could hack its source code and implement it myself (not a good idea).
Or… maybe I can write a dirty workaround for it using a ScrollGroup…

If I could put the text editor inside a ScrollGroup (actually into its VirtualGroup), and resize the TextEditor gadget everytime the text inside exceeds the gadget width, the effect would be just the thing needed.
And if the developers would implement the functionality in the future, I would just get rid of the ScrollGroup and use the built in scroller.

Then I wrote a quick centralized prototype to see if the idea works. It did. This is the result:
Resized Image

It worked like a charm.

So I decided to encapsulate all my dirty functions and variables into a subclassed version (which is the recommended way of MUI coding).

So I did it. But something very awkward has occurred. This is the result:
Resized Image


This is the code I resize the TextEditor and make the scroller visible:
if (result width)
    {   
DoMethod(data->obj_table.virt_groupMUIM_Group_InitChange);
        
set(data->obj_table.text_editorMUIA_FixWidthresult);
        
DoMethod(data->obj_table.virt_groupMUIM_Group_ExitChange);
        
set(data->obj_table.horiz_scrollerMUIA_ShowMeTRUE);
        
was_bigger TRUE;
        
make_cursor_visible(clobj);
    }
    else if(
was_bigger)
    {   
DoMethod(data->obj_table.virt_groupMUIM_Group_InitChange);
        
set(data->obj_table.text_editorMUIA_FixWidthwidth);
        
DoMethod(data->obj_table.virt_groupMUIM_Group_ExitChange);
        
set(data->obj_table.horiz_scrollerMUIA_ShowMeFALSE);
        
was_bigger FALSE;
    }

Setting MUIA_ShowMe when in a centralized function call works...
But when it is in a subclass, it messes up like this.
Any ideas?

Go to top


Re: Its oficial I am a pillock!!
Just popping in
Just popping in


@LiveForIt
Yes, that's it...

@ChrisH
But they should... ;)

Go to top


Re: Its oficial I am a pillock!!
Just popping in
Just popping in


@magic

I've been in the same situation too... I think it is a serious bug in OS4.x...

Go to top


Re: How create png icons on os4 ?
Just popping in
Just popping in


@kas1e
Hi,
You don't have to use "create icon" or anything else to assemble an icon.

1) Just save your design in Png24 format (with transparency) in any Raster Graphics Editing Software...

2) Then just rename the extention of the file from ".png" to ".info"

3) Finally use CopyIcon v44 (which is on Aminet) to apply it to the file that you want to be viewed with your icon design.

If you want to do it all on OS4, you first have to find a software to save your png's with transparency. Supporting Alpha Channel does not mean it will support transparent colors. The software has to support the "Palette Transparency" function of the PNG datatype.

Personal Paint, ImageFx and Art Effect can save PNG's, but I'm not SURE if they can save with palette trasparency... Don't know if Photogenics can do, but I'm also not sure it will.

If you have one of these software, try to save as Gif with Transparency and then convert it using "gif2png" which is again on Aminet.

If you are able to run GIMP, there is no problem then... Follow the above 3 steps...

Good Luck...

Go to top


Re: Firefox coming to OS4.1 !!!
Just popping in
Just popping in


@Rogue

Amizilla people have already begun discussing about transfering the %25 of the bounty to the Timberwolf bounty (as long as the sources are released...)

I am an OS3 person... However I am really proud of the developments on OS4 and respect the developers...

I don't understand why there shoud be a division or war between the people in the same community... Ain't we all "Amigans"...

I've painted temporary icons for your project...
Until Ken and Mason paints greater ones, you can use these...

Resized Image
TimberWolfIcons.lha

Please take these as a sign of respect and good will...

Keep up the good work...

Go to top


Re: Firefox coming to OS4.1 !!!
Just popping in
Just popping in


@magic
I think he was supposed to title it as:
68K Netsurf vs (RDP) Firefox on OS4.1

yeah... that would be much better...

Go to top


Re: Firefox coming to OS4.1 !!!
Just popping in
Just popping in


Hey guys... Don't be so harsh on me... I'm not against the project or the Frieden guys or donating the bounty...

I'm just sorry that we cannot have a decent browser on 3.x... A browser that will look like an Amiga program...

I respect the Frieden guys for their efforts... But as I've said in my first comment: I hope this project doesn't mean we will never see Firefox on 3.x. And I hope this one becomes a propulsive for the Amizilla project (and if they do release the sources I'm sure it will).

BTW, my favorite browser on the Amiga is IBrowse... A better IBrowse would make me much happier than a FireFox port.

@Troels:
I am considering on saving some money for buying a Sam440 actually. Nevertheless I'll keep on using my other two machines.

Go to top


Re: Firefox coming to OS4.1 !!!
Just popping in
Just popping in


@kas1e

I'm on an Amithlon machine @3Ghz + Nvidia TI4200 + SBLive5.1. I can watch Xvid/QT/FLV movies on this one with no hassles... (I believe this machine is more than capable of running 68k Firefox...)

I also have a PPC Amiga1200 with OS4.0 Classic on it.

Note that both machines are not covered with this project.

Go to top


Re: Firefox coming to OS4.1 !!!
Just popping in
Just popping in


I hope this doesnot mean we will never see Firefox on OS3.x

Go to top


Re: New Disk Icons (from Ken) ...
Just popping in
Just popping in


@klesterjr

Thanks a million!

Go to top


Re: New Disk Icons (from Ken) ...
Just popping in
Just popping in


@klesterjr

Quote:
Are you looking for for DualPNG or the old 256 color glow icons? (what platform is this for?)


Dual PNG please.
Thanks

Go to top


Re: New Disk Icons (from Ken) ...
Just popping in
Just popping in


@klesterjr

Hi Ken,

Would you please create 2 icons for my E-UAELoad package. They shall look something like:

Resized Image

Thanks already

Go to top


Re: Last batch of icons . . .
Just popping in
Just popping in


@klesterjr

The problem was:
Icon Size being set to 1 in Afa_Prefs.
I set it back to 0 again. All icons are visible now.
Thanks to Bernd Roesch. He paid great attention to my problem.

Thanks a million for the v4 icons Ken. They really look marvelous. I'm going make a donation as soon as possible. Please keep on making icons.

Regards
Alper

Go to top


Re: OpenRedAlert for AOS4x
Just popping in
Just popping in


@K-L

As far as I know, MAIN.MIX and REDALERT.MIX files should be copied into
"Data/Mix/" within OpenRA drawer.

Go to top


Re: Last batch of icons . . .
Just popping in
Just popping in


@klesterjr

Thanks for the replies Ken. But I don't think it is a low memory situation. I have 8MB of ChipRam (which never falls below 6MB) and 768MB's of FastRam on my Amithlon system.

I am corresponding with Afa_OS authors now, I'll declare here when the problem is found out.

Alper

Go to top


Re: Last batch of icons . . .
Just popping in
Just popping in


@klesterjr

Thanks for the quick reply, I have e-mailed AFA authors. I hope the problem gets solved soon.

Can I ask the software that you use to create DualPNG icons? Sometimes I want to create custom icons for my Apps but I have no idea how to.

Go to top


Re: Last batch of icons . . .
Just popping in
Just popping in


@klesterjr

Hi Ken,

Your icons are lovely. I like them very very much and really appreciate your work. But I have a problem using them.

I use your icons on:
Amiga OS 3.9 + BB2 on Amithlon
AFA_OS v4.2
icon.library v53.1
screencolordepth : 32bit

You can see the problem in the screenshot below.
Resized Image
Your V3 icon pack works like a charm, but V4 does not. What can I do to fix this?

(I can see the icons well in CopyIcon v44's window, but cannot on Workbench)

Thanks already&Regards
Alper

Go to top



TopTop




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project