Boards /
Runtime/AutoLISP /
Topic 199
5.0.0.5
Started by jb ·
2008-02-20 02:22 UTC ·
18 replies · SMF topic #199
jb
2008-02-20 02:22 UTC
Owen RE: Palettes
Ohhhhhh . . . snap!
;)
jb
2008-02-21 14:54 UTC
SetCmdBarFocus not working from Palette form - must click in the AutoCAD drawing window first . . ..
(defun c:jb008_01_TreeControl1_OnDblClicked (/)
(dcl_SetCmdBarFocus)
(vla-sendcommand(vla-get-activedocument(vlax-get-acad-object))"jbDoorAdd "))
When a palette form is set to hide it won't pop back open once collapsed.
More to come . . ..
jb
2008-02-21 19:53 UTC
I'm experiencing the "painting" issues as well. Labels not re-painting and, oddly enough, "etched" spliters causing the worst painting issues . . ..
Love the palette experience though.
owenwengerd
2008-02-22 06:14 UTC
author=jb link=topic=199.msg883#msg883 date=1203605648 wrote:
SetCmdBarFocus not working from Palette form - must click in the AutoCAD drawing window first
Is this different from dockable forms? Does the KeepFocus property affect this?
owenwengerd
2008-02-22 06:15 UTC
author=jb link=topic=199.msg889#msg889 date=1203623614 wrote:
I'm experiencing the "painting" issues as well. Labels not re-painting and, oddly enough, "etched" spliters causing the worst painting issues . . ..
Can you attach a sample file that demonstrates these problems?
tlindell
2008-02-23 04:33 UTC
Although this may not be able to be addressed until '09 is shipped, I have the RC on WinXP32bit, and palettes are looking very ugly in it. Screenshot shows a splitter not refreshing along the sides right, the borders do not display correctly anyways. The background is the dark grey on which other controls look poorly against. Only the new Ribbon actually uses the dark background color (all other built-in palettes use the Windows defualt color) which gets hidden as panels populate it.
The splitter is not honoring the closest inside or outside properties either.
[attachment deleted by admin]
jb
2008-02-24 16:47 UTC
There is an etched splitter between the top listbox and the graphic "open" button and path label. Painting issues happen there. There openDbx subs found elsewhere that aren't included here - but you should be able to open the palette and interact with it.
[attachment deleted by admin]
tlindell
2008-02-24 21:53 UTC
I'm getting a couple of functions missing from your code, primarily your 'jbload' function.
owenwengerd
2008-02-25 05:30 UTC
This is fixed in Alpha 6, but keep an eye on it in future builds, because I'm still tinkering to try to optimize the performance and reduce flashing.
jb
2008-02-25 14:10 UTC
tlindell - oops, that sub didn't belong in there anyway. Try this one. (I've included the import functions if you want to try out - use - change the routine.)
Owen - Great work, looking forward to 6. Has anyone else had issues when the palette is "collapsed" it won't react to the mouseover and "expand"?
fred_tomke
2008-02-25 14:34 UTC
Hm, if you want to know in detail, I must say, palette worked better in 5.0.0.5 than in 5.0.0.6. It won't collapes anymore after leaving the mouse from the palette although auto-collapse is active. I will create a video 'bout that.
owenwengerd
2008-02-25 15:28 UTC
I think the auto-collapse problem is not new, but depends on which kind of control has focus, and perhaps whether KeepFocus is true. At least, I don't think I changed anything in Alpha 6 that would affect that.
tlindell
2008-02-25 18:30 UTC
Palette painting issues related to splitter movement is working much better in Alpha 6. There are still painting issues related to palette resizing and when it is flipped during dragging. This is being tested on '09RC WinXP.
Thanks JB, I'll give your example a second try this evening. Was there supposed to be a new attachment to your last post?
Autocollapse is not working for me either, autoexpand is working ok.
jb
2008-02-25 20:22 UTC
'Doh!
[attachment deleted by admin]
tlindell
2008-02-28 05:58 UTC
Just tried your viewtool and it is a really neat design. When I double click on a saved view name, I'm getting an arguement process exception: dcl_control_SetText nil value not allowed. After clicking away the warning message, I get the view.
jb
2008-02-28 12:03 UTC
That error is being thrown here:
(defun c:jb001_01_ViewList_OnDblClicked (nRow nCol / vname)
(setq vname (car (dcl_ListView_GetSelectedItems jb001_01_ViewList)))
(if vname
(progn (dcl_Control_SetText jb001_01_NewView vname)
(command ".view" "_restore" vname))))
I'm not getting that error on either 2006 or 2008, winXP pro, Dell XPS. If you run just (dcl_ListView_GetSelectedItems jb001_01_ViewList) from vlide what is returned?
Marco Jacinto
2008-02-29 02:43 UTC
I can't load the jbViewtools, it says
"; error: ADS request error"
I'm using 5.0.0.6.
Also when I type some text in the object browser, can't see any content until I hit enter.
Pressing F1, doesn't show help
Saludos
Marco Jacinto
jb
2008-02-29 19:30 UTC
Hmm. AutoCAD version, Operating system?
The ADS Request error means a variable is being passed to an OpenDCL control that's nil or invalid (a string instead of a real, for example). I can't recreate that here: the On_initialize event has a call to populate the listbox with the following:
(dcl_ListBox_AddList jb010_00_ViewList (jb:ListViews))
Now if there are no views, (jb:listview) returns nil. I don't get any error here. You might want to try changing the on_initialize event to the following and see if that helps:
(defun c:jb010_00_OnInitialize ( /)
(dcl_Control_SetCaption jb010_00_DWG
"No Import Drawing Selected!")
(dcl_ListBox_Clear jb010_00_LB)
(dcl_ListBox_Clear jb010_00_ViewList)
(if (setq vlist(jb:ListViews))
(dcl_ListBox_AddList jb010_00_ViewList vlist))
)
Marco Jacinto
2008-02-29 19:39 UTC
The problem I think comes from the dcl_import function, cause it throw me an erros an the jb010_00_DWG is set to nil.
I'm using 2008 on XP
Saludos
Marco Jacinto