AutoHotkey Community

It is currently May 27th, 2012, 5:24 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 177 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10, 11, 12  Next
Author Message
 Post subject:
PostPosted: February 8th, 2011, 2:52 pm 
Any chance that Forms will support animated gifs (with transparency) someday?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 8th, 2011, 3:06 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
I didn't plan to do that.
However, this is the script that can be used

http://www.autohotkey.com/forum/viewtop ... 64&start=0

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 9th, 2011, 1:38 pm 
Offline

Joined: February 11th, 2007, 4:10 pm
Posts: 185
Another problem: the radio group can't be created automatically around as gui,add does.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: non-printable characters
PostPosted: February 19th, 2011, 3:18 pm 
hi,
it's me again :)

i did not have any problems with listview for now, it works all fine :D.

Two more questions:
    the documentation on HiEdit wrote:
    It can display non-printable characters in a readable format
  1. I'm not sure about how to do this. Is there a function I didn't see?
    I tried with colors
    Code:
    Back=0xFFFFFF
    NonPrintableBack=0x000000
    but this didn't work. Is it done via keywords.hes?
  2. And is there a way to set syntax colors independant of the file extension? So, can i change the colors without changing the file extension? And what about unsaved files (without extension)?

As i'm working on a little app that uses lots of your modules, thank you again :!:

regards
maul.esel


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 5th, 2011, 9:19 pm 
Offline
User avatar

Joined: February 28th, 2011, 7:28 pm
Posts: 625
Location: Germany
No idea on this? :?

_________________
RECOMMENDED: AutoHotkey_L
Image
github - ImportTypeLib
Win7 HP SP1 32bit | AHK_L U 32bit


Last edited by maul.esel on April 23rd, 2011, 10:49 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 19th, 2011, 5:44 pm 
Offline

Joined: September 15th, 2006, 10:25 am
Posts: 567
hi, thanks for this wonderful framework.
just wanted to know if there is a way to add the custom icons catalogs 1S, 2S etc of toolbar to our own imagelist for toolbar control?
also, is there a way so that SHOWTEXT below the icon? SHOWTEXT requires LIST style, which shows text to the right of the icon.
Many thanks..

_________________
If i've seen further it is by standing on the shoulders of giants

my site | ~shajul | WYSIWYG BBCode Editor


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 19th, 2011, 9:37 pm 
Offline
User avatar

Joined: February 28th, 2011, 7:28 pm
Posts: 625
Location: Germany
I'm not majkinetor, but this might be an example of appending standard icons:
Code:
#include Toolbar.ahk
#NoEnv
#SingleInstance force
#KeyHistory 0

Gui Show, w400 h200
MIL := IL_Create()
IL_Add(MIL, A_AhkPath, 1)

Gui +LastFound
HTB := Toolbar_Add(WinExist(), "", "", MIL)
Toolbutton=
   (
   AButton, 1
   BButton, 2
   CButton, 3
   )
Toolbar_Insert(HTB, Toolbutton)

hIL := "1S" ; code below taken from Toolbar_SetImageList() ...
hIL .=    if StrLen(hIL) = 1 ? "S" : ""
size := SubStr(hIL,2,1)="L" ? 24:16
cat := (SubStr(hIL,1,1)-1)*4 + (size=16 ? 0:1)

TB_LOADIMAGES=0x432,  TB_SETBITMAPSIZE=0x420
SendMessage, TB_SETBITMAPSIZE,0,(size<<16)+size, , ahk_id %HTB%
SendMessage, TB_LOADIMAGES, cat, -1,,ahk_id %HTB%

If the toolbar doesn't have LIST style, it automatically displays the text below the icons (at least at my computer). Therefore SHOWTEXT would be unnecessary.

Regards
maul.esel

Edit: There seems to be a way to have different icons if the button is hovered or disabled:
Code:
#include Toolbar.ahk
#NoEnv
#SingleInstance force
#KeyHistory 0

Gui Show, w400 h200
MIL := IL_Create()
IL_Add(MIL, A_AhkPath, 1)

Gui +LastFound
HTB := Toolbar_Add(WinExist(), "", "", MIL)
Toolbutton=
   (
   AButton, 1
   BButton, 2
   CButton, 3
   )
Toolbar_Insert(HTB, Toolbutton)

hIL := "1L" ; code below taken from Toolbar_SetImageList()
hIL .=    if StrLen(hIL) = 1 ? "S" : ""
size := SubStr(hIL,2,1)="L" ? 24:16

TB_LOADIMAGES=0x432,  TB_SETBITMAPSIZE=0x420
SendMessage, TB_SETBITMAPSIZE,0,(size<<16)+size, , ahk_id %HTB%
SendMessage, TB_LOADIMAGES, 5, -1,,ahk_id %HTB% ; default icons
SendMessage, TB_LOADIMAGES, 13, -1,,ahk_id %HTB% ;hover icons

(forgive me if this is already known :roll: )

_________________
RECOMMENDED: AutoHotkey_L
Image
github - ImportTypeLib
Win7 HP SP1 32bit | AHK_L U 32bit


Last edited by maul.esel on April 23rd, 2011, 10:49 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 19th, 2011, 10:34 pm 
Offline

Joined: May 3rd, 2009, 7:16 pm
Posts: 345
Location: OH, USA
3 bugs found in Splitter_Add function:

1. When options are parsed, Opt variable is not cleared or changed. resulting in options being duplicated over the same var.

Bug:
Code:
loop, parse, Opt, %A_Space%
   if A_LoopField in blackframe,blackrect,grayframe,grayrect,sunken,whiteframe,whiterect,sunken,center
      hStyle |= SS_%A_LoopField%
   else Opt .= A_LoopField " "
Gui, Add, Text, HWNDhSep -hscroll -vscroll %SS_CENTERIMAGE% %SS_NOTIFY% center %Opt% %hStyle%, %Text%   

Fix:
Code:
loop, parse, Opt, %A_Space%
   if A_LoopField in blackframe,blackrect,grayframe,grayrect,sunken,whiteframe,whiterect,sunken,center
      hStyle |= SS_%A_LoopField%
   else nOpt .= A_LoopField " "
Gui, Add, Text, HWNDhSep -hscroll -vscroll %SS_CENTERIMAGE% %SS_NOTIFY% center %nOpt% %hStyle%, %Text%

2. SS_CENTERIMAGE undefined and SS_CENTER using wrong value.

Code:
SS_CENTER=1
SS_CENTERIMAGE=0x200


3. Center is hard coded in the Gui, Add. This prevents some style options from working (blackframe, blackrect, grayframe, grayrect, whiteframe, whiterect). I think this is because these styles don't support text; which I would note in the documentation. SS_CENTER is already included in the hStyle loop options.

Bug:
Code:
Gui, Add, Text, HWNDhSep -hscroll -vscroll %SS_CENTERIMAGE% %SS_NOTIFY% center %Opt% %hStyle%, %Text%

Fix:
Code:
Gui, Add, Text, HWNDhSep -hscroll -vscroll %SS_CENTERIMAGE% %SS_NOTIFY% %Opt% %hStyle%, %Text%


Fixed function:
Code:
Splitter_Add(Opt="", Text="", Handler="") {
   static SS_NOTIFY=0x100, SS_CENTER=1, SS_CENTERIMAGE=0x200, SS_SUNKEN=0x1000, SS_BLACKRECT=4, SS_GRAYRECT=5, SS_WHITERECT=6, SS_BLACKFRAME=7, SS_GRAYFRAM=8, SS_WHITEFRAME=9

   hStyle := 0
   loop, parse, Opt, %A_Space%
      if A_LoopField in blackframe,blackrect,grayframe,grayrect,sunken,whiteframe,whiterect,sunken,center
         hStyle |= SS_%A_LoopField%
      else nOpt .= A_LoopField " "
   
   Gui, Add, Text, HWNDhSep -hscroll -vscroll %SS_CENTERIMAGE% %SS_NOTIFY% %nOpt% %hStyle%, %Text%   
   hSep+=0
   if IsFunc(Handler)
      Splitter(hSep "Handler", Handler)
   return hSep
}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 20th, 2011, 6:03 am 
Offline

