[Gambas-user] A little extension for Gambaseditor
Peter
k-p.richter at ...20...
Sat Jun 19 23:26:44 CEST 2004
Hi Benoit and all,
I have a suggestion for a little extension for the editor in GAMBAS-IDE:
Block-Indent and release, like Block-Comment and UnComment.
This simplifies changes in depth of blocks.
Implementation:
Into Class FEditor:
-------------------
Rename PUBLIC SUB mnuComment_Click() in
PUBLIC SUB CommentIndent(sString AS String)
substitute string "' " with variable sString
Rename PUBLIC SUB mnuUncomment_Click() in
PUBLIC SUB UnCommentIndent(sString AS String)
substitute string "' " with variable sString
New:
PUBLIC SUB mnuComment_Click()
CommentIndent("' ")
END
PUBLIC SUB mnuUncomment_Click()
UnCommentIndent("' ")
END
PUBLIC SUB mnuIndent_Click()
CommentIndent(" ")
END
PUBLIC SUB mnuUnIndent_Click()
UnCommentIndent(" ")
END
Into Form FEditor:
In panToolbar 2 TollButton with Group mnuIndent respectivly mnuUnindent
and into Menu Indent and Unindent with the same name as above.
Propositions for icons as attachments.
I have testing under 0.92 and 0.93b
Benoit, what do you make of it?
Regards
Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: indent.png
Type: image/png
Size: 153 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20040619/7be30b73/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unindent.png
Type: image/png
Size: 161 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20040619/7be30b73/attachment-0001.png>
More information about the User
mailing list