OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: stephan_35 on June 15, 2009, 07:37:52 AM

Title: [solved] Size of Palette with not allow resizing
Post by: stephan_35 on June 15, 2009, 07:37:52 AM
Hello,

I meet something strange today !

I try to set palette with definied size : 116x224

First, when i show palette, it always put it in left side, but i send you another post for this,

Second, size does not match with editor view ! : button doesn't displayed correctly (seen screenshot)

third, if i tried to resize, i get something strange ..... and not even same   ;D

Thanks .
Title: Re: Size of Palette with not allow resizing
Post by: Fred Tomke on June 15, 2009, 08:11:58 AM
Hi, stephan_35,

Unfortunately, I don't have any solution for you, but maybe it gives hope when I'm telling you that I can reproduce this in my palettes. But after resizing everything is alright.

Fred
Title: Re: Size of Palette with not allow resizing
Post by: stephan_35 on June 15, 2009, 02:15:45 PM
Thanks for reply Fred !

My first ask was about the difference between editor and displayed palette in autocad.

Do we must find ourself the good size in editor to display in autocad ...

Thanks
Title: Re: Size of Palette with not allow resizing
Post by: stephan_35 on June 15, 2009, 02:17:48 PM
My second ask is why can i resize palette if i set it to no ?

Thanks (again  ;) )
Title: Re: Size of Palette with not allow resizing
Post by: Fred Tomke on June 15, 2009, 02:29:40 PM
Hi stephan, to your second question I had a test with my palette. I can hardly resize it - but a little bit just this gap where we can see the AutoCAD background at the border of the palette -  maybe it is a hint to find a solution in the palette sourcecode ...

Can you resize it completely/endless?

Fred
Title: Re: Size of Palette with not allow resizing
Post by: stephan_35 on June 16, 2009, 12:24:19 AM
Quote from: Fred Tomke on June 15, 2009, 02:29:40 PM
Hi stephan, to your second question I had a test with my palette. I can hardly resize it - but a little bit just this gap where we can see the AutoCAD background at the border of the palette -  maybe it is a hint to find a solution in the palette sourcecode ...

Can you resize it completely/endless?

Fred

Hello Fred,
I can change the size of the palette only once!
After that, it retains its dimensions.
Having established the minimum and maximum sizes
I just wonder if there is no inconsistency between the first display and the size defined by the editor.

Best regards
Title: Re: Size of Palette with not allow resizing
Post by: stephan_35 on June 16, 2009, 02:30:38 AM
   
Hello,

I did another test by defining ranges of minimum and maximum size of palettes.

The result is not conclusive, in fact there is always a lag between the display definition for the editor and the result obtained in autocad.


Best regards
Title: Re: Size of Palette with not allow resizing
Post by: Fred Tomke on June 16, 2009, 08:46:50 AM
I would add it as a bug report.

Fred
Title: Re: Size of Palette with not allow resizing
Post by: stephan_35 on June 16, 2009, 12:08:53 PM
Quote from: Fred Tomke on June 16, 2009, 08:46:50 AM
I would add it as a bug report.

Fred

Thanks for us  ;)
Title: Re: Size of Palette with not allow resizing
Post by: owenwengerd on June 17, 2009, 09:12:55 AM
I suspect that the fix for the SetVisible bug also fixes this one. Please test it in Beta 7 and let me know whether the problem still occurs.
Title: Re: Size of Palette with not allow resizing
Post by: owenwengerd on July 16, 2009, 05:50:03 PM
Please attach a simple sample along with exact steps to reproduce the problem.
Title: Re: Size of Palette with not allow resizing
Post by: stephan_35 on July 17, 2009, 12:28:21 AM
So, yes bug still occurs :

Here is an example (always the same test  ;) )

Code (autolisp) Select

(load "d:test.lsp")
test


Look only the palette, and try to resize it, something strange will appening , and all buttons are not inside box ! (but still inside with editor !)

Thanks !
Title: Re: Size of Palette with not allow resizing
Post by: owenwengerd on July 17, 2009, 09:06:38 AM
For me, your palette opened correctly and is not resizable. I wonder if the problem is that during development, AutoCAD remembers the different sizes that you have tested with, and restores the size to what it remembers from the previous time.

I did notice that if you dock it, then undock it again, the size is incorrect. I will investigate that.
Title: Re: Size of Palette with not allow resizing
Post by: stephan_35 on July 17, 2009, 12:25:37 PM
Quote from: owenwengerd on July 17, 2009, 09:06:38 AM
I did notice that if you dock it, then undock it again, the size is incorrect. I will investigate that.

The difference is that when i show the palette , it's already docked !

I can't (or i don't know how to ?) show the palette undocked.

But same problem since your palette is docked.  ;)

And i can resize it !!!! you don't ?

Thanks again .
Title: Re: Size of Palette with not allow resizing
Post by: owenwengerd on July 17, 2009, 08:20:23 PM
No, I cannot resize it. I tested in AutoCAD 2007 on Vista.
Title: Re: Size of Palette with not allow resizing
Post by: stephan_35 on July 20, 2009, 01:49:50 AM
Quote from: owenwengerd on July 17, 2009, 08:20:23 PM
No, I cannot resize it. I tested in AutoCAD 2007 on Vista.

I use AutoCAD 2008 on Vista 32Bits .

I tried this to show palette in middle screen with no effect , steel docked! :
Code (autolisp) Select

(dcl_Form_Show Test_Form1 400 400)


But i discover another thing ...  :(

When i undock the palette, it steel locked, and missing all option button and checkbox and option list, until i move it again !!!

After moved it in screen , repaint it  and seem work fine (but not really the good size)......

But, i can resize it before or after move, but not as i wish (with no control), i get something strange :
Horizontal ,Only some pixel (maybe 32), after resizing, cannot get original size, but drafting as it could do it ...
Vertical, like Horizonal if i select this first.
Diagonal, if i select this first, i can resize it over, and over, but not as i wish !

Hope this can help you !

Thanks !
Title: Re: Size of Palette with not allow resizing
Post by: owenwengerd on July 27, 2009, 12:12:09 AM
In Beta 8, I have done some work on palette sizing, but I still see some strange problems that I haven't been able to resolve. For example, when Resizable is False the palette shifts inside the container window when undocking or unrolling.
Title: Re: Size of Palette with not allow resizing
Post by: stephan_35 on August 13, 2009, 12:49:36 AM
You've got it with 5.1.2.1, solved !

Arrrhh , but another thing, when i move pallette in screen, size of item inside change (just a little)

I 'll make anothe post for this ;)

thanks for your job !
Title: Re: [solved] Size of Palette with not allow resizing
Post by: owenwengerd on August 13, 2009, 06:53:49 AM
I did notice the shifting, and I spent some time trying to fix this, but so far I haven't found a solution. The shifting is due to some unusual implementation in AutoCAD's palette code.