Joined: September 15th, 2006, 10:25 am
Posts: 567
maul.esel wrote:
I'm not majkinetor, but this might be an example of appending standard icons


Thanks a lot for both the examples.
About the text part, i just want to show only some of the text, not all, and that too below the icons. I tried playing about with the options, but it seems this is not possible.

_________________
If i've seen further it is by standing on the shoulders of giants

my site | ~shajul | WYSIWYG BBCode Editor


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 20th, 2011, 12:59 pm 
Offline
User avatar

Joined: February 28th, 2011, 7:28 pm
Posts: 625
Location: Germany
I'm not exactly sure what you mean :?
This example shows a toolbar with text below the icons, without LIST or SHOWTEXT styles.
If the text is too long, it is displayed as hover tooltip:
Code:
#Include Toolbar.ahk
Gui Show, w600 h200
Gui +LastFound
HTB := Toolbar_Add(WinExist(), "", "tooltips") ; create toolbar with tooltips style only
Buttons=
   (
   button1
   button2
   button with a lot of text
   )
Toolbar_Insert(HTB, Buttons)
Toolbar_SetButtonWidth(HTB, 100) ; limit button width


Maybe this is what you're looking for...

Regards
maul.esel

_________________
RECOMMENDED: AutoHotkey_L
Image
github - ImportTypeLib
Win7 HP SP1 32bit | AHK_L U 32bit


Last edited by maul.esel on April 23rd, 2011, 10:49 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 20th, 2011, 2:14 pm 
Offline

Joined: September 15th, 2006, 10:25 am
Posts: 567
sorry i was not clear. but i was wondering if there is a way to show only text under some of the icons. all icons should not have text, only those selected with ShowText flag. This is possible with LIST style, but they show text on the side, not below the icon.

anyway, thanks.

_________________
If i've seen further it is by standing on the shoulders of giants

my site | ~shajul | WYSIWYG BBCode Editor


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 20th, 2011, 8:48 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Its possible - just don't set the text then.

2 Solar
Thx for bug reports and fixes.

Hugman wrote:
Another problem: the radio group can't be created automatically around as gui,add does.

Some stuff from regular AHK stop working when they are inside the Panel. They will require some alternative implementation. It looks like radio groups are one of them...


SomeGuest wrote:
Any chance that Forms will support animated gifs (with transparency) someday?

You have module for that by Philho on the forum. Just use it with framework or change it to be the same as other Forms plugins.

maul.esel wrote:
I'm not sure about how to do this. Is there a function I didn't see?

No, it just does that. Just open binary file to see.

Quote:
And is there a way to set syntax colors independant of the file extension? So, can i change the colors without changing the file extension? And what about unsaved files (without extension)?

No, its not possible.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 21st, 2011, 6:07 am 
Offline

Joined: September 17th, 2005, 6:43 pm
Posts: 242
Some of the functionality of the hiedit.dll script no longer works now that they updated autohotkey. I was wondering if there was a way to work around this or if I just need to re-install the older version of Autohotkey. Thanks


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 21st, 2011, 3:50 pm 
Offline
User avatar

Joined: February 28th, 2011, 7:28 pm
Posts: 625
Location: Germany
majkinetor wrote:
Just open binary file to see.

Oh, it seems I misunderstood this :oops: I thought you meant linefeeds, tabs and stuff like that :?
Do you know a way to show them or to simulate this?

Regards
maul.esel

_________________
RECOMMENDED: AutoHotkey_L
Image
github - ImportTypeLib
Win7 HP SP1 32bit | AHK_L U 32bit


Report this post
Top
 Profile  
Reply with quote  
 Post subject: cursor trouble
PostPosted: May 12th, 2011, 1:47 am 
Offline

Joined: February 6th, 2007, 12:30 am
Posts: 142
Location: Michigan
I've tried without success to get the cursor.ahk call to work so that I can set a wait cursor for my window. Can anyone provide a working example of the Ext_Cursor call? THANKS!

Code:
#include inc
#include Cursor.ahk
...
WinGet, handle, ID, A       
Ext_Cursor(handle, "wait") 

_________________
http://www.panofish.net


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 177 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10, 11, 12  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group