1. How do I disable a tab in Win32lib?

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.

new topic     » topic index » view message » categorize

2. Re: How do I disable a tab in Win32lib?

penpal0andrew said...

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) 
new topic     » goto parent     » topic index » view message » categorize

3. Re: How do I disable a tab in Win32lib?

DerekParnell said...
penpal0andrew said...

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

new topic     » goto parent     » topic index » view message » categorize

4. Re: How do I disable a tab in Win32lib?

penpal0andrew said...
DerekParnell said...
penpal0andrew said...

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?

new topic     » goto parent     » topic index » view message » categorize

5. Re: How do I disable a tab in Win32lib?

DerekParnell said...
penpal0andrew said...
DerekParnell said...
penpal0andrew said...

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

new topic     » goto parent     » topic index » view message » categorize

6. Re: How do I disable a tab in Win32lib?

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

new topic     » goto parent     » topic index » view message » categorize

7. Re: How do I disable a tab in Win32lib?

penpal0andrew said...

BUG in Enable when there is a background color:

Fixed in svn# 59

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu