Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
60 user(s) are online (43 user(s) are browsing Forums)

Members: 0
Guests: 60

more...

Headlines

Forum Index


Board index » All Posts (mritter0)




ObtainBestPen()
Just popping in
Just popping in


RedPen=IGraphics->ObtainBestPen(DefaultPubScreen->ViewPort.ColorMap,0xFFFFFFFF,0x00000000,0x00000000,
        
OBP_Precision,                            PRECISION_GUI,
        
OBP_FailIfBad,                            FALSE,
    
TAG_END);


Do I really need to specify the alpha channel? Does it have any benefit to specify it? Will I get a more accurate color with/without it?

Go to top


Re: X5000 Dual Monitors?
Just popping in
Just popping in


@eliyahu

If I were to buy an X5000 and 2 video cards, would I be good to go? As you said, the OS and firmware need to support the ability.


@mbrantley

How do you get the screens to the second monitor? Are the positions remembered? As in, always open TextEditorScreen on monitor 2, Workbench on monitor 1, XYZ screen on 2, etc.

Workbench Explorer - A better way to browse drawers
Go to top


Re: Amiga On The Lake
Just popping in
Just popping in


I just talked to Aaron on the phone about customizing an X5000. Very helpful. And I could tell he has the passion for Amigas like we do. He has plans to expand the items on the site to cover all the bases. Nice to have an American dealer again. Keep checking back to his site. I will be.

Workbench Explorer - A better way to browse drawers
Go to top


Re: X5000 Dual Monitors?
Just popping in
Just popping in


Ah yes, the ol' different screen resolution/size issue. Understand.

@mbrantley:

I am looking to do software development. It is nice to have your text editor on 1 monitor, and your project and other windows on the 2nd. Now flipping of windows, can have max size, etc.

So if I had my text editor open on it's own screen on the 2nd monitor, how do you switch back and forth to WB? Just drag mouse over or use a commodity?

Workbench Explorer - A better way to browse drawers
Go to top


Re: X5000 Dual Monitors?
Just popping in
Just popping in


The video card has 2 outputs, DVI and HDMI. I would like to do double wide Workbench, 3840x1080. Possible?

Once you go multi-monitors you never want to go back to one.

Workbench Explorer - A better way to browse drawers
Go to top


X5000 Dual Monitors?
Just popping in
Just popping in


Can the X5000 do dual monitors?

Go to top


Re: Disposing of objects
Just popping in
Just popping in


Is there a way to not cache the images? They are very short term and is a waste to cache them.

Img=IIntuition->NewObject(BitMapClass,NULL,
    
BITMAP_SourceFile,                        "PROGDIR:Images/24x1",
    
BITMAP_SelectSourceFile,                "PROGDIR:Images/24x1",
    
BITMAP_DisabledSourceFile,                "PROGDIR:Images/24x1",
    
BITMAP_Screen,                            DefaultPubScreen,
    
BITMAP_Precision,                        PRECISION_EXACT,
    
BITMAP_Masking,                            TRUE,

        
BITMAP_DoNotCache,        TRUE,

TAG_DONE);


Some sort of tag to not cache the image.

Workbench Explorer - A better way to browse drawers
Go to top


Re: Launching Odyssey
Just popping in
Just popping in


@broadblues

That worked. Thanks.

Workbench Explorer - A better way to browse drawers
Go to top


Launching Odyssey
Just popping in
Just popping in


I am trying to set up Odyssey in the Preferences->URL settings. But I can only get it to open to a blank page.

HTTP tab
ODYSSEY APPDIR:ODYSSEY "URL=*"http://%s*""

HTTPS tab
ODYSSEY APPDIR:ODYSSEY "URL=*"https://%s*""

WWW tab
ODYSSEY APPDIR:ODYSSEY "URL=*"http://www.%s*""


These open the browser, but to a blank tab.

If I use APPDIR:ODYSSEYLAUNCHER, it flashes the Odyssey logo then closes immediately and does not open the browser.

What are the correct settings?

Go to top


Re: Installer get date
Just popping in
Just popping in


(run "setenv filedate `list "Program0" lformat "%D"`")
(set Released (getenv "filedate"))

That worked! Thanks.

It does give dates like: Yesterday, Monday, not just the usual 23-Nov-14. But good enough.

Workbench Explorer - A better way to browse drawers
Go to top


Installer get date
Just popping in
Just popping in


Using the Installer program, I can get the version of my program to be installed using this:


