Welcome, Guest. Please login or register.

Author Topic: OpenScreenTags() and what tags to drag?  (Read 3605 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline bbond007Topic starter

  • Hero Member
  • *****
  • Join Date: Mar 2009
  • Posts: 1517
    • Show all replies
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 bbond007Topic starter

  • Hero Member
  • *****
  • Join Date: Mar 2009
  • Posts: 1517
    • Show all replies
Re: OpenScreenTags() and what tags to drag?
« Reply #1 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 bbond007Topic starter

  • Hero Member
  • *****
  • Join Date: Mar 2009
  • Posts: 1517
    • Show all replies
Re: OpenScreenTags() and what tags to drag?
« Reply #2 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.