Intuition

Start coding on the AmigaOS4

I have been coding C++ and C# for some years now, but not that much C++ lately, and I'm trying to follow the most simple guides I can find, and try to open a standard Window, but I got errors all over, and it may be different to code on the Amiga compared to PC/Windows/Linux, as what I heard the Amiga don't realy support C++ to the fully and most people using C, I can live with that.

I'm using CodeBech, and get error like this:

warning: implicit declaration of function 'OpenLibrary'

etc.

Forums: 

Clicking on close window does not close it

Hi all,

I have a problem with my code and I just can't find the bug. I open my window but when I close it nothing happens. Below is a snippet of the code. After doing some testing I can see it never reaches the part "while(( result = IIntuition->IDoMethod( winobj, WM_HANDLEINPUT, &code )) != WMHI_LASTMSG )". If I place the code to break from the program using CTRL C between the two while's it will do that. I stared at a dozen examples and I just can't find the cause.

while( !done )
{

Forums: 

pointerclass example available??

Might be Intuition, might be Graphics, might be that grey area in between.
I have been fighting with creating pointers using pointerclass, and so far
I'm not having much luck. I'm NOT loading .iff files, nor using icon files in
prefs:system.. I'm trying to create bitmaps with the desired pointer graphics dynamically. Through all my failed attempts, it now looks something like:

Forums: 

Disabling/enabling menu items (solved)

I have a menustrip created through GadTools. The individual menu items are referenced by IDs:

enum { MID_OPEN=1, MID_SAVE, MID_ABOUT, MID_QUIT };

which I pass in the nm_UserData field of the NewMenu structure.

During the course of the program, I need to enable or disable certain menu items, depending on program state. I know there is OnMenu() and OffMenu(), and how to use the ITEMNUM() macro to extract the appropriate menu number from the IDCMP_MENUPICK message.

Forums: 

Anyone have (or know of) a complete ChangeScreenBuffer() example?

The subject says it all. I'm looking for a complete ChangeScreenBuffer() example. The AutoDocs say to look at the graphics library documentation, and the graphics library's documentation has an incomplete example of double-buffering a viewport. I could definitely figure it out eventually, but a complete example specific to ChangeScreenBuffer() would be so much easier.

Hans

Forums: 

Size of win resize gadget?

Does anyone know how to find the size of the window's WFLG_SIZEGADGET resize gadget *BEFORE* opening the window?

What I want to do is create a resizable window with a specific "inner" size (excluding the border). Resizing the window after creation is NOT desirable, because it may take up to 1/10 of a second (6 frames!) to take effect.

Forums: 

How to get both RMB events and menus??

Topic says it all: I want to be able to have both right mouse button evens from a menu AND use menus in the same window. How is this possible? Surely it is possible, because it is used in applications like DeluxePaint and PPaint.

When I use WFLG_RMBTRAP the menu is blocked, and when not I can't right mouse events.

Help!

Forums: 

Pages

Subscribe to RSS - Intuition