Jump to content

Toolbar Buttons


dantay9
 Share

Recommended Posts

I just can't seem to get this toolbar to work like I want it to. I have a primary toolbar with all of the general buttons like cut, paste, new, copy, etc. Now I need to add the bold, underline, and italic buttons, but I can't figure out how to do it.

These aren't the only buttons I have to do, but I feel confident that once I get these working, I can finish off the toolbar myself. Thanks in advance!

Here's what I have so far.

$hReBar = _GUICtrlRebar_Create($NOTEPAD, $CCS_TOP)
$Toolbar = _GUICtrlToolbar_Create($NOTEPAD, $TBSTYLE_FLAT)
_GUICtrlToolbar_AddBitmap($Toolbar, 1, -1, $IDB_STD_SMALL_COLOR)
_GUICtrlToolbar_AddButton($Toolbar, $ID1, $STD_FILENEW)
_GUICtrlToolbar_AddButton($Toolbar, $ID2, $STD_FILEOPEN)
_GUICtrlToolbar_AddButton($Toolbar, $ID3, $STD_FILESAVE)
_GUICtrlToolbar_AddButton($Toolbar, $ID4, $STD_PRINT)
_GUICtrlToolbar_AddButton($Toolbar, $ID5, $STD_CUT)
_GUICtrlToolbar_AddButton($Toolbar, $ID6, $STD_COPY)
_GUICtrlToolbar_AddButton($Toolbar, $ID7, $STD_PASTE)
_GUICtrlToolbar_AddButton($Toolbar, $ID8, $STD_UNDO)
_GUICtrlToolbar_AddButton($Toolbar, $ID9, $STD_REDOW)
GUIRegisterMsg($WM_NOTIFY, "_WM_NOTIFY")
Edited by dantay9
Link to comment
Share on other sites

... 2 bumps in the same day is 1 too many. :)

Bumping your post repeatedly at such a short interval is something regarded as rude behaviour.

Keep in mind - the help here is given freely - not requested.

Speaking about your post - I have seen it earlier and I wanted to help but - your example is incomplete (not a working example) and I had to spend extra time to put everything in a GUI and test it after - which means I will be wasting time I can't afford.

Review the source code you have posted, build a working GUI around, post it and -maybe- someone will finally help you.

SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

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...