
Ruler Gadget - Beta 1 sourcecode library
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Thanks for the kind words everyone. As I see it there are three main tasks left:
1) Implement a system of setting/clearing tabstops
2) Implement routines for setting/retrieving the various states of the gadget
3) Implement optional logical measurement units
Task #1 is the next on the list, I'm considering a couple different approaches. Anyone have ideas on a good way to proceed?
1) Implement a system of setting/clearing tabstops
2) Implement routines for setting/retrieving the various states of the gadget
3) Implement optional logical measurement units
Task #1 is the next on the list, I'm considering a couple different approaches. Anyone have ideas on a good way to proceed?
Last edited by netmaestro on Fri Apr 13, 2007 6:38 pm, edited 1 time in total.
BERESHEIT
- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Added more compatibility to the tabstops & sliders, now they draw the indicator lines on creation and upon being clicked. (they used to wait for being moved) Code in first post.
Also, the tabs are lined up to the background a bit better, although if a tab is sitting right on a number it can look a bit ugly, which I imagine can't be helped.
Also, the tabs are lined up to the background a bit better, although if a tab is sitting right on a number it can look a bit ugly, which I imagine can't be helped.
BERESHEIT
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Update:
- The tabs don't drag up anymore
I've never been happy with how hard it was to click an existing tab, with that clipping region applied there were only two pixels width- and height-wise you could click for the tabstop to receive the WM_LBUTTONDOWN message. I initially experimented with different shapes for the tabs with thicker "black parts" but they were ugly. So today I've implemented a small routine in the BaseProc procedure to test if a WM_LBUTTONDOWN it gets is actually inside the full windowrect of an existing tab. If it is, it sends the message on to the tab and doesn't process further. So - just a bit of explanation for the second improvement for this morning, which is:
- It's now much easier to select an existing tabstop!
- The tabs don't drag up anymore
I've never been happy with how hard it was to click an existing tab, with that clipping region applied there were only two pixels width- and height-wise you could click for the tabstop to receive the WM_LBUTTONDOWN message. I initially experimented with different shapes for the tabs with thicker "black parts" but they were ugly. So today I've implemented a small routine in the BaseProc procedure to test if a WM_LBUTTONDOWN it gets is actually inside the full windowrect of an existing tab. If it is, it sends the message on to the tab and doesn't process further. So - just a bit of explanation for the second improvement for this morning, which is:
- It's now much easier to select an existing tabstop!
BERESHEIT
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada