Jump to content

Scite Idea....unless Someone Has Already Done It


Bert
 Share

Recommended Posts

I was thinking of something I would like to see with Scite: A way to add buttons to the toolbar so you could click instead of doing a 2 or 3 finger keystroke to do something. I know adding buttons to the toolbar is not native to Scite, but a toolbar that docked with the Scite editor window could be done. I run a 19" flat panal, and there is more than enough room for a floating toolbar of somesort that could be added on the top section of the window. It could be designed so that you could add or remove buttons to suit your taste. I could make it, but I hate to reinvent the wheel when someone else has already done it.

Has anyone done this? I know how to do docking, but what I'm asking is has someone already made a toolbar that docks with the Scite window that has the tools on the toolbar?

:think:

Link to comment
Share on other sites

  • Moderators

I was thinking of something I would like to see with Scite: A way to add buttons to the toolbar so you could click instead of doing a 2 or 3 finger keystroke to do something. I know adding buttons to the toolbar is not native to Scite, but a toolbar that docked with the Scite editor window could be done. I run a 19" flat panal, and there is more than enough room for a floating toolbar of somesort that could be added on the top section of the window. It could be designed so that you could add or remove buttons to suit your taste. I could make it, but I hate to reinvent the wheel when someone else has already done it.

Has anyone done this? I know how to do docking, but what I'm asking is has someone already made a toolbar that docks with the Scite window that has the tools on the toolbar?

:think:

You could try it yourself with AnyGUI.au3.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

  • Developers

bump bump...last bump...If no one replys, I will guess no one has done this. Anyone care to put any input on how they like to see it layed when I build it? Colors, icons, control positions, that sort of thing?

Ok... seems you are looking for ideas how to start .... :think:

The below script will dock in the icon bar of SciTE and will have 1 icon to perform the Beta Go command..

Its very basic but has all thats needed to give you a start.. (Script/Icon and exe in the attached RAR)

Have fun..