(set Program0 "WorkbenchExplorer")
...
(set vernum1 (getversion Program0)) (set Ver1 (/ vernum1 65536)) (set Rev1 (- vernum1 (* Ver1 65536)))
(set Version1 (cat Ver1 "." Rev1))

Is there a way to get the date string?

Go to top


Re: RequesterClass
Just popping in
Just popping in


Exactly.

Workbench Explorer - A better way to browse drawers
Go to top


RequesterClass
Just popping in
Just popping in


Why isn't there a REQIMAGE_SUCCESS image? A green image to go along with warning and error.

The operation was a success!!!

------------------------

Is there a way to get bold text in a requester? I used to use this on OS3.9 for my locale strings:

MSG_THE_CHECKSUMS_DO_NOT_MATCH (//)
\x1B[1mThe checksums do not match!\x1B[0m

Same for italic and underline.

Go to top


Filer font requester
Just popping in
Just popping in


What does the font requester return for the user buttons?

Just the selected font name (with .font appended)?

The chosen size also?


What is it really for? When would you use this?

Go to top


Re: Determine MultiAssign
Just popping in
Just popping in


BOOL
GetAssigns
(VOID)
{
    
BOOL                            Success=TRUE;
    
struct Node                        *node;
    
struct List                        *ADOList;
    
struct DevProc                    *dp=NULL, *dp2=NULL;
    
struct MsgPort                    *filesystemtask;

    if ((
ADOList=IDOS->AllocDosObjectTags(DOS_VOLUMELIST,
        
ADO_Type,                                LDF_ASSIGNS,
        
ADO_AddColon,                            TRUE,
    
TAG_END)))
    {
        for(
node=IExec->GetHead(ADOList); nodenode=IExec->GetSucc(node))
        {
            if (!(
AssignsNode=(struct AssignsNode *)SAK_CreateGenericListNode(sizeof(struct AssignsNode),(STRPTR)"")))
            {
                
SAK_EasyRequest(Objects[OID_WINDOW],MainWindow,RequesterTitle,REQIMAGE_WARNING,0,SAK_LocaleString(MSG_COULD_NOT_CREATE_EXEC_LIST_NODE),SAK_LocaleString(MSG_CONTINUE));
                
Success=FALSE;
                break;
            }
            
SAK_AddGenericListNode(MasterAssignsList,(struct Node *)AssignsNode,GLIST_BOTTOM);

            
IUtility->SNPrintf(AssignsNode->Name,128,"%s",node->ln_Name);
            
IUtility->SNPrintf(AssignsNode->UserData,128,"[Ass]%s",AssignsNode->Name);
//            AssignsNode->IsMultiAssign=FALSE;

            
while ((dp=IDOS->GetDeviceProcFlags(node->ln_Name,dp,LDF_ALL)))
            {
                if (
dp->dvp_Flags DVPB_ASSIGNMENT)
                {
                    
IDOS->Printf("MultiAssign: %s\n",node->ln_Name);
//                    AssignsNode->IsMultiAssign=TRUE;

                    
filesystemtask IDOS->GetFileSysPort();
                    do
                    {
                        if ((
dp2=IDOS->GetDeviceProcFlags(node->ln_Name,dp2,LDF_ALL)))
                        {
                            
IDOS->SetFileSysPort(dp2->dvp_Port);
                            if ((
IDOS->NameFromLock(dp2->dvp_Lock,Misc1Buffer,1024)))
                            {
                                
IDOS->Printf("MultiAssign: %s -> %s\n",node->ln_Name,Misc1Buffer);
                                
error=0;
                            }
                            else
                                
error=IDOS->IoErr();

                            if (
error != 0)
                                break;

                        }
                    } while (
dp2 && (dp2->dvp_Flags DVPF_MULTIASSIGN));

                    
IDOS->SetFileSysPort(filesystemtask);
                    if (
dp2)
                    {
                        
IDOS->FreeDeviceProc(dp2);
                        
dp2=NULL;
                    }
                }
            }
        }

        if (
dp)
            
IDOS->FreeDeviceProc(dp);

        
IDOS->FreeDosObject(DOS_VOLUMELIST,ADOList);
    }

    return(
Success);
}


Are the
filesystemtask = IDOS->GetFileSysPort();
and
IDOS->SetFileSysPort(dp2->dvp_Port);
and
IDOS->SetFileSysPort(filesystemtask);
necessary? It works without them.

Workbench Explorer - A better way to browse drawers
Go to top


Re: Determine MultiAssign
Just popping in
Just popping in


if (dp->dvp_Flags & DVPB_ASSIGNMENT)

gives me the multi-assign entries. Weird.

But now how do I get their items?

Workbench Explorer - A better way to browse drawers
Go to top


Re: AppDocky
Just popping in
Just popping in


I got working the way I want. Have to unregister/register to do it.

Workbench Explorer - A better way to browse drawers
Go to top


Determine MultiAssign
Just popping in
Just popping in


How do I determine if an entry is a multi-assign?

LIBS: could be
Workbench:Libs
Workbench:MUI/Libs

bin: could be
Programming:SDK/local/C
Programming:SDK/C

BOOL
GetAssigns
(VOID)
{
    
BOOL                            Success=TRUE;
    
struct Node                        *node;
    
struct List                        *ADOList;

    
struct DevProc                    *dp=NULL;

    if ((
ADOList=IDOS->AllocDosObjectTags(DOS_VOLUMELIST,
        
ADO_Type,                                LDF_ASSIGNS,
        
ADO_AddColon,                            TRUE,
    
TAG_END)))
    {
        for(
node=IExec->GetHead(ADOList); nodenode=IExec->GetSucc(node))
        {
            if ((
dp=IDOS->GetDeviceProcFlags(node->ln_Name,0,LDF_ALL)))
            {
                if (
dp->dvp_Flags DVPB_MULTIASSIGN)
                {
                    
IDOS->Printf("MultiAssign: %s\n",node->ln_Name);
                }

                
IDOS->FreeDeviceProc(dp);
            }


            if (!(
AssignsNode=(struct AssignsNode *)SAK_CreateGenericListNode(sizeof(struct AssignsNode),(STRPTR)"")))
            {
                
SAK_EasyRequest(Objects[OID_WINDOW],MainWindow,RequesterTitle,REQIMAGE_WARNING,0,SAK_LocaleString(MSG_COULD_NOT_CREATE_EXEC_LIST_NODE),SAK_LocaleString(MSG_CONTINUE));
                
Success=FALSE;
                break;
            }
            
SAK_AddGenericListNode(MasterAssignsList,(struct Node *)AssignsNode,GLIST_BOTTOM);

            
IUtility->SNPrintf(AssignsNode->Name,128,"%s",node->ln_Name);
            
IUtility->SNPrintf(AssignsNode->UserData,128,"[Ass]%s",AssignsNode->Name);
        }

        
IDOS->FreeDosObject(DOS_VOLUMELIST,ADOList);
    }

    return(
Success);
}


Once I determine if it is a multi-assign, how do I get the list of paths for it?

The Asl file requester, Volumes, show multi-assigns in bold. When click on it, a new window opens with the items.

Go to top


AppDocky
Just popping in
Just popping in


Is there a way to quickly/easily toggle a program's AppDocky entry without having to unregister/register the application every time?

When the program is iconified, I would like the option to do a regular Workbench iconify, and an AppDocky.

Iconify, add to AppDock
AppIconInfo.iconType=APPICONT_ProgramIcon;
IApplication->SetApplicationAttrs(appID,
    
REGAPP_AppIconInfo,                    AppIconInfo,
    
REGAPP_FileName,                    ProgramComplete,
TAG_END);


Uniconify, remove from AppDock
AppIconInfo.iconType=APPICONT_None;
IApplication->SetApplicationAttrs(appID,
    
REGAPP_AppIconInfo,                    AppIconInfo,
TAG_END);


Something along those lines.

Go to top


Icon to BitMap
Just popping in
Just popping in


How do I get an icon's render image copied to a bitmap?

struct DiskObject *icon NULL;
icon IIcon->GetIconTags(NoInfoBuffer,
    
ICONGETA_FailIfUnavailableTRUE,
    
ICONGETA_UseFriendBitMapTRUE,
    
ICONGETA_ScreenPID->Screen,
TAG_END);

PID->OrigWidth=64;   // get the icon's dimensions
PID->OrigHeight=64;  // not use these defaults

if (!(PID->OrigBM=IGraphics->AllocBitMapTags(PID->OrigWidth,PID->OrigHeight,32,
    
BMATags_PixelFormatPIXF_A8R8G8B8,
    
BMATags_ClearTRUE,
    
BMATags_DisplayableTRUE,
TAG_DONE)))
{
// error
}


How do I get the icon->do_Gadget.GadgetRender copied to the PID->OrigBM? I always end up with a solid grey block.

I want to use a bitmap because down the road there could be some scaling (I know it can be done above in loading).

And I want no border/text.


Go to top



TopTop
« 1 ... 6 7 8 (9) 10 11 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project