Coder Social home page Coder Social logo

Double Click "Jump to source" about vbccr HOT 4 CLOSED

kr00l avatar kr00l commented on August 16, 2024
Double Click "Jump to source"

from vbccr.

Comments (4)

Kr00l avatar Kr00l commented on August 16, 2024

Yes, your understanding is correct.

An additional condition with "And CommandButtonTopDesignMode = False" might fix it. So in IDE design mode it would get WM_LBUTTONDBLCLK (unchanged) and for IDE run mode or exe it would replace to WM_LBUTTONDOWN.

from vbccr.

NBechtloff avatar NBechtloff commented on August 16, 2024

I tried to analyze the problem further. It seems the relevant message for the designers "Jump to source" is WM_MOUSEACTIVATE. There already is a check for CommandButtonTopDesignMode = False in the WindowProcControl.
BUT for reasons beyond my comprehension the GetTopUserControl(Me).Ambient.UserMode call in UserControl_ReadProperties reports the wrong value (i.e. false). If i make the same assignment (CommandButtonTopDesignMode = Not GetTopUserControl(Me).Ambient.UserMode) in UserControl_Show again everything works just fine!
Now I dont know if that has any consequences for the compiled application. I feel a little bit unwary. Especially because I do not understand completely why this is working for the TextBoxW.
I have the feeling that Ambient.UserMode is fundamentally flawed somehow.

from vbccr.

Kr00l avatar Kr00l commented on August 16, 2024

GetTopUserControl(Me).Ambient.UserMode call in UserControl_ReadProperties can only be flawed when your outer (host) UserControl do something stupid within UserControl_Initialize, because then the inner (child) UserControls may fire ReadProperties when in fact it's too early. So are you interacting with the childs within the host's UserControl_Initialize?

from vbccr.

NBechtloff avatar NBechtloff commented on August 16, 2024

You are correct. I am stupid.
Of course I interact with the child in the host's UserControl_Initialize.
Thanks a lot for your help, I would have never found that.

from vbccr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.