Owen RE: Palettes
Ohhhhhh . . . snap!
;)
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 . . ..
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.
Quote from: jb on February 21, 2008, 06:54:08 AM
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?
Quote from: jb on February 21, 2008, 11:53:34 AM
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?
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]
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]
I'm getting a couple of functions missing from your code, primarily your 'jbload' function.
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.
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"?
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.
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.
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.
'Doh!
[attachment deleted by admin]
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.
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?
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
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))
)
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