I've been working through the step by step guide.
I'm glad you posted it even though it's not done because it's given me a much
better
overview of how to create a dabo application than the screen casts had to this
point.
But in creating the HoursForm I'm having trouble with the spinner control
disappearing
when I run the form. I've found out that I can remedy the situation by having
a statement
to set the height of the spinner control in the initafterall event of the form
and the
spinner control appears. The following are some notes I've written about
trying to figure it out.
2009-03-15 Spin box, when I go to run the form doesn't show. When
I set the border property to raised and set a border width, I can see the
border in the proper place but not the control. I can tab into the control and
set the value correctly and the record saves it, so the control must be there.
But it seems to be hidden behind it's background? I don't know. Did further
testing. This happens when it's on a paged frame page. When it's on a form
with no paged frame the spinner works fine.
On the paged frame page it happens when I add a grid sizer with 2 col
and 5 rows.
In the first row I add a label with col span 2.
In the second row, 1 col I add a label.
In the second row, 2 col I add a spinner.
When I run the form at this point the spinner doesn't show up in the
running form.
If I set the spinner sizer properties to NOT column expand then when I
run the form the spinner shows up.
If I set the row 2 col 1 label sizer properties to expand col True then
the spinner doesn't show when the form runs.
I can fix the problem by in the form initafterall event entering the code to
set the spinner height. I can set it to the same height that the spinner has
and it still causes the spinner to appear. Setting Left and Top properties
don't make the control appear, just the Height property. I printed the Height
property before setting it in a console window and it reported the height
correctly. I set it the same as the amount that printed and the control
appeared.
I don't know if this is related or not but there are times when I'm trying to
edit a property for the spinner in the Object info window and the wrong edit
control seems to appear for the property. So that sometimes if I want to edit
the BorderStyle, I get an error because a drop down list with the list of items
for the BorderLineStyle has appeared and they're not correct values for the
BorderStyle. It can happen on any property. Sometimes a property that has a
drop down will get a plain text box for editing with no values. It seems that
the problem is usually an edit control appearing for a property that is one row
above the one I'm trying to edit. Is this related to the spinner control not
having the property of Alignment at the top like most other controls do?
I also have another question. When one creates a grid sizer like in the
HoursForm and the top label is set to col span 2 so it centers nicely, is there
any way to get back that cell in the second column? If I later change the
design of the form and want the label in just the first column and set the col
span = 1, the label does just show up in column 1 but I don't get anything in
column 2 for row 1. Is there a way to work around this?
I haven't abandoned the thread Dabo 0.9.1 ran webupdate now broken, I just
haven't had access to the machine that's causing the problem this weekend.
Thanks
Matt
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message:
http://leafe.com/archives/byMID/[email protected]