Intuition

Intuition and LockLayers()

OK, here's the situation:
I have written a small app to play MIDI files. The primary goal is to keep sending music out on time. A secondary goal is to update a few objects in the window. There is a button with SMPTE time as the text and another button with music time. There is also a fuelgauge gadget that shows the progress as the song plays.
All of this works great as long as intuition is not too busy. But if the user starts moving or resizing windows on the screen, the program is "locked out" until the user lets go of the resize.

Forums: 

Adding a console input to an application

Gui4Cli has a debug output console.
I would like to use that for input too: a line should execute a given Gui4Cli commandline
This would allow to test those commandlines, to load or open gui's to do in fact anything that could be done from a gadget's command sequence.
How could this be done? A pseudo-code sketch would be much appreciated

Forums: 

Window (bottom) border

Is it possible to predict the height of a window's bottomborder (window opened on the frontmost public screen). The screenheight is depending notably if it has a resize gadget or not, and its size van be changed with the screens prefs (GUI)
Can one get acces to this value ?

sc->WBorBottom;
and
wn->BorderBottom
are probably equal if no resize gadget?

Forums: 

Custom Screen Bar Logo

Is it possible for an application that opens its own screen to use a custom SBarLogo specified by the application without the user having to create an entire new Screens prefs entry for it.

Basically I want the application to be "Like Workbench" but specify an application specific screen bar logo - wihtout user intervention.

I have looked through intuition/gui.h but cannot see anything obviously applicable nor any examples on how to do this assuming it is actually possible to do.

Forums: 

When is a Datatype Ready for Refresh?

I've been successful in reading Datatypes, specifically AmigaGuide DT with

> AddDTObject() to the window.
> Delay a bit and then RefreshDTObjectA().

The "Delay a bit" part of it does not seem so great, but without the delay the Refresh doesn't take and the system is likely to freeze Intuition.

Delaying 1 second seems to be enuf, but there must be a deterministic way to determine when the object is ready.

Any info?

Thanks,

Tom

Forums: 

Finding a page in a page gadget

Hi,

I plan on using a page gadget in an application and happen to grasp the inner workings of that gadget somehow.

What I would like to know, whether there is a method of retrieving a page's index, when that is not known from its address, by comparing that address with some internal list or array, until a match is found. Does layout.gadget maintain such a list or array?

Forums: 

Pages

Subscribe to RSS - Intuition