Browsing this Thread:
1 Anonymous Users
|
Re: Right click trouble
|
||||
|---|---|---|---|---|
|
Home away from home
![]()
|
Quote:
WARNING: unused parameter Ooops, sorry. Now fixed. Quote: you know - I need it - can you write code with this method and add size gadget for windows resizing: 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
|
|||
|
||||
|
Re: Right click trouble
|
||||
|---|---|---|---|---|
|
Just can't stay away
![]() |
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
|
|||
|
||||
|
Re: Right click trouble
|
||||
|---|---|---|---|---|
|
Home away from home
![]()
|
@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
|
|||
|
||||
|
Right click trouble
|
||||
|---|---|---|---|---|
|
Just can't stay away
![]() |
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
|
|||
|
||||
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.







