subclass used on lsbox shortcuts Thread last updated on 2003-11-11 17:00:13

Posted by member 12798 on 2003-11-08 21:32:20

when i try to create a subclass instance of lsbox' shortcuts i get an error message saying "couldn't find module window". i've downloaded winspy to find out the class name, which is LsBoxShortcut, so the line in RC is
*Subclass SCInst_QL1 LsBoxShortcut

anyone knows something about that?
oh, i'm talking about subclass.dll, of course.

Posted by member 36955 on 2003-11-08 23:23:03 link

hmmm... that sounds like winspy is finding the window class of the shortcut you have loaded inside the box, rather than the box itself... try making an empty box and see what winspy displays for that, or you could just comment out the *shortcut lines in your .box file

Posted by member 12798 on 2003-11-09 07:22:34 link

i'm sorry, you misunderstood.
i know the box' class, and i want to create a subclass instance of the shortcuts inside. however, with the class winspy displays, i get the error message.

and a new problem has arised: when the mouse hovers modules (label, shortcuts) inside the box, subclass understands this as a mouseleave... can i avoid that any way?
maybe i should ask ilmcuts about it...

Posted by member 7223 on 2003-11-09 08:09:34 link

maybe you should load subclass AFTER boxes creation

Posted by member 12798 on 2003-11-09 08:19:00 link

it is already the very last module to load, if you mean that.

maybe it helps to make clear what i want to do:
in my theme, there's some sort of a quicklaunch menu that opens on hovering a button. when the mouse hovers any of the quicklaunch items (i.e. shortcuts) inside that menu, a description of the item should be given (therefore i need the mousein or -hover). plus when the mouse leaves the whole menu, it should hide itself.

Posted by member 7223 on 2003-11-10 04:11:46 link

I didn't asked you if you had loaded subclass last, but if you had loaded it AFTER you have create your box. I hope you will notice the difference.

Posted by member 12798 on 2003-11-10 09:13:11 link

i noted the difference :)

anyways, i think right now there's no easy module combination that could suffice my needs... will have to realise it another way. thanks though.

Posted by member 36955 on 2003-11-10 17:39:49 link

doesnt that capability come with shortcut itself, or is it not implemented in lsbox...

*Shortcut [CAPTION] [X] [Y] [NORMAL.BMP] [HOVER.BMP] [CLICK.BMP] #[GROUP][FLAGS] [HOVER.WAV] [CLICK.WAV] [ACTION]

[CAPTION] This is the tooltip caption that is displayed when the mouse is held over the shortcut.

Posted by member 12798 on 2003-11-10 17:59:48 link

well yes, but i don't like having to wait until the caption appears... always takes a second or so :)

Posted by member 36955 on 2003-11-10 18:07:48 link

well... you could always use label, it has mouse in/out capabilities

Posted by member 12798 on 2003-11-10 19:09:36 link

i thought about that (and tried a bit) but came along with too many problems... i think the best and most flexible solution is what i'm now working on: using mzscript's mousex/y and a timer to find out if the mouse leaves the area

not easy though ... get yourself closed, **** box! ;)

Posted by member 36955 on 2003-11-10 21:30:41 link

that sounds complicated... have fun(:

by the way, what kinds of problems were you getting from label? im planning on using label in lsboxes for the theme im working on, so a heads up would be helpful(:

Posted by member 7223 on 2003-11-10 22:39:53 link

When a working skinbox.dll will be release, it should allow you to do what you want :)

Posted by member 12798 on 2003-11-11 17:00:13 link

i would really appreciate that greatly... gogogo, Rabidcow :)