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.
I'm working on a small GUI, and I want to have a vertical fuel-gauge gadget with a 2-line label centred above it. This sounds like it should be simple, but I just cannot get it aligned right.
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
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?
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.
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?