Jump to content

obrienj

Active Members
  • Posts

    47
  • Joined

  • Last visited

obrienj's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I have two GUIs, one the "main" GUI and the other defined as a child of the "main" gui using the "parent" parameter in the GUICreate for the child. I also used the style $WS_POPUP and the extended style $WS_EX_MDICHILD in the child definition. If I want to show and hide them together (as one, if you will) must I do that by doing a GuiSetState on each one or is there a way to make both show/hide together. Regards, Jim
  2. Thank you. Unfortunately this is one of several similar approaches I have experimented with and, like you, I do get a shadow. However, the one of the issues I am having is with the following line: $hFont = _WinAPI_CreateFont(65, 0, 0, 0, $FW_NORMAL, 0, 0, 0, $DEFAULT_CHARSET, $OUT_DEFAULT_PRECIS, $CLIP_DEFAULT_PRECIS, $ANTIALIASED_QUALITY, BitOR($DEFAULT_PITCH, $FF_DONTCARE), 'Arial') This is a "skinning" application and the only font size information I have is what the font is to be , eg., "Arial size 16" like the GUISetFont shows, but the illustrated line requires a font height and I can't find a way to get from one to the other other than a WAG. I also encountered another issue with the text color in the "_WinAPI_DrawShadowText" call. If I specify total black 0x00000000, I get no shadow. However, if I specify 0x00000001, I get "black" and the requested shadow. But I can live with that by simply changing any black text color request to 0x00000001. However, the font size is a problem. Again thanks. Regards, Jim
  3. Given the code fragment below (assume all the pre-requisites are in-place), how do I shadow the text in the label? I have searched and done some experimenting but I can't seem to get what I want, the text "Button" shadowed. The code fragment is: GUISetFont(16, 800, 0, "Arial") $cLabel3 = GUICtrlCreateLabel("Button", 200, 140, 220, 50) GUICtrlSetBkColor($cLabel3, $GUI_BKCOLOR_TRANSPARENT) Regards, Jim
  4. If anyone is watching this topic, I have a couple of questions about using _CreateShadowTextBitmap and, I guess by indirection _WinAPI_DrawShadowText, If I use a text color of 0x00000000, I get black text but NO shadow regards less of what color I use for the shadow. However, if I set text color to 0x00000001, then I get "black" text with the shadow I specify. Anyone know why?My application gets a font size in the normal external format, ie. 12, 14, 16, etc. but the _WinAPI_CreateFont takes a font height and font width. Is there a formula, function, or WAG as how to produce font height from font size?Regards,Jim
  5. UEZ, Thank you. I think I have what I need. Regards, Jim
  6. I tried the change you suggested and I still get the picture from the Internet in the picture area with the two labels on top. I noticed that $LOGO is still gotten from the Internet and that the line _SetImageBinaryToCtrl($picbox, $LOGO) still references the image from the Internet and that is what is displayed. I tried changing $LOGO to $hImage in that line and got a gray picture area. I also verified that the image file exists and is a valid .png file by loading it into MS Paint from the location I used. Could I trouble you to give me some additional help? Regards, Jim
  7. In the example the image is gotten from the internet. I have a file on my hard disk named 'myimage.png'. I would like to display it in a Picture control . The example looked like a way to do that but I'm not familiar enough with GDP+ and the other graphics support to make the modification from the example to what I wish to do, display a .png file in a Picture control or any other control. Any help would be greatly appreciated. Regards, Jim
  8. Hate to ask, but could someone modify this example to show how this would be done if the source image is in a file, e.g., myimage.png Regards, Jim
  9. I have a 1412 line script with about 20 includes. On rare occasions Autoit pops an error message box telling me that an "array index is out of range" or some such and terminates the script just as it should. However, the error message references line 9216 which I guess is a line in my code after all of the includes are pre-pended. Is there a way to either (1) save the intermediate source (after includes are resolved), (2) dis-assemble the .exe to see all lines of code, or something else so I can see exactly where the error is. Regards, Jim
  10. Actually I tried just what you suggest and it doesn't seem to work. Assuming (1) the control name is "Edit" and the instance is 1 and "CtlHwnd" its valid handle is in the form "[HANDLE:cccccccc]". (2) the variable "WinHwnd" contains valid window handle in the form "[HANDLE:wwwwwwww]" I tried the following in C#: AU3_ControlFocus(WinHwnd, "", CtlHwnd, sbArea, 32); nothing happens. However, if I use the following everything works fine: AU3_ControlFocus(WinHwnd, "", "[CLASSNN:Edit1]", sbArea, 32); But, I already have the control handle and would like to use it directly. Does the [HANDLE:xxxxx} construct exist in AutoIt for Control ids as it does for Window titles? If not, how does one forward a request to the developers to add such construct? Regards, Jim
  11. I am drawing a blank as to how to process the subject file in AutoIt. I know how to do it in C but I don't have a compiler available right now. I have a file that is made up of variable length elements that have a single byte binary length followed by that length of displayable characters. For example: 0x053132333435024142 which should yield "12345" and "AB" I need to "walk the file" extracting all of the individual displayable data. Any one have an example of how to do this? I am getting all wound up with reading the file in binary, BinaryToString ..... Regards, Jim
  12. trancexx, Thank you. I knew it had to be there somewhere. Regards, Jim
  13. Anybody have an example of calling a function via the contents of a variable. That is, if I have the following: local $vara $vara = Foo ; ????? what is the form of the invocation of Foo using the variable and passing a parameter ????? Func Foo($parm) ; do something with $parm return(-1) EndFunc The question is: what is the form of the invocation of Foo using the variable and passing a parameter I tried: $rc = $vara("data") but I got syntax errors. I know how to do this in C, C++, Java and C#, but I can't seem to get it in Autoit. I have a rather large project where doing this is a requirement. Regards, Jim
  14. I don't have IE installed on my machine, I use FireFox. The AutoIt doc says that IE 3 or later must be installed to use InetGet. How can I do what InetGet does without IE installed? Regards, Jim
  15. Many thanks, I am off to try the tool. EDIT: It works great, again thanks for the pointer Regards, Jim
×
×
  • Create New...