Comments (4)
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.
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.
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.
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)
- No Wiki! HOT 6
- Cannot compile projects. HOT 2
- Runtime Error 713 - Class not registered HOT 2
- OptionButtonW Click not raised when Owner Draw mode set HOT 2
- Feature: Slider OwnerDraw HOT 3
- RichTextBox - multiline and selection HOT 1
- OLE Drop events not working on FrameW HOT 9
- Databinding not working in IDE on TextBoxW HOT 1
- . HOT 1
- ListViewItem.ListItems(key) should not give error for missing key HOT 4
- ListView.hideSelection = False is not working HOT 3
- ListView.SetFocus() raises an error when ListView.Visible = False HOT 1
- Scrollbar controls HOT 1
- IPerPropertyBrowsing implementation has incorrect use of CoTaskMemAlloc
- IPerPropertyBrowsing implementation has incorrect use of CoTaskMemAlloc (take 2) HOT 3
- CommonDialog wrong constant HOT 14
- MouseEnter event never get triggered HOT 2
- No issue, but a question about IME handling HOT 1
- Cannot set LvwListItem Key HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vbccr.