News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Toolbar tooltips

Started by xandaz, August 13, 2020, 05:49:35 AM

Previous topic - Next topic

xandaz

   Hey guys. Anyone have an example of toolbar tooltips. Cant get the tooltip to show.
   Thanks in advance

jj2007

In case you have the latest MasmBasic version: \Masm32\MasmBasic\Res\SimpleEditor.asc

In multiple languages :cool:

mineiro

hello sir xandaz;
I remember of playing with this in old board; you can find a lot of examples.
Not sure if helps:
http://www.masmforum.com/board/index.php?topic=16671.0
I'd rather be this ambulant metamorphosis than to have that old opinion about everything

xandaz

   thanks guys. JJ the attachment is invalid.

jj2007

Quote from: xandaz on August 13, 2020, 07:59:58 PM
   thanks guys. JJ the attachment is invalid.

It's a fake zip to attach an image. With a MasmBasic installation, the source is at \Masm32\MasmBasic\Res\SimpleEditor.asc, as indicated above.

Attached the exe and the source. Use the menu entry Language to test it. To build the editor, you need some extra resources (attached); copy them to the folders indicated in the Rsrc section at the end of SimpleEditor.asc (this is kind of silly, it should be included in the MasmBasic package, but I am at the 512kB limit, so I had to sacrifice some files...)

xandaz

  ty JJ. you guys are the best.

TouEnMasm

Hello,
When you can't view the tooltip , suspect one thing : the structures.
Get the size of the structure,you can also ,with debug ,view wich size the program wait for the structure.
Most often,a normal structure with a correct alignment,made the job.
It is true for all the common controls and particulary for the tooltip.

Quote
;sdk
TTTOOLINFOA   STRUCT DEFALIGNMASM
   cbSize DWORD ?
   uFlags DWORD ?
   hwnd HWND ?
   uId XMASM ?
   rect RECT <>
   hinst HINSTANCE ?
   lpszText XMASM ?
   lParam LPARAM ?
IF ( NTDDI_VERSION GE  NTDDI_WINXP)
   lpReserved XMASM ?
ENDIF
TTTOOLINFOA      ENDS

;windows.inc actual
TOOLINFOA STRUCT
  cbSize             DWORD      ?
  uFlags             DWORD      ?
  hWnd               DWORD      ?
  uId                DWORD      ?
  rect               RECT      <>
  hInst              DWORD      ?
  lpszText           DWORD      ?
  lParam             LPARAM     ?
TOOLINFOA ENDS

If you have WinXp,you are not concerned by the problem


Fa is a musical note to play with CL