Search found 220 matches

by gwarble
08 Sep 2016, 20:10
Forum: Ask For Help
Topic: Programmatically add cursor resource to Exe/Dll with UpdateResource api?
Replies: 14
Views: 1102

Re: Programmatically add cursor resource to Exe/Dll with UpdateResource api?

I'm just going to add as much info as I can in the hopes someone knows what I'm doing wrong... I'll also edit out a couple bits of misinformation above (re: differing struct sizes between ico and cur) So far, I'm keeping it integer based for simplicity, once working it should be trivial to change to...
by gwarble
04 Sep 2016, 13:34
Forum: Scripts and Functions
Topic: Optical Zoom For The Web Browser Control
Replies: 4
Views: 658

Re: Optical Zoom For The Web Browser Control

works on Win XP SP3
by gwarble
03 Sep 2016, 13:44
Forum: Scripts and Functions
Topic: [Lib] SplitButton()
Replies: 16
Views: 2128

Re: [Lib] SplitButton()

cool, nice work... hButton_ was in there to save the hWnd from the initialization call into a static variable, so when the OnMessage call comes around the control's hWnd could be compared to the one initialized... since you are saving into a global class object its not really necessary, and my plan ...
by gwarble
02 Sep 2016, 18:08
Forum: Scripts and Functions
Topic: [Lib] SplitButton()
Replies: 16
Views: 2128

Re: [Lib] SplitButton()

Cool, yeah it might work well for your program, although its really more intended for the primary function acting like a button which might not apply but it wouldn't really hurt anything Just an FYI, this isn't really "my system", its a new button style in windows vista+ (common controls 6...
by gwarble
02 Sep 2016, 16:36
Forum: Scripts and Functions
Topic: [Lib] SplitButton()
Replies: 16
Views: 2128

Re: [Lib] SplitButton()

tmplinshi wrote:Nice! This is my trying by reading https://autohotkey.com/docs/commands/Gu ... htm#Custom:


Nice, thanks for sharing... Maybe this method can be used to create a "SizeGrip" control, which is really a ScrollBar class i believe, which I've been meaning to get working
by gwarble
01 Sep 2016, 13:00
Forum: Scripts and Functions
Topic: [Lib] SplitButton()
Replies: 16
Views: 2128

Re: [Lib] SplitButton()

Seemingly, this button can be realized as a Custom control rather simply, though you might need to specify the height in most cases. The most important advantage is, that you don't have to monitor WM_NOTIFY messages. Oh really? I haven't played around with Gui, Add, Custom... controls before. Not h...
by gwarble
31 Aug 2016, 20:36
Forum: Scripts and Functions
Topic: [Lib] SplitButton()
Replies: 16
Views: 2128

Re: [Lib] SplitButton()

Ahhh I love it. Thanks for sharing :) You're welcome... still needs improvement but might come in handy Hmmm, doesn't show any dropdown for me. I guess, it only supports 32 bit at the moment? Edit: Oh yeah, 32 bit works. Looks very useful. Thanks a lot! Oops, yeah I forgot to test on 64bit... shoul...
by gwarble
31 Aug 2016, 18:23
Forum: Scripts and Functions
Topic: [Lib] SplitButton()
Replies: 16
Views: 2128

Re: [Lib] SplitButton()

Oops, I left the "GetDlgItem" call hard coded to the 7th control from my example... need to fix that, gimme a minute (i guess i'll save (static var) the hCtrl from the initialization call and compare that way instead, maybe an array of hCtrl and its associated menu name in...
by gwarble
31 Aug 2016, 17:46
Forum: Scripts and Functions
Topic: [Lib] SplitButton()
Replies: 16
Views: 2128

[Lib] SplitButton()

http://www.gwarble.com/ahk/Screenshots/SplitButton.png Here's a proof-of-concept stdlib function for creating split buttons (drop down buttons). Needs more options built in (changing the glyph, styles, etc) but its a start... Enjoy A split button has a default action followed by a divider line and ...
by gwarble
22 Aug 2016, 01:27
Forum: Ask For Help
Topic: Gdip question, manipulate colors of image on DC
Replies: 0
Views: 201

Gdip question, manipulate colors of image on DC

Hey all, I'm trying to take an existing image on a DC and adjust its colors If i understand conceptually, i'm supposed to: 1) make a new memory device context 2) create a bitmap for the new DC 3) SelectObject that new bitmap into the new DC 4) BitBlt the contents of the original DC to the new memory...
by gwarble
19 Aug 2016, 18:06
Forum: Ask For Help
Topic: "Explorer" subclassed/themed Listview and TreeView controls, draw explorer style focus rectangle
Replies: 4
Views: 308

