|
|
|
Control добавляемый в Grid не допускает обновления
|
|||
|---|---|---|---|
|
#18+
Добавляю в grid колонки. Если TextBox нет проблем - настраиваю обновляется. Если строю колонку с CheckBox - этот checkbox не дает делать изменений. Помогите . Не пойму где глюк LOCAL l as Integer ,J as Integer *1 êîëîíêà l=10 FOR j=2 TO 31 m=l+(j-1)*2-1 thisform.grdPlan.AddColumn(m) WITH thisform.grdPlan.Columns(m) as Column .Name ="p"+LTRIM(STR(j)) .Controls(1).caption=LTRIM(STR(j)) .Controls(1).Alignment=2 .Controls(1).FontName="Tahoma" .Controls(1).FontSize=8 .Width=60 .ControlSource ="schedule1.p"+LTRIM(STR(j)) .ReadOnly = .F. .Bound = .T. ENDWITH thisform.grdPlan.AddColumn(m+1) WITH thisform.grdPlan.Columns(m+1) as Column .RemoveObject("Text1") .Name ="q"+LTRIM(STR(j)) .AddObject("Check1","Checkbox") .check1.caption="" .WIDTH=15 .Controls(2).Alignment=2 .Controls(2).FontName="Tahoma" .Controls(2).FontSize=8 *.Controls(2).Value =.f. .CurrentControl="Check1" .Sparse = .F. .ControlSource ="schedule1.q"+LTRIM(STR(j)) .ReadOnly = .F. .Bound = .T. ENDWITH NEXT ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.05.2006, 21:34 |
|
||
|
Control добавляемый в Grid не допускает обновления
|
|||
|---|---|---|---|
|
#18+
Код: plaintext 1. 2. 3. 4. 5. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.05.2006, 09:04 |
|
||
|
Control добавляемый в Grid не допускает обновления
|
|||
|---|---|---|---|
|
#18+
ok, работает . Но что самое удивительное. Я в дебагере сравнивал свойства контролов и из дизайнера на предмет 33 отличий и все одинаково . И visible то же true, а пока явно не влимонишь в коде не работает.Спасибо- тема закрыта ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.05.2006, 13:24 |
|
||
|
Control добавляемый в Grid не допускает обновления
|
|||
|---|---|---|---|
|
#18+
На будущее из хелпа автор When you use AddObject to add an object to a container, the object's Visible property is set to False (.F.) so you can set the properties of the object without any awkward visual effects as the object's appearance changes. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.05.2006, 13:37 |
|
||
|
|

start [/forum/topic.php?fid=41&msg=33722864&tid=1591712]: |
0ms |
get settings: |
6ms |
get forum list: |
9ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
155ms |
get topic data: |
6ms |
get forum data: |
1ms |
get page messages: |
29ms |
get tp. blocked users: |
1ms |
| others: | 202ms |
| total: | 413ms |

| 0 / 0 |
