1. How do I disable a tab in Win32lib?
- Posted by penpal0andrew Jun 17, 2009
- 1126 views
When I tried to disable a tab, it disabled all of the tabs and all of the controls on all of the tabs.
Here is something I found http://msdn.microsoft.com/en-us/library/252t3cec.aspx
Is there win32lib or IDE support for this?
Andy K.
2. Re: How do I disable a tab in Win32lib?
- Posted by DerekParnell (admin) Jun 17, 2009
- 1083 views
When I tried to disable a tab, it disabled all of the tabs and all of the controls on all of the tabs.
Here is something I found http://msdn.microsoft.com/en-us/library/252t3cec.aspx
Is there win32lib or IDE support for this?
Andy K.
You should be able to just say ...
setEnable(theTab, 0)
3. Re: How do I disable a tab in Win32lib?
- Posted by penpal0andrew Jun 17, 2009
- 1107 views
When I tried to disable a tab, it disabled all of the tabs and all of the controls on all of the tabs.
Here is something I found http://msdn.microsoft.com/en-us/library/252t3cec.aspx
Is there win32lib or IDE support for this?
Andy K.
You should be able to just say ...
setEnable(theTab, 0)
I tried this and it disabled all of the tabs and controls, like I said. Where are the win32 experts lately? I also have a question concerning machine level errors.
A. Katz
4. Re: How do I disable a tab in Win32lib?
- Posted by DerekParnell (admin) Jun 17, 2009
- 1067 views
- Last edited Jun 18, 2009
When I tried to disable a tab, it disabled all of the tabs and all of the controls on all of the tabs.
Here is something I found http://msdn.microsoft.com/en-us/library/252t3cec.aspx
Is there win32lib or IDE support for this?
Andy K.
You should be able to just say ...
setEnable(theTab, 0)
I tried this and it disabled all of the tabs and controls, like I said. Where are the win32 experts lately? I also have a question concerning machine level errors.
Actually you didn't say that you tried setEnable.
Anyhow, I found the bug and uploaded a patch. You can get it at Source Forge (rev #58)
And by the way, I do this for free and in my own time.
As for the machine level error, have you tried hint text less than 80 characters to see if that makes a difference?
5. Re: How do I disable a tab in Win32lib?
- Posted by penpal0andrew Jun 17, 2009
- 1121 views
- Last edited Jun 18, 2009
When I tried to disable a tab, it disabled all of the tabs and all of the controls on all of the tabs.
Here is something I found http://msdn.microsoft.com/en-us/library/252t3cec.aspx
Is there win32lib or IDE support for this?
Andy K.
You should be able to just say ...
setEnable(theTab, 0)
I tried this and it disabled all of the tabs and controls, like I said. Where are the win32 experts lately? I also have a question concerning machine level errors.
Actually you didn't say that you tried setEnable.
Anyhow, I found the bug and uploaded a patch. You can get it at Source Forge (rev #58)
And by the way, I do this for free and in my own time.
As for the machine level error, have you tried hint text less than 80 characters to see if that makes a difference?
Thank you. It works great. And this is something many developers would want.
I am using the whole trunk, since I did not want to try and isolate it as a patch. Did I do the correct thing?
I apologize for being rude before. I am sometimes gripped by strange moods. And like you, I do this for free and in my own time. The Euphoria community is the best, as in most helpful, I have ever encountered. And I have been on many software forums. For example, Google is useless if you have a problem with one of their software.
Cutting my hints down to under 80 characters misses the point, because when my program is used beyond what I expected, all sorts of random machine level errors come up. So I want to address the real cause. If there is a bug in that hint code, that is something else, but it is not of immediate concern for me. And I was wondering if mixing of different memory management calls could be the problem. I will try to replace all of them with documented win32 memory management calls to see if the problem goes away.
Andy Katz
6. Re: How do I disable a tab in Win32lib?
- Posted by penpal0andrew Jun 18, 2009
- 1048 views
In latest trunk of win32lib:
BUG in Enable when there is a background color:
without warning include win32lib.ew integer win, radio, button integer state procedure click(integer self, integer event, sequence parms) setEnable(radio, state) state = not state if state then setText(self, "Enable it") else setText(self, "Disable it") end if end procedure procedure main() win = createEx(Window, "Test Enable with backcolor", 0, 0, 0, 400, 200, 0, 0) radio = createEx( Radio, "Radio", win, 0, 0, 60, 20, 0, 0 ) setWindowBackColor( radio, 33023 ) button = createEx(Button, "Enable radio", win, 0, 80, 90, 20, 0, 0) state = w32True setHandler(button, w32HClick, routine_id("click")) WinMain(win, Normal) end procedure main()
A. Katz
7. Re: How do I disable a tab in Win32lib?
- Posted by DerekParnell (admin) Jun 19, 2009
- 1053 views
BUG in Enable when there is a background color:
Fixed in svn# 59