1. RE: Re[2]: It is bug on Win32lib, IDE, or I am wrong?

The problem here is two fold. First of all 10.4 has a bug in which any 
control inside a container and near the top of that container is not 
parented correctly when the EXW is created. Even though Properties shows 
Group24 as the parent, the REAL parent is Tab Item for IDE purposes. 
When the EXW is created, IDE tries to find the more direct parent and 
that is where the bug is. Also I noticed that the LText 'Add Cost' 
contained the EditText t1a. Even with the bug fixed, in the Bleeding 
Edge testing version 10.5 the parent would still have been window2 for 
this reason. If a control is inside another control and that control is 
a container (group, tab control, tab item, Table, toolbar, status bar) 
only then is the container the parent. Since LText is not a container, 
the parent of EditText would have been the window.

More than you ever wanted to know about IDE internals? 

Judith

aku at inbox.as wrote:
> >> A> Try the example below.
> 
> m> Please post the whole code. This is just a part.
> 
> Sorry, now I post the whole code that you can test.  Thanks.
> 
> 
> # My Question (marked with "*")
> 
> Click on Options, then click Tab Connection.
> Then click again tab Tariff.
> * the textboxes are missing?
> Then click tab Connection.
> Close the Options window.
> Click Options button
> * the controls in both tabs are visible?
> 
> I'm using Win32Lib 55.1
> 
> 
> Thanks!
> 
> # The Code
> 
> --  code generated by Win32Lib IDE v0.10.4
> 
> include Win32lib.ew.55
> without warning
> 
> global constant Group4 = create( Group, "Status", Window1, 280, 8, 124, 
> 88, 0 )
> global constant lwlast = create( CText, "0:00:00", Group2, 16, 24, 232, 
> 88, 0 )
> setFont( lwlast,"Arial",28,Normal)
> global constant lwtotal = create( CText, "0:00:00", Group3, 16, 28, 232, 
> 84, 0 )
> setFont( lwtotal,"Arial",28,Normal)
> global constant ip = create( CText, "Not Connected", Group4, 12, 16, 
> 104, 24, 0 )
> global constant Radio14 = create( Radio, "Total 1", Window1, 284, 156, 
> 150, 20, 0 )
> global constant Radio15 = create( Radio, "Total 2", Window1, 284, 180, 
> 150, 20, 0 )
> global constant Radio16 = create( Radio, "Total 3", Window1, 284, 204, 
> 150, 20, 0 )
> global constant PushButton17 = create( PushButton, "Reset", Window1, 
> 284, 232, 64, 36, 0 )
> global constant PushButton18 = create( PushButton, "Options", Window1, 
> 280, 104, 88, 36, 0 )
> global constant ltarif = create( LText, "", Group4, 12, 44, 104, 40, 0 )
> global constant Group24 = create( Group, "Working day: tariff 1", 
> tabtariff, 8, 52, 132, 116, 0 )
> global constant LText25 = create( LText, "Start from hour", Window2, 24, 
> 76, 84, 24, 0 )
> constant ES_NUMERIC = #2000
> global constant t1a = create( EditText, "8", Window2, 104, 76, 32, 20, 
> or_all({ES_NUMERIC}) )
> LimitText( t1a,2)
> global constant LText27 = create( LText, "For every", Window2, 24, 96, 
> 64, 20, 0 )
<snip>

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu