Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

Offline bbond007Topic starter

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

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show only replies by ChaosLord
    • http://totalchaoseng.dbv.pl/news.php
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 bbond007Topic starter

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

  • Sr. Member
  • ****
  • Join Date: Apr 2004
  • Posts: 288
    • Show only replies by 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 bbond007Topic starter

  • Hero Member
  • *****
  • Join Date: Mar 2009
  • Posts: 1517
    • Show only replies by 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.