Results 1 to 8 of 8

Thread: [VB6] - scroll bars click\scroll event working in project mode

  1. #1

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,964

    [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?
    VB6 2D Sprite control

    To live is difficult, but we do it.

  2. #2
    Lively Member
    Join Date
    Sep 2009
    Posts
    95

    Re: [VB6] - scroll bars click\scroll event working in project mode

    Quote Originally Posted by joaquim View Post
    can i activate the scrollbars click\scroll event in project mode?
    Do you mean catching these events at developing time?

  3. #3

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,964

    Re: [VB6] - scroll bars click\scroll event working in project mode

    Quote Originally Posted by NeedHelp! View Post
    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
    VB6 2D Sprite control

    To live is difficult, but we do it.

  4. #4
    Lively Member
    Join Date
    Sep 2009
    Posts
    95

    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.

  5. #5

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,964

    Re: [VB6] - scroll bars click\scroll event working in project mode

    Quote Originally Posted by NeedHelp! View Post
    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
    Attached Files Attached Files
    VB6 2D Sprite control

    To live is difficult, but we do it.

  6. #6
    Lively Member
    Join Date
    Sep 2009
    Posts
    95

    Re: [VB6] - scroll bars click\scroll event working in project mode

    Quote Originally Posted by joaquim View Post
    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.

  7. #7

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,964

    Re: [VB6] - scroll bars click\scroll event working in project mode

    Quote Originally Posted by NeedHelp! View Post
    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
    VB6 2D Sprite control

    To live is difficult, but we do it.

  8. #8
    Lively Member
    Join Date
    Sep 2009
    Posts
    95

    Re: [VB6] - scroll bars click\scroll event working in project mode

    Quote Originally Posted by joaquim View Post
    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
  •  



Click Here to Expand Forum to Full Width