Page 1 of 5 123 ... LastLast
Results 1 to 10 of 46

Thread: Tool: TrackEditor (Former Problem with WM_MouseWheel)

  1. #1

    Tool: TrackEditor (Former Problem with WM_MouseWheel)

    Hi folks,

    I have a problem with %WM_MouseWheel. As long as I don't click inside the listbox to select a new tile item, you can zoom in and out with the mouse wheel. If you hold the left control key, the map rotates. Now comes the werid part. Select a new tile item in the list box.

    Now you can not zoom in and out anymore, BUT... you can still rotate!

    Any hint is appreciated.

    Michael
    Attached Files Attached Files

  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Problem with WM_MouseWheel

    Hi Mike,

    I think it is problem of control focus.
    Try to set focus back to graphic canvas after listbox selection, like:
    [code=thinbasic]
    CASE %List01
    SELECT CASE HIWRD( CBWPARAM )
    CASE %LBN_SELCHANGE
    LISTBOX GET TEXT CBHNDL, %List01 TO partStr
    partNo = FindModelID( partStr )
    STATUSBAR_SETTEXT hDlg, %ID_STATUSBAR, "Part: " & partStr & " No:" & partno, 4

    control set focus hDlg, %gCanvas

    CASE %LBN_DBLCLK
    LISTBOX GET TEXT CBHNDL, %List01 TO tmpStr
    LISTBOX GET SELECTED CBHNDL, %List01 TO partNo
    STATUSBAR_SETTEXT hDlg, %ID_STATUSBAR, "Part: " & partStr, 4

    control set focus hDlg, %gCanvas
    END SELECT
    [/code]

    It helped on my PC.


    Petr

    P.S. The editor is very nice!
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  3. #3
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: Problem with WM_MouseWheel

    This is my track.
    Michael, karma point on the way ... ;D
    Attached Images Attached Images
    Attached Files Attached Files
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  4. #4
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Problem with WM_MouseWheel

    Huuuu huuu uuuuu uuuu,

    Eros, is there any chance you took a screenshot on PC with Microsoft software implementation of OpenGL?
    I do not get that much jagged edges on my box. I remember the odd look was the same on my grandpa PC, who had Radeon, but no drivers, so it used Microsoft software rendering and it had the same amount of odd ZBuffering look.


    Petr
    Attached Images Attached Images
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  5. #5
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: Problem with WM_MouseWheel

    Quote Originally Posted by Petr Schreiber
    Eros, is there any chance you took a screenshot on PC with Microsoft software implementation of OpenGL?
    I do not get that much jagged edges on my box.
    I created that track on my wife pc that has an Intel Q35 Express card. But the PC is super fast Core 2 2.66 GH 2Gb ram.

    At home I have 2 desktop (one for my son has nVidia card, one for my wife has Intel card) 2 laptops (both mine with ATI cards) and one tablet PC (again mine with ATI, I use it when I'm in mine thoughts room: the bathroom ;D).
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  6. #6
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Problem with WM_MouseWheel

    Thanks Eros,

    I know I am terrible, but if your wife will pass you her PC ( not necessarily now, just anywhere in future! ), could you run the OpenGL "analyser" from here?

    I think that chipset has "Intel GMA 3100", last beast from Intel. Should be very good, but I heard some horror stories as well, some say it needs to wait for mature drivers ... anyway the Z-fight amount surprised even me.


    Petr

    P.S. Mike, I am sorry to hijack the thread but I was surprised.
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  7. #7
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: Problem with WM_MouseWheel

    Here is the solution for Michael problem (I hope):

    [code=thinbasic]
    CASE %WM_MOUSEWHEEL
    mouseDelta = HIINT( CBwPARAM )
    IF mouseDelta > 0 THEN
    [/code]

    Reference: http://msdn.microsoft.com/en-us/library/ms645617(VS.85).aspx
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  8. #8
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: Problem with WM_MouseWheel

    My wife's PC report:
    _________________________________________________
    Vendor: INTEL
    Renderer: INTEL BEAR LAKE B
    OpenGL: 1.4.0 - BUILD 7.14.10.4837
    Extensions( 46 ):
    GL_ARB_DEPTH_TEXTURE
    GL_ARB_FRAGMENT_PROGRAM
    GL_ARB_MULTITEXTURE
    GL_ARB_POINT_PARAMETERS
    GL_ARB_SHADOW
    GL_ARB_TEXTURE_BORDER_CLAMP
    GL_ARB_TEXTURE_COMPRESSION
    GL_ARB_TEXTURE_CUBE_MAP
    GL_ARB_TEXTURE_ENV_ADD
    GL_ARB_TEXTURE_ENV_COMBINE
    GL_ARB_TEXTURE_ENV_DOT3
    GL_ARB_TEXTURE_ENV_CROSSBAR
    GL_ARB_TRANSPOSE_MATRIX
    GL_ARB_VERTEX_BUFFER_OBJECT
    GL_ARB_VERTEX_PROGRAM
    GL_ARB_WINDOW_POS
    GL_EXT_ABGR
    GL_EXT_BGRA
    GL_EXT_BLEND_COLOR
    GL_EXT_BLEND_FUNC_SEPARATE
    GL_EXT_BLEND_MINMAX
    GL_EXT_BLEND_SUBTRACT
    GL_EXT_CLIP_VOLUME_HINT
    GL_EXT_COMPILED_VERTEX_ARRAY
    GL_EXT_CULL_VERTEX
    GL_EXT_DRAW_RANGE_ELEMENTS
    GL_EXT_FOG_COORD
    GL_EXT_MULTI_DRAW_ARRAYS
    GL_EXT_PACKED_PIXELS
    GL_EXT_RESCALE_NORMAL
    GL_EXT_SECONDARY_COLOR
    GL_EXT_SEPARATE_SPECULAR_COLOR
    GL_EXT_SHADOW_FUNCS
    GL_EXT_STENCIL_TWO_SIDE
    GL_EXT_STENCIL_WRAP
    GL_EXT_TEXTURE_COMPRESSION_S3TC
    GL_EXT_TEXTURE_ENV_ADD
    GL_EXT_TEXTURE_ENV_COMBINE
    GL_EXT_TEXTURE_FILTER_ANISOTROPIC
    GL_EXT_TEXTURE3D
    GL_3DFX_TEXTURE_COMPRESSION_FXT1
    GL_IBM_TEXTURE_MIRRORED_REPEAT
    GL_NV_BLEND_SQUARE
    GL_NV_TEXGEN_REFLECTION
    GL_SGIS_GENERATE_MIPMAP
    GL_WIN_SWAP_HINT
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  9. #9
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Problem with WM_MouseWheel

    Thank you Eros,

    and apologies to your wife :-[

    I use the following in TBGL, looks odd, works good :
    [code=thinbasic]
    CASE %WM_MOUSEWHEEL

    tbgl_MouseWheelDelta = HIWRD( wParam)

    IF tbgl_MouseWheelDelta/120 = tbgl_MouseWheelDelta\120 THEN
    tbgl_MouseWheelDelta = 1
    ELSE
    tbgl_MouseWheelDelta = -1
    END IF
    [/code]


    Petr

    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  10. #10
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: Problem with WM_MouseWheel

    Microsoft documentation talks about positive and negative values so it cannot be an unsigned number but signed one.
    So WORD is not the solution but INTEGER yes.
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

Page 1 of 5 123 ... LastLast

Similar Threads

  1. RegExp tool
    By marcel in forum VBRegExp
    Replies: 1
    Last Post: 11-03-2008, 11:21

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •