Author Topic: Need guidance for new FORM / MACRO please  (Read 5682 times)

slickMark

  • Community Member
  • Posts: 11
  • Hero Points: 0
Need guidance for new FORM / MACRO please
« on: November 23, 2006, 03:02:43 PM »
Hi,
I am trying to develop a new form that has a tab control and a button. What I would like to do is that everytime I press the button, I would:
a) add a new tab to the tab control.
b) retrieve the text from the build window and display it in a text box or editor control in the new tab.

Could someone please give my some guidelines.
Should I have an editor control in my form? (inserted from the dialog editor?)
Should I try to create a window (or editor control) the moment that the button is pressed?
How to do this??

Any help would be appreciated.

Thanks in advance,
MS
 ???

Graeme

  • Senior Community Member
  • Posts: 2796
  • Hero Points: 347
Re: Need guidance for new FORM / MACRO please
« Reply #1 on: November 30, 2006, 09:47:36 AM »

From your other post I'm guessing you've made some progress here.  Did you figure out how to do this stuff?

Graeme
« Last Edit: November 30, 2006, 09:50:52 AM by Graeme »

slickMark

  • Community Member
  • Posts: 11
  • Hero Points: 0
Re: Need guidance for new FORM / MACRO please
« Reply #2 on: November 30, 2006, 02:56:11 PM »
I guess I figured out a way to do it, but I'm sure if I'm doing it correctly or in the best way.
Basically; in my form the tab control is sized to be small such that it only shows the tabs. It doesn't obscure the editor control. This way my form has only one editor control. The form keeps track of
all the buffers and builds an association between each tab and the buffer behind it.


Graeme

  • Senior Community Member
  • Posts: 2796
  • Hero Points: 347
Re: Need guidance for new FORM / MACRO please
« Reply #3 on: December 01, 2006, 07:50:06 AM »

Sounds good.  This is the same as Slickedit does for the file tabs in the main window  - you can see in bufftabs.e and the form _tbbufftabs_form.   :)

Graeme