Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who is Online
15 user(s) are online (12 user(s) are browsing Forum)

Members: 0
Guests: 15

more...


Browsing this Thread:   1 Anonymous Users






Re: Right click trouble
#5
Home away from home
Home away from home


See User information
Just a quick note that the next (coming very soon) r6 beta no-longer needs any of the following code:

<pre>OPT POINTER
MODULE 'intuition/intuition'

PROC disableAmigaMenus(gfxWin:PTR TO cGfxWindow)
DEF amiWin:PTR TO window
IF amiWin := gfxWin.queryExtra("WIND") !!PTR TO window
amiWin.flags := amiWin.flags OR WFLG_RMBTRAP
ENDIF
ENDPROC

disableAmigaMenus(gfx)</pre>


The next r6 beta also supports window resizing

Posted on: 2011/10/27 18:05
ChrisH
--
Author of the PortablE programming language.
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Right click trouble
#4
Home away from home
Home away from home


See User information
Quote:
WARNING: unused parameter
LINE ....: PROC disableAmigaMenus(gfxWin:PTR TO cGfxWindow)

Ooops, sorry. Now fixed.

Quote:
you know - I need it - can you write code with this method and add size gadget for windows resizing:

WFLG_SIZEGADGET Flag

Is this possible???

It's not that simple I'm afraid. I need to resize the window buffers as well, which needs a bit of delving into my code to ensure I do it right.

As I said before, I *will* look into it, but just not right now.

Posted on: 2011/3/27 21:19
ChrisH
--
Author of the PortablE programming language.
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Right click trouble
#3
Just can't stay away
Just can't stay away


See User information
Compiling with little warning

WARNING: unused parameter
LINE ....: PROC disableAmigaMenus(gfxWin:PTR TO cGfxWindow)

but is not important probably...

Chris! - you know - I need it - can you write code with this method and add size gadget for windows resizing:

WFLG_SIZEGADGET Flag

Is this possible???

Posted on: 2011/3/27 19:37
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Right click trouble
#2
Home away from home
Home away from home


See User information
@mrdarek
Until I add proper menu support, this is a little fiddly to do. The easiest solution is to make your program a FullScreen App. For example:

<pre>IsFullScreenApp(InfoScreenWidth(), InfoScreenHeight())
OpenFull()</pre>

However, if you really don't want to do that, then you can use the following Amiga-specific kludge. First, put these two lines right at the very top of your program:

<pre>OPT POINTER
MODULE 'intuition/intuition'</pre>

Next, add the following procedure to your program:

<pre>PROC disableAmigaMenus(gfxWin:PTR TO cGfxWindow)
DEF amiWin:PTR TO window
IF amiWin := gfxWin.queryExtra("WIND") !!PTR TO window
amiWin.flags := amiWin.flags OR WFLG_RMBTRAP
ENDIF
ENDPROC</pre>

Finally, after opening your window, use the following line:

<pre>disableAmigaMenus(gfx)</pre>

This works on AmigaOS4, and probably AmigaOS3. I have no idea if it will work on MorphOS or AROS.

Posted on: 2011/3/27 15:55

Edited by PortablE on 2011/3/27 21:17:11
ChrisH
--
Author of the PortablE programming language.
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Right click trouble
#1
Just can't stay away
Just can't stay away


See User information
In my program - AmigaOS4 version - I need use right mouse click. I code it like in ToySketch example but compiled version not execute action for this button, but try enable windows menu (menu is empty for me). I no need menu - How properly detect right mouse click?

Posted on: 2011/3/27 14:30
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 







You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
4462
2 nikolaos
nikolaos
4206
3 magorium
magorium
4095
4 phoenixkonsole
phoenixkonsole
3942
5 deadwood
deadwood
2917
6 ncafferkey
ncafferkey
2810
7 mazze
mazze
2222
8 Kalamatee
Kalamatee
2212
9 clusteruk
clusteruk
2114
Powered by XOOPS © 2001-2025 The XOOPS Project