[VB6] - scroll bars click\scroll event working in project mode
i build a 2D Level Editor. i use scrollbars on it and works fine. my question is: can i activate the scrollbars click\scroll event in project mode?
Re: [VB6] - scroll bars click\scroll event working in project mode
Quote:
Originally Posted by
joaquim
can i activate the scrollbars click\scroll event in project mode?
Do you mean catching these events at developing time?
Re: [VB6] - scroll bars click\scroll event working in project mode
Quote:
Originally Posted by
NeedHelp!
Do you mean catching these events at developing time?
yes. think in these way: these control is my 2D level editor, but you don't need show the entire level in screen. then you can use the scrollbars(in project mode) for you put more controls on it;)
Re: [VB6] - scroll bars click\scroll event working in project mode
I still have a problem to understand you... ?:|
There are only two modes: UserMode (=runtime) and DesignMode (design/developing time) - there is no project time.
Normally it should be this way: you develope your editor at design time in the IDE (creating the editor - but not the maps, in this mode you don't need the events actually). Then the editor will be launched and used in runtime mode to create your levels/maps. At runtime all events are fired.
But if you are trying to build all your levels/maps in the IDE, then there is no level editor. - You are just using the visual editor to create the maps, thats it.
1 Attachment(s)
Re: [VB6] - scroll bars click\scroll event working in project mode
Quote:
Originally Posted by
NeedHelp!
I still have a problem to understand you... ?:|
There are only two modes: runtime (=UserMode) and developing time - there is no project time.
Normally it should be this way: you develope your editor at developing time in the IDE (creating the editor - but not the maps, in this mode you don't need the events). Then the editor will be launched and used in runtime mode to create your levels/maps. At runtime all events are fired.
But if you are trying to build all your levels/maps in the IDE, then there is no level editor. - You are just using the visual editor to create the maps, thats it.
yes... i build a Level Editor 2D control;)
but i need that his scrollbars working in developing time, for scroll the level and put more controls. i can do these in property window, but is more pratical with mouse.
see my project;)
Re: [VB6] - scroll bars click\scroll event working in project mode
Quote:
Originally Posted by
joaquim
yes... i build a Level Editor 2D control;)
A level editor control... crazy! :)
Well controls actually should have more basic functions - and all controls together build a complex application.
From the project you did send I couldn't see, what you are trying to do...
But as far as I know, there a only a few events supported at developing time (e.g. Resize or Show).
The timer, which you are using in this mode is also no good solution. It can make your IDE instable.
I think it would be the best, if you stay away from a UserControl in this case.
Here is a project (but its German, not English), which has a level editor included - you have to click in the right box and than in the left one, to place an element:
http://www.activevb.de/cgi-bin/uploa...oad.pl?id=3010
I saw a better one a while ago, but I couldn't find it in a hurry.
Re: [VB6] - scroll bars click\scroll event working in project mode
Quote:
Originally Posted by
NeedHelp!
A level editor control... crazy! :)
Well controls actually should have more basic functions - and all controls together build a complex application.
From the project you did send I couldn't see, what you are trying to do...
But as far as I know, there a only a few events supported at developing time (e.g. Resize or Show).
The timer, which you are using in this mode is also no good solution. It can make your IDE instable.
I think it would be the best, if you stay away from a UserControl in this case.
Here is a project (but its German, not English), which has a level editor included - you have to click in the right box and than in the left one, to place an element:
http://www.activevb.de/cgi-bin/uploa...oad.pl?id=3010
I saw a better one a while ago, but I couldn't find it in a hurry.
at least works fine... well the timer is for help in 1 thing, but maybe i can put it out;)
but what you advice me about the scrollbars scroll(i can change it in property window and in code, but i need a pratical(i don't know write the word:() way)?
thanks
Re: [VB6] - scroll bars click\scroll event working in project mode
Quote:
Originally Posted by
joaquim
but what you advice me about the scrollbars scroll
The same, which I adviced before: change your concept
There are only a few events available in design mode - and scroll is not one of them.
Quote:
(i can change it in property window and in code
Yes, in design mode this is also possible - but there is no event fired.
Quote:
pratical(i don't know write the word:()
its practical, you can also use: applicatory, useful, functional or useable
The adverb is practically. :)