Jump to content

Recommended Posts

  • Replies 66
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted (edited)

  awrog said:

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
Posted

  tonedeaf said:

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.

You can find some aditional info here at MSDN

Thanks for the reply.

Arno

Posted (edited)

@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
Posted (edited)

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.

 

Posted (edited)

  awrog said:

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.

 

Posted

  gafrost said:

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

Posted

Gary,

A typo in Toolbar_Example_nr.au3 :

#include "GuiToolbar-nr.au3"

should read

#include "GuiToolbar_nr.au3"

Otherwise works and looks great!

Arno Rog

Posted (edited)

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.

 

Posted (edited)

  rysiora said:

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.

 

  • 2 weeks later...

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
  • Recently Browsing   0 members

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