Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
146 user(s) are online (114 user(s) are browsing Forums)

Members: 0
Guests: 146

more...

Headlines

Forum Index


Board index » All Posts (jabirulo)




Re: DrawerGenie for AOS4?
Just can't stay away
Just can't stay away


@TSK


take a look at my sources (ugly code, link at post #67) and maybe it can help you somehow.

Go to top


Re: DrawerGenie for AOS4?
Just can't stay away
Just can't stay away


@kas1e

well. I just check if openwin() has a NewWindow struct, if not it isn't a WB drawer.
thx for mail/message will look it later.

Go to top


Re: IBrowse 3.0 released
Just can't stay away
Just can't stay away


wohuuuu IB3!!!!

Go to top


Re: DrawerGenie for AOS4?
Just can't stay away
Just can't stay away


@kas1e

And it would be nice to have such sources (with permision of author) and fix those bugs and make maybe a minimal release without all those settings, just the addresbar and couple of buttons, instead of reinventing the whell for N time.

Go to top


Re: DrawerGenie for AOS4?
Just can't stay away
Just can't stay away


@kas1e
Uncheck in its config WB tab "WB-ikonifizieren" option maybe.


@TSK
not sure about port as I get from every window:
UserPort = 0x00000000
WindowPort = 0x00000000

maybe is "Workbench task" that manages such events.

Go to top


Re: DrawerGenie for AOS4?
Just can't stay away
Just can't stay away


@kas1e

I just c&p code you posted, and trying to understand what it makes.

TiA

Go to top


Re: DrawerGenie for AOS4?
Just can't stay away
Just can't stay away


@kas1e

Oh great!!! Hope he will answer ASAP.

alpha: just keep as minimum, just path gadget and AISS images. No configuration possible.
alpha+beta: if no big bugs/crashes/whatever make a minimal config.
beta: ..bugfix and more bugfix

and the rule the world!!! muuuhahahaaaaa!!

Go to top


Re: DrawerGenie for AOS4?
Just can't stay away
Just can't stay away


@TSK

http://jabirulo.byethost13.com/temp/testSetMethod.7z
(and thx geennaam)

And yes, next thing I was going to try is WinPtr->UserPort thing, hope doesn't "swallow" other original WB window events.

Go to top


Re: Astromenace - AmigaOne X5K Game - Amiga OS 4.1
Just can't stay away
Just can't stay away


@AmigaSociety

For RX ard you need RadeonRX.chip driver, and IIRC last version is 2.12 or something alike (in Enhancer Software 2.2).

And RadeonHD.chip driver:
V5 supported graphics card:
- Radeon R7 250/250X/265
- Radeon R9 270/270X/280/280X

V3 supported graphics card:
- Radeon X1300-X1950 graphics (not recommended)
- Radeon HD 2000-7000 series graphics card (excluding the Radeon HD 7790)
- Radeon R5 230/235/235X
- Radeon R7 250X/265
- Radeon R9 270/270X/280/280X

Go to top


Re: DrawerGenie for AOS4?
Just can't stay away
Just can't stay away


@kas1e

Yes, but look what this thread is looking for

Dunnot if such CX only patches some parts (like my buggy testSetMethod) or it creates a "new" wb window.

But looks quite nice.

Go to top


Re: DrawerGenie for AOS4?
Just can't stay away
Just can't stay away


@kas1e

But don't know how to "bind" mouse events to such gadget. :-/

EDIT: updated code. Uses TBImages and added 2nd (parent) button, events aren't triggered/coded.


Edited by jabirulo on 2023/11/17 14:55:32
Go to top


Re: DrawerGenie for AOS4?
Just can't stay away
Just can't stay away


@kas1e

Sure it crash, leaks and will show dragons on your miggy is dirty hack.

Updated program.
When you launch it and you open a WB window juts click on the upper left of the window inner space it should show a red/green button:

[ ] windowtitle             [][]
--------------------------------
||  
<-here                 | |
||                           | |

just hackish/dirty code.

Go to top


Re: DrawerGenie for AOS4?
Just can't stay away
Just can't stay away


@kas1e

yep, I udpated my testSetMethod.c (uploaded to same place as previous one).

Go to top


Re: DrawerGenie for AOS4?
Just can't stay away
Just can't stay away


@kas1e

Hi, you use "myWindow = IIntuition->OpenWindowTagList(NULL, &wintags[0]);"

and should get something like this:
[NEW]OpenWindowTagList(NewWindowTagItems):
       
NewWindow (0x00000000)

and nothing more, 'cos you pass NULL to NewWindow (struct) and I added " if(newWin == NULL) { return oldOpenWinFunc(ii, newWin, tagList); }" to my testSetMethod.c

and when you open "RAM Disk:" from WB you get::
[NEW]OpenWindowTagList(NewWindowTagItems):
       
NewWindow (0x600665e0):
            
L=  50   T=  50
            W
481   H292
              Type 
0x0001
             Flags 
0x0200107f
                     0x02000000 
(WFLG_WBENCHWINDOW)
          
Gad_#01 = 0x6006662e
          
Gad_#02 = 0x6006665a
          
Gad_#03 = 0x60066686
          
Gad_#04 = 0x600666b2
          
Gad_#05 = 0x600666de
          
Gad_#06 = 0x6006670a
       
TagItems:
          
ti_Tag 0x8000007f ->            WA_BackFill 0x5fed9588
          ti_Tag 
0x80000098 ->        WA_PointerDelay 0x00000001
          ti_Tag 
0x8000006f ->         WA_ScreenTitle 0x6ff2233f
          ti_Tag 
0x80000093 ->        WA_NewLookMenus 0x00000001
          ti_Tag 
0x80000090 ->          WA_AutoAdjust 0x00000001
          ti_Tag 
0x80000092 ->            WA_MenuHelp 0x00000001
          ti_Tag 
0x800000ab ->          WA_AlphaClips 0x00000018
          ti_Tag 
0x800000a6 ->           WA_GrabFocus 0x00000001


'Cos it passes NewWindow data (struct).
And not quite sure, but maybe we can AddGadget (in a nice/proper way) to the last (Gad_#06) one and show a toolbar or whatever we want.

Go to top


Re: DrawerGenie for AOS4?
Just can't stay away
Just can't stay away


@kas1e

yes, but did you notice that only WB windows show a (new)window pointer?
If you open other program it doesn't trigger (New)Window pointer.
So maybe there is some "way" to AddGadget to such (new)window, after last gadget of such window:

struct Gadget *ngad;
    
int32 i;
...
    
IExec->DebugPrintF("0x%08lx (WFLG_WBENCHWINDOW)\n",newWin->Flags&WFLG_WBENCHWINDOW);
...
    
ngad newWin->FirstGadget;
    
1;
    while(
ngad) {
        
IExec->DebugPrintF("Gad_#%02ld = 0x%08lx\n",i++,ngad);
        
ngad ngad->NextGadget;
    }



example opening WB RAM Disk:
[NEW]OpenWindowTagList(): win=0x600668d0
L= 50 T= 50
W= 481 H= 292
Flags = 0x0200107f
0x02000000 (WFLG_WBENCHWINDOW)
Gad_#01 = 0x6006691e
Gad_#02 = 0x6006694a
Gad_#03 = 0x60066976
Gad_#04 = 0x600669a2
Gad_#05 = 0x600669ce
Gad_#06 = 0x600669fa
ti_Tag = 0x8000007f -> WA_BackFill : 0x5fed9588
ti_Tag = 0x80000098 -> WA_PointerDelay : 0x00000001
ti_Tag = 0x8000006f -> WA_ScreenTitle : 0x6ff2233f
ti_Tag = 0x80000093 -> WA_NewLookMenus : 0x00000001
ti_Tag = 0x80000090 -> WA_AutoAdjust : 0x00000001
ti_Tag = 0x80000092 -> WA_MenuHelp : 0x00000001
ti_Tag = 0x800000ab -> WA_AlphaClips : 0x00000018
ti_Tag = 0x800000a6 -> WA_GrabFocus : 0x00000001


chekcing with ranger such gadgets are Bool/Prop-gadgets.

Go to top


Re: DrawerGenie for AOS4?
Just can't stay away
Just can't stay away


@kas1e

Tried the same, but no idea what flags do use WB windows.

Anyway try this one (source included), little test I didi it only shows (serial output) WB windows, other program/notify are skipped:

http://jabirulo.byethost13.com/temp/testSetMethod.7z

Go to top


Re: Adding an Amiga menu to an SDL1 window?
Just can't stay away
Just can't stay away


@Capehill

thx fixed to:
..
  if(
SDL_GetWMInfo(&wmInfo) == 1) { return(wmInfo.window); }

  return(
NULL);
}


@Samir
it exists since "aaages" in our update/port, but didn't try to add menus to SDL/GL windows yet.

Go to top


Re: DrawerGenie for AOS4?
Just can't stay away
Just can't stay away


@kas1e

Hi, not sure, but maybe check WFLG_WBENCHWINDOW flag on all WB windows and ones with such flag are WB ones.

Go to top


Re: DrawerGenie for AOS4?
Just can't stay away
Just can't stay away


@sinisrus

PowerWB adds gadgets to window titlebar (and maybe menu options). just like on some porgrams add iconify gadget to intuition windows.

What it will be nice is to SetFunction/Method and add a (toolbar/speedbar) gadget/object to WB windows only (like powerWB) just below the window titlebar.

Go to top


Re: Adding an Amiga menu to an SDL1 window?
Just can't stay away
Just can't stay away


@trixie

I have something like this to get SDL1 window struct:
#include "SDL/SDL_syswm.h"
struct Window *AmigaOS_GetSDLWindowPtr(void)
{
  
SDL_SysWMinfo wmInfo;

  
SDL_GetWMInfo(&wmInfo);
  return( (
struct Window*)wmInfo.window );
}

Go to top



TopTop
« 1 2 3 (4) 5 6 7 ... 51 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project