AutoHotkey Community

It is currently May 27th, 2012, 12:37 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 177 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11, 12  Next
Author Message
 Post subject:
PostPosted: June 2nd, 2011, 12:23 pm 
Offline

Joined: August 25th, 2007, 9:25 pm
Posts: 110
How can I center a HLink control horizontally in a panel? I can only center it vertically with Align, B :(
Is there any chance to center it, without calculating the coordinates by myself?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 2nd, 2011, 1:17 pm 
"Gui, Font, q5" (CLEARTYPE_QUALITY) in Gui which has HLink control doesn't work; font is not antialiased. How to fix that?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 2nd, 2011, 8:05 pm 
Offline

Joined: August 25th, 2007, 9:25 pm
Posts: 110
majkinetor wrote:
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...

An UpDown control is not displayed in a panel as well. Unfortunately I haven't found a solution yet.

EDIT: Found a solution. Just do a
Code:
SendMessage, 1129, hWndEdit, 0,, ahk_id %hwndUpDown%
after creating all the controls.
Example:
Code:
hFormMain   := Form_New("w300 h200")
hPanel      := Form_Add(hFormMain, "Panel", "", "x10 y10 w100 h100")
hWndEdit    := Form_Add(hPanel, "Edit", "100", "x10 y10 w50 h50 r1")
hwndUpDown  := Form_Add(hPanel, "UpDown", "", "Range1-200")
SendMessage, 1129, hWndEdit, 0,, ahk_id %hwndUpDown%


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 29th, 2011, 3:54 pm 
Offline

Joined: May 16th, 2010, 2:38 pm
Posts: 185
hey, guys
have any of you used toolbar control from this lib?
i wonder, why the pressing toolbar button with ID=2 always call GuiEscape label?
Here is a slightly modified example from the included tests called _Multiple.ahk. Run it and try to press "paste" button:
Code:
#SingleInstance, force
   Gui, +LastFound
   hGui := WinExist(),
   Gui, Show , w410 h360 Hide      ;set gui width & height (mandatory)

   h1 := Toolbar_Add(hGui, "OnToolbar", "flat bottom nodivider", 1)
   h2 := Toolbar_Add(hGui, "OnToolbar", "flat", 2)
   h3 := Toolbar_Add(hGui, "OnToolbar", "vertical wrapable nodivider", 3, "x100 y120 w200 h150")

   btns =
      (LTrim
         cut
         copy
         paste,2,,,2
         ---
         undo
         redo
       )
   Toolbar_Insert(h1, btns)
   Toolbar_Insert(h2, btns)
   Toolbar_Insert(h3, btns)
   Toolbar_SetButtonSize(h3, 60)

   Gui, Show
return

GuiEscape:
   tooltip escape!
   return


OnToolbar(h,e,t,p,i){
   if e = hot
      return
   msgbox HWND %h%`nText: %t%
}

GuiClose:
   exitapp
return

#include ..\..\inc
#include _Forms.ahk


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 23rd, 2011, 6:23 pm 
Offline

Joined: March 10th, 2008, 12:55 am
Posts: 1907
Location: Minnesota, USA
(I deleted my original post in the Property topic to post here). here's the original post.
tidbits original post wrote:
I searched all 10 pages of the Forms Framework topic aswell as a simple forum search, could not see the issue posted.
I have also tried this download link and the Forms Framework samples and version 0.2.

In 1.02 I cannot get a Property Button and wideButton to work. however, they work in 0.2.
If I try to press a button slowly, nothing happens. if I double-click, it goes to a text-editing mode.
Am I missing something? I have tried all the included demos.

I have AHK 1.0.48.05 (AHK_L seems to have issues (only gets the first letter. comboboxes crash))
Latest Forms Framewor
WinXP sp3

ps: what did you do in here for the Color and Font items? it's not in the demo. is it just "for show" and the text is manually entered? or did you use Dlg?


anyways, I would like to state that I get the same issue with ragrid.
additionally, If I use AHKL (1.1.0.0) only the first letter of each 'cell' is shown. and ComboBoxes make the script crash with no errors. (both Property and Ragrid)

_________________
rawr. be very afraid
*poke*
Note: My name is all lowercase for a reason.
"I think Bigfoot is blurry, that's the problem. It's not the photographer's fault, Bigfoot is blurry. So there's a large, out-of-focus monster roaming the countryside."


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Errors!!!
PostPosted: September 25th, 2011, 4:36 pm 
Offline

Joined: November 29th, 2007, 3:29 pm
Posts: 100
Location: Québec Canada
Hi

Tks for all these functionalities.

I am getting errors from some of your demo scripts.
I have the latest AHK_L Version 1.1.4.0
Windows 7 (64)
Here is one example of a problem.
In script Controls.ahk.
When I execute it I get:
Error in Inlude file Splitter.ahk lline 54

FYI

Bat[/img]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 4th, 2011, 8:29 pm 
is it possible destroy a panel without destroying the form? And what about adding controls to a panel later, how to resize?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 14th, 2011, 1:08 pm 
Latest AHK_L

Image


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 7th, 2011, 2:33 am 
Offline

Joined: February 23rd, 2011, 5:03 am
Posts: 7
Log in wrote:
Latest AHK_L

Image

+1


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 15th, 2011, 10:43 am 
Image


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 15th, 2011, 10:56 am 
Offline

Joined: May 16th, 2010, 2:38 pm
Posts: 185
Hibernation Patrol
:lol:

just delete one DT_CALCRECT definition from that line

_________________
Crypt|QMsgBox|PUM|Quick Cliq|WinClipboard


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 3rd, 2011, 11:50 pm 
Offline

Joined: February 14th, 2005, 10:54 am
Posts: 447
Location: Texas, Usa
I am getting the same things for other modules.

From the toolbar mod:

Code:
Toolbar_onNotify(Wparam,Lparam,Msg,Hwnd) {
   static MODULEID = 80609, oldNotify="*"
   static NM_CLICK=-2, NM_RCLICK=-5, NM_LDOWN=-20, TBN_DROPDOWN=-710, TBN_HOTITEMCHANGE=-713, TBN_ENDDRAG=-702, TBN_BEGINADJUST=-703, TBN_GETBUTTONINFOA=-700, TBN_GETBUTTONINFOAW=-720, TBN_QUERYINSERT=-706, TBN_QUERYDELETE=-707, TBN_BEGINADJUST=-703, TBN_ENDADJUST=-704, TBN_RESET=-705, TBN_TOOLBARCHANGE=-708, TB_COMMANDTOINDEX=0x419
   static cnt, cnta, cBTN, inDialog, tc=0


It calls a duplicate error on "TB_Querydelete = -707". I'd delete one, but it's the ONLY one.

_________________
my lame sig :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 10th, 2011, 12:41 am 
Offline

Joined: November 14th, 2008, 1:45 am
Posts: 80
Location: USA
When adding a wrapable, attached toolbar via the Toolbar_Add() function rather than the Form_Add() function, how can I make the height of the toolbar expand as the icons drop down to multiple rows as the width of the parent GUI is decreased?

TIA,
Sam.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 12th, 2011, 9:46 pm 
Offline

Joined: November 14th, 2008, 1:45 am
Posts: 80
Location: USA
This is the GUI that I am replicating:
Image
When the 256 color bitmap is loaded, the palette is displayed bottom center where each of the colors is its own button that can be left, right, or double clicked. What type of control(s) should I use to create this?

TIA,
Sam.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 12th, 2011, 10:14 pm 
Offline

Joined: October 13th, 2009, 10:09 pm
Posts: 1389
I suggest using the gdip framework and drawing it manually. You can get the coordinates of a click event on the GUI and act accordingly.


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 ... 7, 8, 9, 10, 11, 12  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: rrhuffy and 1 guest


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