AutoHotkey Community

It is currently May 25th, 2012, 9:08 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 157 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 11  Next
Author Message
 Post subject:
PostPosted: April 29th, 2007, 5:30 pm 
would you know how to do print, page setup, or print preview dialogs?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 30th, 2007, 1:37 am 
Offline

Joined: October 1st, 2005, 9:55 pm
Posts: 772
Location: Texas, USA
jballi wrote:
v1.2.2

Minor bug. The ChooseColor function modifies the value of the pColor parameter even if the Cancel button is clicked.


v1.2.3

Same problem with the idx parameter on the ChooseIcon function.


Edit: Also the pColor parameter on the ChooseFont function.

I'm just reporting these as I'm finding them. You might want to check all parameters on all functions...

Thanks.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 30th, 2007, 8:35 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Jballi wrote:
I'm just reporting these as I'm finding them. You might want to check all parameters on all functions...

I will check them. U are demanding user :D


Guest wrote:
would you know how to do print, page setup, or print preview dialogs?
Sure.


Thx

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 30th, 2007, 8:55 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
v1.24

- Fixed bugs reported by jballi
- Added pEffects parameter to ChooseFont. Set it to false to disable effects. Currently documented only in source code. For instance:

Code:
ChooseFont( font := "Courier New", style := "s16 bold underline italic", color:=0x80, false)



Thx jballi, your tests and ideas made those functions much better.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 1st, 2007, 4:32 am 
Offline

Joined: October 1st, 2005, 9:55 pm
Posts: 772
Location: Texas, USA
Thanks for making the fixes. Updates are appreciated.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 2nd, 2007, 2:41 am 
Offline

Joined: October 1st, 2005, 9:55 pm
Posts: 772
Location: Texas, USA
v1.24

ChooseIcon function does not appear to be working. The idx is always set to 1 or lastIdx+1. Was working in v1.23.

Thanks.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 20th, 2007, 12:51 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
New version 2.0

    - Fixed bug with ChooseIcon returning wrong index
    - Removed dependencies to InsertExtractInteger
    - Added About function
    - Added CmnDlg prefix to each function. File is now named CmnDlg.ahk and you can put it in StdLib

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 20th, 2007, 2:57 pm 
any chance for a print dialog in the near future, or is that possible?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 20th, 2007, 3:42 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Quote:
any chance for a print dialog in the near future

Who knows. I do things as I need them.

Quote:
is that possible

Yes.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 26th, 2007, 12:58 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Documentation updated

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 16th, 2007, 1:23 pm 
Offline

Joined: November 24th, 2005, 8:16 am
Posts: 851
Hello majkinetor,

Just wanted to drop a quick thanks for this script.
Helps me a lot.

So, thanks a lot.= for a nicely done script.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 4th, 2007, 11:30 am 
Offline

Joined: April 22nd, 2007, 6:33 pm
Posts: 1832
yes very nice work! i love this.....small errors were present though, so ive fixed them:

Code:
CmnDlg_ChooseIcon(ByRef sIcon, ByRef idx, hGui=0)
{     
   global      

    VarSetCapacity(wIcon, 1025, 0)
    If sIcon
    {
        R := DllCall("MultiByteToWideChar", "UInt", 0, "UInt", 0, "Str", sIcon, "Int", StrLen(sIcon), "UInt", &wIcon, "Int", 1025)

        If !R
      Return False   
    }
   
   idx--
   R := DllCall(DllCall("GetProcAddress", "Uint", DllCall("LoadLibrary", "str", "shell32.dll"), "Uint", 62), "uint", hGui, "uint", &wIcon, "uint", 1025, "intp", idx)
   idx++
   
   If !R
   Return False

   Len := DllCall("lstrlenW", "UInt", &wIcon)
   VarSetCapacity(sIcon, len, 0)
   R := DllCall("WideCharToMultiByte" , "UInt", 0, "UInt", 0, "UInt", &wIcon, "Int", len, "Str", sIcon, "Int", len, "UInt", 0, "UInt", 0)

    If !R
   Return False

    Return True
}


Edit: I've just read through the posts....and saw the whole idx thing, but it was still not fixed. Im not complaining or anything. I think youve done great work here. the code ive posted above should fix the issue


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 4th, 2007, 12:56 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
There is no error , just index is 1 based, not 0 based.
You can check out the example on the first page.

Thx for good words.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 4th, 2007, 1:04 pm 
Offline

Joined: April 22nd, 2007, 6:33 pm
Posts: 1832
Ok yeh ive just tested it. youre right....it was fixed, i only had a quick look and it didnt look like it was fixed at a glance. keep up the good work!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 15th, 2007, 4:56 pm 
Offline

Joined: April 22nd, 2007, 6:33 pm
Posts: 1832
Sorry to contradict my previous pst, but it's not fixed. The following fixes it:

Code:
CmnDlg_ChooseIcon(ByRef sIcon, ByRef idx, hGui=0)

   global
                             
    VarSetCapacity(wIcon, 1025, 0)
    If sIcon
    {
        R := DllCall("MultiByteToWideChar", "UInt", 0, "UInt", 0, "Str", sIcon, "Int", StrLen(sIcon), "UInt", &wIcon, "Int", 1025)

        If !R
        Return False
    }
   
   idx--
   R := DllCall(DllCall("GetProcAddress", "Uint", DllCall("LoadLibrary", "str", "shell32.dll"), "Uint", 62), "uint", hGui, "uint", &wIcon, "uint", 1025, "intp", idx)
   idx++
   If !R
    Return False

   Len := DllCall("lstrlenW", "UInt", &wIcon)
   VarSetCapacity(sIcon, Len, 0)
   R := DllCall("WideCharToMultiByte", "UInt", 0, "UInt", 0, "UInt", &wIcon, "Int", len, "Str", sIcon, "Int", len, "UInt", 0, "UInt", 0)

    If !R
    Return False
 
    Return True
}


I can give you an example another day if my reasoning for it not working isnt clear. thanks for making such a good function!

There is also another error when you try to load a standalone .ico then it will give an error message. it will however still correctly load the ico, but the error message is annoying


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 157 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 11  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher and 17 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