|
-
Feb 18th, 2010, 01:59 PM
#1
Thread Starter
PowerPoster
[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?
-
Feb 19th, 2010, 08:52 AM
#2
Lively Member
Re: [VB6] - scroll bars click\scroll event working in project mode
 Originally Posted by joaquim
can i activate the scrollbars click\scroll event in project mode?
Do you mean catching these events at developing time?
-
Feb 19th, 2010, 09:18 AM
#3
Thread Starter
PowerPoster
Re: [VB6] - scroll bars click\scroll event working in project mode
 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
-
Feb 19th, 2010, 01:43 PM
#4
Lively Member
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.
Last edited by NeedHelp!; Feb 21st, 2010 at 08:50 PM.
-
Feb 19th, 2010, 04:48 PM
#5
Thread Starter
PowerPoster
Re: [VB6] - scroll bars click\scroll event working in project mode
-
Feb 19th, 2010, 07:29 PM
#6
Lively Member
Re: [VB6] - scroll bars click\scroll event working in project mode
 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.
-
Feb 24th, 2010, 11:46 AM
#7
Thread Starter
PowerPoster
Re: [VB6] - scroll bars click\scroll event working in project mode
 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
-
Feb 24th, 2010, 01:41 PM
#8
Lively Member
Re: [VB6] - scroll bars click\scroll event working in project mode
 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.
(i can change it in property window and in code
Yes, in design mode this is also possible - but there is no event fired.
pratical(i don't know write the word  )
its practical, you can also use: applicatory, useful, functional or useable
The adverb is practically.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|