Re: "Explorer" subclassed/themed Listview and TreeView controls, draw explorer style focus rectangle

thanks man! that works for the drawing the rectangle (and for buttons!) now i think instead of drawing it on the window's DC i need to ownerdraw or customdraw the listview control, find the dc and rect where the rectangle would normally be drawn, prevent it, and DrawThemeBackground at that point htt...
by gwarble
19 Aug 2016, 15:46
Forum: Ask For Help
Topic: "Explorer" subclassed/themed Listview and TreeView controls, draw explorer style focus rectangle
Replies: 4
Views: 308

"Explorer" subclassed/themed Listview and TreeView controls, draw explorer style focus rectangle

Hey all, I recently discovered that you can use some of Windows' own classes for things to get your own guis to look more like windows explorer windows: SetWindowTheme(hListView, "ItemsView") ;or "Explorer" ;... SetWindowTheme(hwnd, str) { Return DllCall("uxtheme\SetWindowTh...
by gwarble
13 Aug 2016, 11:02
Forum: Ask For Help
Topic: AutoComplete() (using iAutoComplete2) crashes script/ahk sometimes
Replies: 60
Views: 4030

Re: AutoComplete() (using iAutoComplete2) crashes script/ahk sometimes

Well, would you provide an example? Otherwise I foresee questions like "I activated the SEARCH option, but nothing happens when I select it". there are any number of things you could do with the search string (in fact in my app i would just replace the "? " at the beginning of t...
by gwarble
13 Aug 2016, 03:03
Forum: Ask For Help
Topic: AutoComplete() (using iAutoComplete2) crashes script/ahk sometimes
Replies: 60
Views: 4030

Re: AutoComplete() (using iAutoComplete2) crashes script/ahk sometimes

Yeah but why not? Its easy enough to implement "a search engine to assist the user" however you define that, might as well include the option
by gwarble
12 Aug 2016, 15:03
Forum: Ask For Help
Topic: AutoComplete() (using iAutoComplete2) crashes script/ahk sometimes
Replies: 60
Views: 4030

Re: AutoComplete() (using iAutoComplete2) crashes script/ahk sometimes

I was using the function version, edited my response above to add it to the class version

also realized the predefined sources you are asking about aren't the same as the SHAutoComplete... i'll have to research these more
by gwarble
12 Aug 2016, 14:52
Forum: Ask For Help
Topic: AutoComplete() (using iAutoComplete2) crashes script/ahk sometimes
Replies: 60
Views: 4030

Re: AutoComplete() (using iAutoComplete2) crashes script/ahk sometimes

do you mean ACO_SEARCH? if so it works fine, adds the "Search for "typedstring"" to the end of the AutoComplete list, and if selected sends "? typedstring" to the combo box, just like in a windows explorer window when you start typing in the location box ( EDIT: for som...
by gwarble
12 Aug 2016, 13:01
Forum: Wish List
Topic: Request: Gui/Window style keyword for "NoIconButWithCloseButton"
Replies: 4
Views: 804

Re: Request: Gui/Window style keyword for "NoIconButWithCloseButton"

and didn't realize til now that the +0x10000000 call above was really just showing the gui I didn't think changing the style was actually sufficient to show the window, but apparently it is. In that case, you may as well use Gui Show. yup Does the ability to create window classes on the fly create ...
by gwarble
12 Aug 2016, 12:53
Forum: Ask For Help
Topic: AutoComplete() (using iAutoComplete2) crashes script/ahk sometimes
Replies: 60
Views: 4030

Re: AutoComplete() (using iAutoComplete2) crashes script/ahk sometimes

Nice, works well in Win7 and in XP without the "fault exception" i was getting on exit... @gwarble: The Escape key doesn't work for me! You're right, your sample doesn't work for me either... I had only tested it on a ComboBox (by using the following to get its edit control's hwnd): hedit ...
by gwarble
11 Aug 2016, 22:00
Forum: Wish List
Topic: Request: Gui/Window style keyword for "NoIconButWithCloseButton"
Replies: 4
Views: 804

Re: Request: Gui/Window style keyword for "NoIconButWithCloseButton"

ah i see, thanks for the explanation... i wasn't asking for the trick to be implemented (and know of no documentation regarding it save the trick from user TLM linked above), I wasn't aware that it was not a matter of Gui Styles or ExStyles at all but a conflict in that the class defined as AutoHotk...

Go to advanced search