1. Bug in either Judith's IDE or Win32lib

When you use a tab control with a group on it, the items on the tabs under
the group show through the group when you switch tabs. Strange.

Did I miss a fix maybe?

new topic     » topic index » view message » categorize

2. Re: Bug in either Judith's IDE or Win32lib

SR,

No, I don't think you missed anything, I think you found a bug!

And it may cause or relate to another one too:  if you create a control on
one tab item, and then switch to another tab item and make a group, and then
run it, it crashes because the first control has somehow been reassigned to
the group, which was created *after* the first, so the program thinks the
first one has been assigned to something which doesn't exist.

Dan Moyer

----- Original Message -----
From: "SR Williamson" <sr.williamson at OSHA.GOV>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Monday, November 06, 2000 4:09 AM
Subject: Bug in either Judith's IDE or Win32lib


> When you use a tab control with a group on it, the items on the tabs under
> the group show through the group when you switch tabs. Strange.
>
> Did I miss a fix maybe?

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

3. Re: Bug in either Judith's IDE or Win32lib

I'm assuming you mean while in the IDE not when running the exw program?

I'll look into it.

I had made a fix in version 9k1 for problems getting the correct tabItem
assigned as the selected control in some situations. Sounds like that fix
caused a new problem.

Thanks,

Judith

On Mon, 6 Nov 2000 07:09:29 -0500, SR Williamson <sr.williamson at OSHA.GOV>
wrote:

>When you use a tab control with a group on it, the items on the tabs under
>the group show through the group when you switch tabs. Strange.
>
>Did I miss a fix maybe?

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

4. Re: Bug in either Judith's IDE or Win32lib

Problems with 'parenting' I suspect.

Thanks, Dan

Judith


On Mon, 6 Nov 2000 05:49:07 -0800, Dan B Moyer <DANMOYER at PRODIGY.NET> wrote:

>SR,
>
>No, I don't think you missed anything, I think you found a bug!
>
>And it may cause or relate to another one too:  if you create a control on
>one tab item, and then switch to another tab item and make a group, and
then
>run it, it crashes because the first control has somehow been reassigned to
>the group, which was created *after* the first, so the program thinks the
>first one has been assigned to something which doesn't exist.
>
>Dan Moyer
>
>----- Original Message -----
>From: "SR Williamson" <sr.williamson at OSHA.GOV>
>To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
>Sent: Monday, November 06, 2000 4:09 AM
>Subject: Bug in either Judith's IDE or Win32lib
>
>
>> When you use a tab control with a group on it, the items on the tabs
under
>> the group show through the group when you switch tabs. Strange.
>>
>> Did I miss a fix maybe?

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

5. Re: Bug in either Judith's IDE or Win32lib

I think this one is a Win32Lib problem.

I made a tabControl, added two TabItems, put a group with radio buttons on
one tab and a button on the other. The exw file looks good. The tabItems are
parented to the TabControl, and the controls to the respective tabItems. So
to double check myself, I added a group to one of the tabs in ex21 of
Win32Lib version 53 distribution and it let the controls bleed through.

Derek?

Judith

On Mon, 6 Nov 2000 14:17:28 -0500, Judith Evans <camping at FLASH.NET> wrote:

>I'm assuming you mean while in the IDE not when running the exw program?
>
>I'll look into it.
>
>I had made a fix in version 9k1 for problems getting the correct tabItem
>assigned as the selected control in some situations. Sounds like that fix
>caused a new problem.
>
>Thanks,
>
>Judith
>
>On Mon, 6 Nov 2000 07:09:29 -0500, SR Williamson <sr.williamson at OSHA.GOV>
>wrote:
>
>>When you use a tab control with a group on it, the items on the tabs under
>>the group show through the group when you switch tabs. Strange.
>>
>>Did I miss a fix maybe?

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

6. Re: Bug in either Judith's IDE or Win32lib

Yes, it's a Win32lib problem. It happens in the exw file even without
running the IDE.

The parenting problem, which I've also experienced but forgot to mention,
is an IDE problem. It creates the controls out of order for some reason. I
forgot to mention it because it was so easy to fix the exw to make it work
right.

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

7. Re: Bug in either Judith's IDE or Win32lib

Hi,
Are the items in the group parented to the group control or the tabitem?

I also modified EX21 by adding a group to the TAB2 control and parenting the
buttons and MLE to the group and it works just fine. The code's below ....


----------------------------------------
-- ex21.exw
-- demo of tab controls

include win32lib.ew
without warning

constant
    Win     =  create( Window, "Tab Controls", 0, Default, Default, 260,
320, 0 ),
    Tabs    = create( TabControl, "", Win, 10, 10, 220, 250, 0 ),
    Tab1    = create( TabItem, "Tab Number &1", Tabs, 0, 0, 0, 0, 0 ),
    Tab2    = create( TabItem, "Tab Number &2", Tabs, 0, 0, 0, 0, 0 ),
    Button1a = create( PushButton, "&Close", Tab1, 10, 60, 80, 40, 0 ),
    Button1b = create( PushButton, "Button 1&b", Tab1, 10, 120, 80, 40, 0 ),
    Mle1     = create( MleText, "", Tab1, 100, 60, 90, 100, 0 ),
    Grp1     = create( Group, "A Group", Tab2, 4, 24, 200, 220, 0),
    Button2a = create( PushButton, "C&lose", Grp1, 10, 60, 80, 40, 0 ),
    Button2b = create( PushButton, "Button 2&b", Grp1, 100, 60, 80, 40, 0 ),
    Mle2     = create( MleText, "", Grp1, 10, 120, 180, 90, 0 )

