Virtual gadget

Online Status

Hi everyone,

Has anyone managed to use the Virtual gadget? Here, I don't get any error, but nothing happens.

Here is the (GCC) source (and exe) of the test I did:
http://boing.attitude.online.fr/temp/Test_Virtual.zip

Maybe I'm doing something wrong ?

Online Status

It does work in some cases, but definitely not all and is sort of broken by design

Online Status

In the case with this code the virtual gadget is not at fault.

You need to open window.class and then your example code will open the window correctly.

In my experience virtual gadget definitely has some quirks but does mostly work.

Online Status

@Camilla, thanks for info.

@Darren, you're right. I've build the sample too quickly!
Of course, I have another more complex usage with window.class opened. But I'll fix it, thanks.

Online Status

Hi,

I've fixed the window.class opening and added a few extra gadgets to try to reproduce the case that occurs in one of my software.

It seems that I found something strange : I can add and display buttons in a virtual.gadget but if the virtual.gadget is within a clicktab, nothing is displayed (no error, just nothing displayed)

Here is the (GCC) source (and exes) of the test I did:
http://boing.attitude.online.fr/temp/Test_Virtual.zip
=> Virtual.exe is the exe associated to the source : it works well and displays buttons within a virtual gadget.
=> If you uncomment the lines of the source, ie : enable clicktab, nothing is displayed anymore in the virtual.gadget (Virtual_tab.exe).
=> There's also a screenshot.

Maybe I'm doing something wrong ? But the same code source seems to display something on AmigaOS 4.

Thanks.

Online Status

Hello, interesting. I totally plan to do some "audacity-like" interface in boopsi, creating my own class t o draw curves, and having many ones "inside a scroll area". In state of the art UI you're meant to redraw only what's need to be redrawn when scrolling, but well, that is far away in my coding schedule.

I've been already posting question about drawing special gadgets class in GM_RENDER here.

Scoop!: I'm actually coding a "Boopsi wizard" interface, for which I intend to have "gadget class" template, "image datatype" template, which will be easy to do, and then this will be more work but maybe a ".library template" using .fd / protos to generate C projects.
I plan to generate "smakefile" for GCC6.5 , "makefile" for old amiga GCC2.x , and "CMakelists.txt" for more modern GCC6 crosscompilers... This is actually 80% done, with just the gadget template.

Online Status

As I said virtual.gadget is broken by design and you have found one case

MM

Online Status

Example

Does this look as working ?

Online Status

@MM, Seems that yes :-) What did you change to make it work?

Online Status

... I theorize, but considering that each gadget class has to manage internally its own "clipping" with layers.library during GM_RENDER,, maybe some gadgets are virtual-compatible, and other aren't.

MM

Online Status

Nothing changes, ran the example exe included above

Online Status

@MM, do you use the lastest AmigaOS 3.2 public release (3.2.3) or something newer (like AmigaOS 3.3 beta)?

Online Status

Also à thing that could make the difference if its same exe,seen with cubicIDE on os3. It crash if you minimize the window so the text view size is 0,0, on AGA, but does not crash on RTG. This is obviously calls like graphics blitrectsomthing, that are documented in autodoc to crash if size 0 is passed. Many people reported that bug to cubicIDE author for years, but then again we have been laughed at and get insulted .
In your ui test list , check minimal size on aga

MM

Online Status

Just tried again, works fine in clean 3.2.3 and current betas

Online Status

@MM, thanks for your feedback. I've tried again and it works (!!!?). So I was a bit surprised... Was I'm going mad? Hopefully, no. :)

The problem only occurs on the second run.
To summarize:
- Run virtual_tabs.exe: it works (AGA or RTG).
- Quit virtual_tabs.exe.
- Run again virtual_tabs.exe: this time, nothing is diplayed (except the titles of the tabs).

Could you try and tell me ?

Otherwise, I found two things that seem strange to meon virtual_tabs.exe (no need to run twice this time).
- The mouse wheel has not effect (no scroll).
- I have to click twice the "Quit" button to be able to quit. Should work from the first click IMHO (works like that on virtual.exe, without tabs).

MM

Online Status

Confirmed. we are on to something here, investigating.

Online Status

@MM, thanks.