18 January 2014, 19:10 | #81 | |
Registered User
Join Date: Aug 2004
Location:
Posts: 3,343
|
Quote:
Code:
eventloop: get_message(); if (message_type == IDCMP_MOUSEMOVE) { update_mouse_pos(); // Update your program's mouse X and Y variables, but don't do any other processing goto eventloop; } // Handle other types of message ... Also, are you only interested in mouse events when the pointer is over a gadget? You can use GACT_FOLLOWMOUSE instead of receiving mouse events for the entire window (WA_ReportMouse). Last edited by mark_k; 18 January 2014 at 19:53. |
|
18 January 2014, 20:40 | #82 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
|
I think I need to process the mousemoves because if I just update the pos, classes will never known that user moved the mouse over a gadget. I do not use intuition or boopsi gadgtes but render and manage my own. However I am ignoring mousmoves that come with the same coordinates. Sometimes I get a lot of those, dunno why.
Last edited by AGS; 18 January 2014 at 21:14. |
18 January 2014, 21:13 | #83 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
|
This means the crashes I described do not happen on your system? Please try 'use'-ing the config and then click 'revert'.
|
18 January 2014, 21:18 | #84 |
Registered User
Join Date: Aug 2004
Location:
Posts: 3,343
|
Okay. Suppose the user has moved the mouse over a gadget, but by the time you process the mousemove messages the pointer is not over the gadget any more. Do you want to process the messages, reading the pointer position at the time of the message (i.e. from each message), or just read the current pointer position from the Window structure? If no button was pressed, could you ignore all the "older" mousemove messages? Or do your gadgets need to know all mouse moves?
Maybe if there is some way to quickly discard unneeded mousemove messages that could reduce any lag effect. Or if in some cases you don't actually need mousemove messages (maybe they are only needed for certain gadget types???), change the window's IDCMP flags so you don't get mousemove messages. |
18 January 2014, 22:32 | #85 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
|
I discard mousemoves that come with the same coordinates as the previous ones. On slow systems this seems to happen. I need the moves always, so that I know if the mouse has entered a gadget or left it. If the mouse is not over a gadget, how will I know if it entered a gadget without reading the mousmoves.
|
18 January 2014, 23:32 | #86 |
Registered User
Join Date: Aug 2004
Location:
Posts: 3,343
|
This might not be possible depending on how versatile your custom gadget system is. But have you considered using a "dummy" Intuition gadget for each of your custom gadgets? The dummy gadget wouldn't have any imagery, but you could easily be notified when the mouse moves over it or is clicked on it.
|
19 January 2014, 14:08 | #87 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,304
|
|
19 January 2014, 14:18 | #88 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
|
Thank you, the Bug occured if some file of the skin images was missing or so. Fixed. Can you provide me an Enforcer output of the colorpicker bug?
|
19 January 2014, 20:53 | #89 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,304
|
No MuForce hit or something else, sorry.
|
20 January 2014, 00:26 | #90 | |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,377
|
Quote:
|
|
22 January 2014, 16:53 | #91 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
|
New Version. Features live Screen-Switch (added, yet on the 'application' test page in oxlibinfo). Colorpicker bug might still be there.
http://images.quicktunnels.net/openxui_latest.zip @mark_k I cannot really use system gadgets because I support virtual clipping areas, so called 'windows in windows' for which intuition and boopsi gadgets don't care. They are also not compatible to windows with scrollbars if the window is not GZZ (they hang out over the borders). Last edited by AGS; 22 January 2014 at 17:16. |
26 February 2014, 08:09 | #92 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
|
First App using this GUI-engine released: http://eab.abime.net/showthread.php?t=72695
|
14 March 2014, 06:57 | #93 |
Registered User
Join Date: Mar 2014
Location: Akaa
Posts: 57
|
is totally unsable using for example c language*?*looks nice and maybe even east way make modern gui.
|
15 March 2014, 14:51 | #94 |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,187
|
It might work in high level languages with the right wrappers. Have you ever written an fd file for the library?
|
15 March 2014, 17:54 | #95 |
Registered User
Join Date: Mar 2014
Location: Akaa
Posts: 57
|
|
16 March 2014, 04:38 | #96 |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,187
|
An FD file could be converted into a pragma file using FD2PRAGMA (found on Aminet and elsewhere) for use with any C compiler and other converters like FD2MODULE (which comes with AmigaE) for use with the AmigaE compiler. All the information that's needed to be used to create an FD file is already included in ox_lib.i in the comments and LVOs.
I guess my next question should be: Would you be interested in getting OX to work on C, AmigaE, and others? |
12 February 2015, 21:08 | #97 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
|
upcoming new version
Yet new features include:
* new working window menus * alpha png images using pngflux.library * on the fly calculated color gradients * screen change and iconify * tooltips for any GUI elements (even for menu entries) * auto saving/loading of options in applications Do you have an idea what little tool to code using this engine? I am looking for ideas. |
08 April 2015, 21:32 | #98 |
Zone Friend
Join Date: Apr 2006
Location: Gothenburg/Sweden
Age: 48
Posts: 339
|
This looks really promising! I have to check this out.
|
08 April 2015, 21:49 | #99 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
|
Please look into the XoXo-Thread. There you can find a working app that uses the GUI.
|
09 April 2015, 15:37 | #100 |
Registered User
Join Date: Mar 2009
Location: New York
Posts: 552
|
Hey AGS, this looks great. What open source license is this released under?
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Open-source dos.library | Don_Adan | Coders. System | 273 | 02 September 2020 00:42 |
Misc Amiga Assembler Source Code | copse | Coders. General | 14 | 20 October 2019 02:05 |
Open-source graphics library | Don_Adan | Coders. System | 32 | 15 January 2013 22:15 |
NewsRog goes Open Source | Paul | News | 0 | 04 December 2004 16:37 |
BlitzBasic - Is now open source | Djay | Amiga scene | 2 | 08 February 2003 01:09 |
|
|