Jump to content

ToolBar


tonedeaf
 Share

Recommended Posts

Yep, your correct, forgot to account for those in the switch

Here's a correct one

Edit: Removed Attachment

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

  • Replies 66
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi,

Tried the example, no toolbar in W2k SP4 :lmao:

Any explanation/help?

Thanks!

Arno Rog

The example depends upon the version of comctl32.dll you have. Some API parameters used may fail with older versions, these details still have to be worked out. Edited by tonedeaf
Link to comment
Share on other sites

@tonedeaf: very good stuff :lmao:

Please also see below.

@all: just for your information:

I build a similar rebar/toolbar-example some days ago and I noticed some strange behaviour while moving rebar bands.

!!! Cause of a bug in GUIRegisterMsg() (I'm still looking for a solution) - moving of rebar bands can produce strange effects !!!

So long

Holger

Edit: I will put the things I have build so far to the public web folder later so you tonedeaf can maybe some things of it use (I also created textonly toolbars).

Edited by Holger
Link to comment
Share on other sites

Yeah I noticed the strange way it acts if using wm_notify, wm_command doesn't seem to affect but then you have to deal with all the controls thru that.

Here's the modified scripts have both wm_notify and wm_command in them, comment/uncomment which one you want to see.

It's not finished do to the strange results when using wm_notify

To Use Rebar - Comctl32.dll version 6 is needed as far as I can tell

Gary

Edit: Removed Attachments

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Hi,

Tried the example, no toolbar in W2k SP4 :lmao:

Any explanation/help?

Thanks!

Arno Rog

I tried it on a win2k pro sp4 system

With Rebar - no go

With-out Rebar - a toolbar will show and work.

Attachment of with-out rebar.

Gary

Edit: Removed Attachments

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

I tried it on a win2k pro sp4 system

With Rebar - no go

With-out Rebar - a toolbar will show and work.

Attachment of with-out rebar.

Gary

"no go" ? ... no :lmao:

You all forgot one important thing (which also says the MSDN):

"...Creating a Rebar Control

An application creates a rebar control by calling the CreateWindowEx function, specifying REBARCLASSNAME as the window class. The application must first register the window class by calling the InitCommonControlsEx function, while specifying the ICC_COOL_CLASSES bit in the accompanying INITCOMMONCONTROLSEX structure...."

Just try it like/with this at the beginning:

...
Global Const $ICC_BAR_CLASSES       = 0x00000004; toolbar
Global Const $ICC_COOL_CLASSES      = 0x00000400; rebar

Local $stICCE = DllStructCreate('dword;dword')
DllStructSetData($stICCE, 1, DllStructGetSize($stICCE))
DllStructSetData($stICCE, 2, BitOr($ICC_BAR_CLASSES, $ICC_COOL_CLASSES))

DllCall('comctl32.dll', 'int', 'InitCommonControlsEx', 'ptr', DllStructGetPtr($stICCE))
...

But for now I have to work on again the bug...

So long

Holger

Link to comment
Share on other sites

Ok, after some research and testing I finally got this to work on Win2K machine also, even using WM_Notify works better than before, although there is still some bugs that Holger is working on that if/when they are fixed will cure some of the re-paint problems.

Gary

Note: may want to take out the $WS_BORDERS from the style line in _GuiCtrlRebarCreate, had that in there for testing, should be a style that can be passed in, not a forced style

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

How about bigger icons and text under them ?

This will do the small/large standard buttons

Haven't had time at looking to adding text yet

http://www.autoitscript.com/fileman/users/gafrost/projects/GuiToolBar.au3

http://www.autoitscript.com/fileman/users/gafrost/projects/Toolbar_Example.au3

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Could you compact the example a bit? It's difficult to see what's needed and what's not, to integrate it.

Here's a shortened example using the rebar also.

Gary

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

  • 2 weeks later...

Do not let the idea to die!

Keep updating the UDF, I hope to see it in near Betas...

:o busy lately.

The UDF illustrates the the basics

You can have menus, editboxes, progress bars as part of rebars.

Other things to be implemented in toolbar:

http://msdn.microsoft.com/library/en-us/sh...olbar_using.asp

A lot of work to be completed. Will check out if I can find some time this week.

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