Who's Online |
60 user(s) are online ( 43 user(s) are browsing Forums)
Members: 0
Guests: 60
more...
|
|
|
|
ObtainBestPen()
|
Posted on: 2016/10/20 1:20
#161
|
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?
|
|
|
|
Re: X5000 Dual Monitors?
|
Posted on: 2016/10/13 23:05
#162
|
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
|
|
|
Re: Amiga On The Lake
|
Posted on: 2016/10/13 0:53
#163
|
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
|
|
|
Re: X5000 Dual Monitors?
|
Posted on: 2016/10/12 20:20
#164
|
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
|
|
|
Re: X5000 Dual Monitors?
|
Posted on: 2016/10/11 20:13
#165
|
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
|
|
|
X5000 Dual Monitors?
|
Posted on: 2016/10/10 6:58
#166
|
Just popping in
|
Can the X5000 do dual monitors?
|
|
|
|
Re: Disposing of objects
|
Posted on: 2016/10/5 3:25
#167
|
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
|
|
|
Re: Launching Odyssey
|
Posted on: 2016/10/4 22:53
#168
|
Just popping in
|
@broadblues
That worked. Thanks.
|
Workbench Explorer - A better way to browse drawers
|
|
|
Launching Odyssey
|
Posted on: 2016/10/4 0:22
#169
|
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?
|
|
|
|
Re: Installer get date
|
Posted on: 2016/9/28 23:30
#170
|
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
|
|
|
Installer get date
|
Posted on: 2016/9/26 2:18
#171
|
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?
|
|
|
|
Re: RequesterClass
|
Posted on: 2016/9/23 0:13
#172
|
Just popping in
|
Exactly.
|
Workbench Explorer - A better way to browse drawers
|
|
|
RequesterClass
|
Posted on: 2016/9/22 1:12
#173
|
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.
|
|
|
|
Filer font requester
|
Posted on: 2016/9/18 22:26
#174
|
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?
|
|
|
|
Re: Determine MultiAssign
|
Posted on: 2016/9/15 5:26
#175
|
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); node; node=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
|
|
|
Re: Determine MultiAssign
|
Posted on: 2016/9/15 3:03
#176
|
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
|
|
|
Re: AppDocky
|
Posted on: 2016/9/15 2:57
#177
|
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
|
|
|
Determine MultiAssign
|
Posted on: 2016/9/15 2:56
#178
|
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); node; node=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.
|
|
|
|
AppDocky
|
Posted on: 2016/9/10 17:51
#179
|
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.
|
|
|
|
Icon to BitMap
|
Posted on: 2016/9/5 19:52
#180
|
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_FailIfUnavailable, TRUE,
ICONGETA_UseFriendBitMap, TRUE,
ICONGETA_Screen, PID->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_PixelFormat, PIXF_A8R8G8B8,
BMATags_Clear, TRUE,
BMATags_Displayable, TRUE,
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.
|
|
|
|