:(

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

I'm looking at the code, and I'm trying to see how it is sending the command to Scite. I've never tried using DLL calls in my scripts before. On line 29

SendSciTE_Command($My_Hwnd, $Scite_hwnd, "menucommand:1100"); Runs command.0
I'm assuming (due to my lack of knowledge) that "menucommand:1100" is the command that is sent to Scite to beta run. Wherre do I find the other commands so I can use the SendSciTE_Command function? I'm looking in au3.properties, but I can't find the reference to "1100". I can do a keystroke send to do it, but I rather use the function you laid out.

Link to comment
Share on other sites

  • Developers

I'm looking at the code, and I'm trying to see how it is sending the command to Scite. I've never tried using DLL calls in my scripts before. On line 29

SendSciTE_Command($My_Hwnd, $Scite_hwnd, "menucommand:1100"); Runs command.0
I'm assuming (due to my lack of knowledge) that "menucommand:1100" is the command that is sent to Scite to beta run. Wherre do I find the other commands so I can use the SendSciTE_Command function? I'm looking in au3.properties, but I can't find the reference to "1100". I can do a keystroke send to do it, but I rather use the function you laid out.
its simple.. just add 1100 to the command number

command.0 = 1100

command.1 = 1101

command.2 = 1102

etc...

So:

Beta Compile = 1101

Tidy = 1109

etc.

:think:

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

.. also think it looks better when the ico is 15*15 and has a tooltip:

Line that needs to be modified/added:

$Go = GUICtrlCreateIcon("go.ico", -1, 1, 1,15,15)

GUICtrlSetTip(-1,"Run with Beta")

WinMove($My_Hwnd,'',$Scite_pos[0]+400, $Scite_pos[1]+54)

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

Here are the other values that could be useful for you:

Go = 301

Compile = 302

Complete list from the SciTE source file scite.h

// Menu IDs.

// These are located 100 apart. No one will want more than 100 in each menu :think:

#define IDM_MRUFILE 1000

#define IDM_TOOLS 1100

#define IDM_BUFFER 1200

#define IDM_IMPORT 1300

#define IDM_LANGUAGE 1400

// File

#define IDM_NEW 101

#define IDM_OPEN 102

#define IDM_OPENSELECTED 103

#define IDM_REVERT 104

#define IDM_CLOSE 105

#define IDM_SAVE 106

#define IDM_SAVEAS 110

#define IDM_SAVEASHTML 111

#define IDM_SAVEASRTF 112

#define IDM_SAVEASPDF 113

#define IDM_FILER 114

#define IDM_SAVEASTEX 115

#define IDM_SAVEACOPY 116

#define IDM_SAVEASXML 117

#define IDM_MRU_SEP 120

#define IDM_PRINTSETUP 130

#define IDM_PRINT 131

#define IDM_LOADSESSION 132

#define IDM_SAVESESSION 133

#define IDM_QUIT 140

#define IDM_ENCODING_DEFAULT 150

#define IDM_ENCODING_UCS2BE 151

#define IDM_ENCODING_UCS2LE 152

#define IDM_ENCODING_UTF8 153

#define IDM_ENCODING_UCOOKIE 154

#define MRU_START 16

#define IMPORT_START 19

#define TOOLS_START 3

// Edit

#define IDM_UNDO 201

#define IDM_REDO 202

#define IDM_CUT 203

#define IDM_COPY 204

#define IDM_PASTE 205

#define IDM_CLEAR 206

#define IDM_SELECTALL 207

#define IDM_PASTEANDDOWN 208

#define IDM_FIND 210

#define IDM_FINDNEXT 211

#define IDM_FINDNEXTBACK 212

#define IDM_FINDNEXTSEL 213

#define IDM_FINDNEXTBACKSEL 214

#define IDM_FINDINFILES 215

#define IDM_REPLACE 216

#define IDM_GOTO 220

#define IDM_BOOKMARK_NEXT 221

#define IDM_BOOKMARK_TOGGLE 222

#define IDM_BOOKMARK_PREV 223

#define IDM_BOOKMARK_CLEARALL 224

#define IDM_BOOKMARK_NEXT_SELECT 225

#define IDM_BOOKMARK_PREV_SELECT 226

#define IDM_MATCHBRACE 230

#define IDM_SELECTTOBRACE 231

#define IDM_SHOWCALLTIP 232

#define IDM_COMPLETE 233

#define IDM_COMPLETEWORD 234

#define IDM_EXPAND 235

#define IDM_TOGGLE_FOLDALL 236

#define IDM_TOGGLE_FOLDRECURSIVE 237

#define IDM_EXPAND_ENSURECHILDRENVISIBLE 238

#define IDM_UPRCASE 240

#define IDM_LWRCASE 241

#define IDM_ABBREV 242

#define IDM_BLOCK_COMMENT 243

#define IDM_STREAM_COMMENT 244

#define IDM_COPYASRTF 245

#define IDM_BOX_COMMENT 246

#define IDM_INS_ABBREV 247

#define IDM_JOIN 248

#define IDM_SPLIT 249

#define IDM_DUPLICATE 250

#define IDM_INCSEARCH 252

#define IDM_ENTERSELECTION 256

#define IDC_INCFINDTEXT 253

#define IDC_INCFINDBTNOK 254

#define IDD_FIND2 255

#define IDC_EDIT1 1000

#define IDC_STATIC -1

#define IDM_PREVMATCHPPC 260

#define IDM_SELECTTOPREVMATCHPPC 261

#define IDM_NEXTMATCHPPC 262

#define IDM_SELECTTONEXTMATCHPPC 263

// Tools

#define IDM_COMPILE 301

#define IDM_BUILD 302

#define IDM_GO 303

#define IDM_STOPEXECUTE 304

#define IDM_FINISHEDEXECUTE 305

#define IDM_NEXTMSG 306

#define IDM_PREVMSG 307

#define IDM_MACRO_SEP 310

#define IDM_MACRORECORD 311

#define IDM_MACROSTOPRECORD 312

#define IDM_MACROPLAY 313

#define IDM_MACROLIST 314

#define IDM_ACTIVATE 320

#define IDM_SRCWIN 350

#define IDM_RUNWIN 351

#define IDM_TOOLWIN 352

#define IDM_STATUSWIN 353

#define IDM_TABWIN 354

// Options

#define IDM_SPLITVERTICAL 401

#define IDM_VIEWSPACE 402

#define IDM_VIEWEOL 403

#define IDM_VIEWGUIDES 404

#define IDM_SELMARGIN 405

#define IDM_FOLDMARGIN 406

#define IDM_LINENUMBERMARGIN 407

#define IDM_VIEWTOOLBAR 408

#define IDM_TOGGLEOUTPUT 409

#define IDM_VIEWTABBAR 410

#define IDM_VIEWSTATUSBAR 411

#define IDM_TOGGLEPARAMETERS 412

#define IDM_OPENFILESHERE 413

#define IDM_WRAP 414

#define IDM_WRAPOUTPUT 415

#define IDM_READONLY 416

#define IDM_CLEAROUTPUT 420

#define IDM_SWITCHPANE 421

#define IDM_EOL_CRLF 430

#define IDM_EOL_CR 431

#define IDM_EOL_LF 432

#define IDM_EOL_CONVERT 433

#define IDM_TABSIZE 440

#define IDM_MONOFONT 450

#define IDM_OPENLOCALPROPERTIES 460

#define IDM_OPENUSERPROPERTIES 461

#define IDM_OPENGLOBALPROPERTIES 462

#define IDM_OPENABBREVPROPERTIES 463

#define IDM_OPENLUAEXTERNALFILE 464

//#define IDM_SELECTIONMARGIN 490

//#define IDM_BUFFEREDDRAW 491

//#define IDM_USEPALETTE 492

// Buffers

#define IDM_PREVFILE 501

#define IDM_NEXTFILE 502

#define IDM_CLOSEALL 503

#define IDM_SAVEALL 504

#define IDM_BUFFERSEP 505

#define IDM_PREVFILESTACK 506

#define IDM_NEXTFILESTACK 507

// Help

#define IDM_HELP 901

#define IDM_ABOUT 902

#define IDM_HELP_SCITE 903

// Windows specific windowing options

#define IDM_ONTOP 960

#define IDM_FULLSCREEN 961

// Dialog control IDs

#define IDGOLINE 220

#define IDABOUTSCINTILLA 221

#define IDFINDWHAT 222

#define IDFILES 223

#define IDDIRECTORY 224

#define IDCURRLINE 225

#define IDLASTLINE 226

#define IDEXTEND 227

#define IDTABSIZE 228

#define IDINDENTSIZE 229

#define IDUSETABS 230

#define IDREPLACEWITH 231

#define IDWHOLEWORD 232

#define IDMATCHCASE 233

#define IDDIRECTIONUP 234

#define IDDIRECTIONDOWN 235

#define IDREPLACE 236

#define IDREPLACEALL 237

#define IDREPLACEINSEL 238

#define IDREGEXP 239

#define IDWRAP 240

#define IDUNSLASH 241

#define IDCMD 242

// id for the browse button in the grep dialog

#define IDBROWSE 243

#define IDABBREV 244

#define IDREPLACEINBUF 244

#define IDMARKALL 245

#define IDGOLINECHAR 246

#define IDCURRLINECHAR 247

#define IDREPLDONE 248

#define IDDOTDOT 249

#define IDFINDINSTYLE 250

#define IDFINDSTYLE 251

#define IDPARAMSTART 300

// Dialog IDs

#define IDD_FIND 400

#define IDD_REPLACE 401

#define IDD_BUFFERS 402

#define IDD_FIND_ADV 403

#define IDD_REPLACE_ADV 404

#define IDR_CLOSEFILE 100

Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

I'm putting it together, and it is going well. I wanted to add Tidy, but I can't extract the icon from Tidy.exe. Can I get that to add in? You can PM me if you like.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

You wouldn't have the other ones by chance? I have a bunch of icons I can use, but I rather keep with the ones people have already used for the tools. My icon extractor can't extract the icons if the app is locked.

which other ones are you looking for ?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

Koda, FuncPopUp, codeWizard, MacroGenerator, AutoIt3Wrapper, Scriptwriter

I plan to add this to Scripts and Scraps when I'm done, if that is ok with you for it has your icons in it. If not, I'm happy to switch the icons to something else.

Attached the Scriptwriter, Funcpopup and codeWizard ico's. Don't have the others.

Don't think you need to run AutoIt3Wrapper from an icon. it is run when you perform Go, Compile and Au3check for Production or Beta.

Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...