procedure shutdown()
    closeWindow( Win )
end procedure
onClick[Button1a] = routine_id("shutdown")
onClick[Button2a] = routine_id("shutdown")

-- run code
WinMain( Win, Normal )
----------------------------------------

------
Derek Parnell
Melbourne, Australia
(Vote [1] The Cheshire Cat for Internet Mascot)

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

8. Re: Bug in either Judith's IDE or Win32lib

Anyone using the Property window to select a new class for a control and
gets a crash: I neglected to change the openWindow( Property, Modal) to
openWindow( Property, Normal ). This is not needed if you are using win32lib
versin 54.

Sorry about that,

Judith

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

9. Re: Bug in either Judith's IDE or Win32lib

I have placed a new version of the IDE on my home page
http://home.flash.net/~camping/judith.htm which solves some of the reported
bugs. Anyone that has downloaded from there before note that the download
zip is now named IDE.zip instead of Docked_IDE.zip.

Thanks for all the bug reports

Judith

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

10. Re: Bug in either Judith's IDE or Win32lib

Derek,
The reason you're not getting the bug is because you have the group control
on the second tab. Put it on the first and you'll see the problem. Here's
your modified code which shows the bug.
___________________________________________
include win32lib.ew
without warning

constant
    Win     =  create( Window, "Tab Controls", 0, Default, Default, 260,
320, 0 ),
    Tabs    = create( TabControl, "", Win, 10, 10, 220, 250, 0 ),
    Tab1    = create( TabItem, "Tab Number &1", Tabs, 0, 0, 0, 0, 0 ),
    Tab2    = create( TabItem, "Tab Number &2", Tabs, 0, 0, 0, 0, 0 ),
    Grp1     = create( Group, "A Group", Tab1, 4, 24, 200, 220, 0),
    Button1a = create( PushButton, "&Close", Grp1, 10, 60, 80, 40, 0 ),
    Button1b = create( PushButton, "Button 1&b", Grp1, 10, 120, 80, 40, 0 ),
    Mle1     = create( MleText, "", Grp1, 100, 60, 90, 100, 0 ),

    Button2a = create( PushButton, "C&lose", Tab2, 10, 60, 80, 40, 0 ),
    Button2b = create( PushButton, "Button 2&b", Tab2, 100, 60, 80, 40, 0 ),
    Mle2     = create( MleText, "", Tab2, 10, 120, 180, 90, 0 )

procedure shutdown()
    closeWindow( Win )
end procedure
onClick[Button1a] = routine_id("shutdown")
onClick[Button2a] = routine_id("shutdown")

-- run code
WinMain( Win, Normal )
___________________________________________________

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

11. Re: Bug in either Judith's IDE or Win32lib

Sorry, Derek, didn't see that you had already isolated the bug. Ignore last
transmission. Over and out.

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

12. Re: Bug in either Judith's IDE or Win32lib

Hello,

in the latest ide version .9k.5 i have found the following bugs:

a) As soon as you move the mouse over the design window the focus gets
   changed to it.
b) Due to the above behaviour a bug in ide_prop.exw can happen....
   ..create a status bar in the design window
   ..open the properties of the status bar
   ..click on the design window
   ..now click back on the properties window
   ..change the name or title in the properties
   .. click on ok
   Normally the value of the statusbar should change, but sometimes
   the status of the window itself is changed

This behaviour is because of the use of the variable selectedControl
in the ide_prop.exw which changes as soon as the focus goes to the
design window.

And NO, even if the properties window is opened as Modal, this bug occurs.

I have solved the second bug by defining a temporary variable with the value
of selectedControl. This way always the correct control will be changed.

What i still am looking for is a solution for the first bug.

Greetings,

Sascha Zindel

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

13. Re: Bug in either Judith's IDE or Win32lib

Hi, Sascha

I've not noticed this bug before, thanks for finding it.

The second problem only appears to happen with Status Bar. I'll check into
it.

Judith

On Tue, 21 Nov 2000 04:34:34 -0500, Sascha Zindel <s.zindel at GMX.DE> wrote:

>Hello,
>
>in the latest ide version .9k.5 i have found the following bugs:
>
>a) As soon as you move the mouse over the design window the focus gets
>   changed to it.
>b) Due to the above behaviour a bug in ide_prop.exw can happen....
>   ..create a status bar in the design window
>   ..open the properties of the status bar
>   ..click on the design window
>   ..now click back on the properties window
>   ..change the name or title in the properties
>   .. click on ok
>   Normally the value of the statusbar should change, but sometimes
>   the status of the window itself is changed
>
>This behaviour is because of the use of the variable selectedControl
>in the ide_prop.exw which changes as soon as the focus goes to the
>design window.
>
>And NO, even if the properties window is opened as Modal, this bug occurs.
>
>I have solved the second bug by defining a temporary variable with the
value
>of selectedControl. This way always the correct control will be changed.
>
>What i still am looking for is a solution for the first bug.
>
>Greetings,
>
>Sascha Zindel

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

Search



Quick Links

User menu

Not signed in.

Misc Menu