![]() |
GUIs in a QMenu
I made a Q Menu which uses GuiShowImgCtrls to show the images. It all works fine, except I need to make a dropping system. There's no way to tell if the item is being dragged! Any suggestions?
|
Why would you make it with GUI controls, just curious...
|
Quote:
Quote:
|
Quote:
|
Quote:
PHP Code:
Thats basically how GUIs themselves are made :P |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
showimg() is simply exists for compatibility and is really just creating a TShowImg object. The GuiShowImgCtrl object extends GuiControl then implements TShowImg which adds support for offset inside of the control itself and interactions with other GUI Controls.
The findimg() function creates a new image (TShowImg) of the specified ID if one cannot be found. However, objects that extend GuiControl are all static and can be changed from distant objects, this might or might not be useful in your case. In the end, I would suggest using GuiShowImgCtrl because it inherits all features of GuiControl, obviously designed for GUIs. Using showImg() will not give you these features. |
Quote:
|
Quote:
But there is an event that might help you. Quote:
|
there is an onMove event you can listen for if you want. But that's not really what you want.
All I did was check the onMouseUp event (not exact name..) and checked to see if the new x was same as old x kinda thing. |
Quote:
When I first looked at that, I must have misread it, or skipped over it by accident. |
All times are GMT +2. The time now is 05:42 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.