<div class="h5"><br>
</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I guess it is a win32 interface bug, because you wrote it<br>
works on some windows and not on windows XP.<br>
The calls are in lcl/interfaces/win32/win32wscontrols.pp<br>
<br>
TWin32WSWinControl.ShowHide<br>
<br>
Add there a debug line:<br>
<br>
debugln(['TWin32WSWinControl.ShowHide ',dbgsname(AWinControl),' ',AWinControl.HandleObjectShouldBeVisible]);<br>
<br>
Run it.<br>
Is the stringgrid made visible there?<br>
<div><div></div><div class="h5"><br></div></div></blockquote><div><br>TWin32WSWinControl.ShowHide SR1:TStringGrid1 True - and I don't see SR1<br><br>b<span id="result_box" class="short_text"><span style="background-color: rgb(255, 255, 255); color: rgb(0, 0, 0);" title="">ut what I observed, sometime on good working WinXP there is also problem with showing Arrow also, as example, that debug:<br>
</span></span><br> TWin32WSWinControl.ShowHide StopA:TButton False<br> TWin32WSWinControl.ShowHide :TStringGrid1 False<br> 449-:-743 -1<br> 449-:-743 -1<br> TWin32WSWinControl.ShowHide OptsR:TArrow True<br> TWin32WSWinControl.ShowHide SR1:TStringGrid1 True<br>
<br>don't show Arrow but show SR1.<br><span id="result_box" class="medium_text"><span style="" title="">But what's
important, I observed that the problem occurs only when the order of debug lines is wrong (on autosizing delayed). When I get that debug:<br> set sr1 to visible<br></span></span> 449-:-743 -1<br>
449-:-743 -1<br>
TWin32WSWinControl.ShowHide SR1:TStringGrid1 True<br>
TWin32WSWinControl.ShowHide :TStringGrid1 False<br>
TWin32WSWinControl.ShowHide OptsR:TArrow True<br>
<span id="zippyspan" onclick="_rolldown()" style="display: block;"><img src="http://www.google.pl/images/cleardot.gif" style="margin-right: 0.33em; cursor: pointer; visibility: visible;" id="zippyicon" class="buttons square13 zippy-plus"></span> TWin32WSWinControl.ShowHide StopA:TButton False<br>
<div dir="ltr" style=""><div id="tts_button" title="Posłuchaj
tłumaczenia" style="display: block;" class=" "><object type="application/x-shockwave-flash" data="http://www.gstatic.com/translate/sound_player.swf" id="tts_flash" height="18" width="18"><param value="http://www.gstatic.com/translate/sound_player.swf" name="movie"><param value="sound_name=&sound_name_cb=_TTSSoundFile" name="flashvars"><param value="transparent" name="wmode"><param value="always" name="allowScriptAccess"></object></div>
<span id="result_box" class="short_text"><span style="background-color: rgb(255, 255, 255);" title="">then everything is always ok.<br><br></span></span><span id="result_box" class="short_text"><span style="background-color: rgb(230, 236, 249); color: rgb(0, 0, 0);" title="">And during the
testing, I got this error</span></span> <span id="result_box" class="short_text"><span style="background-color: rgb(255, 255, 255); color: rgb(0, 0, 0);" title="">once:<br><br>set sr1 to visible<br>449-:-743 -1<br>449-:-743 -1<br>
TWin32WSWinControl.ShowHide SR1:TStringGrid1 True<br>TWin32WSWinControl.ShowHide :TStringGrid1 False<br>TWin32WSWinControl.ShowHide TWin32WSWinControl.ShowHide TWin32WSWinControl.ShowH<br>ide StopA:TButton False<br>TApplication.HandleException Disk Full<br>
Stack trace:<br> $00492E9D<br> $0049241F<br> $005A5BFD<br> $00520C8B<br> $005211E9<br> $0040B93A<br> $0051BD00<br> $00523948<br> $0051A179<br> $0051A0D7<br> $00518CE6<br> $00518CA7<br> $00518CA7<br> $00518CA7<br>
$00518B4B<br> $0052A914<br> $0052A904<br>exception at 00062DE8.<br>TWin32WSWinControl.ShowHide :TBitBtn True<br><br><br><br></span></span><span id="result_box" class="short_text"><span style="background-color: rgb(255, 255, 255);" title=""><br>
<br></span></span></div><br><br>
<br><span id="result_box" class="short_text"><span style="background-color: rgb(255, 255, 255); color: rgb(0, 0, 0);" title=""><br></span></span></div></div>