Giving Palette Form focus from command line

Started by hgcad · 2008-02-16 12:00 UTC · 6 replies · SMF topic #185

I got the Palette form to work for most things as in a Dockable form
except that It won't give focus back to the form  from the command line
even with (dcl_Control_SetEventInvoke form 0)

List of problems

1. - Can not enter values in editbox cells/Though I can set listbox cell values
2. - Error at start of command in (dcl_Control_SetVisible  form  0)
3. - Error at start of command in (dcl_Control_SetBlockName    form  BName)
      property not found




I have converted my Dockable form to a palette and it looks great.

I like the new capablites thanks.

Help please

hgcad
Is the forms new "Keep Focus" property checked?

[attachment deleted by admin]
1) Set 'Keep Focus' to True.
2) The 'Visible' property now accepts only T or NIL as values.
3) This error means that the control does not have a 'BlockName' property. Which type of control is it?
Owen thanks for reply.

Here is what I found:

1. - You are right 'Keep Focus' was set to false/ I changed it to true but it made no difference,
      still not able to enter value in cell editbox.

2. - With 'Keep Focus' set to true when to palette is docked, none of my graphicbuttons could be activated
      But would work only when form is floating.

3. - The (dcl_Control_SetBlockName    form  BName) was used with a BlockView control,
      I noticed that (dcl_BlockView_DisplayBlock  form  lBName) receive block name,
      Taking out 'dcl_Control_SetBlockName' solved this one
My palettes aren't keeping focus either.  So any control that requires user input - textbox, editable drop-down, won't work.  Other than that everything seems to be working . . . how cool is that!
In Alpha 5, the KeepFocus problem should be fixed.
In Alpha 5, the KeepFocus problem should be fixed.





SWEET.