Welcome, Guest. Please login or register.
Amiga Kit Amiga Store Iridium Banner AMIStore App Store A1200/A600 4xIDE Interface

AuthorTopic: OpenScreenTags() and what tags to drag?  (Read 956 times)

0 Members and 1 Guest are viewing this topic.

Offline bbond007

OpenScreenTags() and what tags to drag?
« on: February 25, 2012, 03:17:54 AM »
I have a program that opens a screen.

The example program I took the code from did not have a title and was not movable.

Anyway, I decided that i did want this functionality, so I tried to enable it by changing relevant tags SA_Quiet, FALSE, SA_Draggable,TRUE, SA_ShowTitle,TRUE  

the behavior is exactly the same as before and I have been searching for hours trying to figure this out.

Please help.

thanks.


if (!(screen=OpenScreenTags(NULL,
      SA_Left, 0,
      SA_Top, 0,  0,
      SA_Width, 320,
      SA_Height,200,
      SA_Depth, DisplayBPP,
      SA_Title,title,
      SA_Quiet,FALSE,
      SA_ShowTitle,TRUE,
      SA_Type,CUSTOMSCREEN,
      SA_DisplayID, DisplayID,
      SA_Draggable,TRUE,
      TAG_DONE )))
         exit(0);
 

Offline ChaosLord

Re: OpenScreenTags() and what tags to drag?
« Reply #1 on: February 25, 2012, 04:09:01 AM »
Quote from: bbond007 wrote the following bug :D ;681494
Code: [Select]
SA_Top, 0,  0,

Remove one of those 0,

Doesn't matter which one :)

Tags always come in pairs, not triplets :D

p.s. Please remember me in the credits of your world-changing, revolutionary awe-inspiring game/app/tool/proggy :)
Wanna try a wonderfull strategy game with lots of handdrawn anims,
Magic Spells and Monsters, Incredible playability and lastability,
English speech, etc. Total Chaos AGA
 

Offline bbond007

Re: OpenScreenTags() and what tags to drag?
« Reply #2 on: February 25, 2012, 07:30:55 AM »
Quote from: ChaosLord;681497
Remove one of those 0,

Doesn't matter which one :)

Tags always come in pairs, not triplets :D

p.s. Please remember me in the credits of your world-changing, revolutionary awe-inspiring game/app/tool/proggy :)


I'm not sure if you want to me mentioned in any of my programs because they (the end user) might come looking for you when one of my bad pointers crashes their machine.

I had a bunch of issues and I think I may have caused the error you pointed out while trying different things.

Anyway, I also was opening a boarderless window to get IDCMP messages and having that window at 0,0 was preventing dragging of the screen.

Now the reason the menu bar and depth gadget were not being drawn because I'm doing page flipping and it was getting thrown to the back initally. Fixed it with BlitBitMap.

Thanks!

nate
« Last Edit: February 25, 2012, 07:35:37 AM by bbond007 »
 

Offline Rebel-CD32

Re: OpenScreenTags() and what tags to drag?
« Reply #3 on: February 25, 2012, 07:42:44 AM »
Nice palette! ;)
Amiga user forever.
 

Offline bbond007

Re: OpenScreenTags() and what tags to drag?
« Reply #4 on: February 25, 2012, 07:56:24 AM »
Quote from: Rebel-CD32;681505
Nice palette! ;)


Disclaimer:

If this app crashes your computer, the actual cause was due to Rebel's palette.