Recent Posts

Pages: 1 ... 8 9 [10]
91
EZGUI 5 support forum / Re: test posts
« Last post by Chris Boss on January 11, 2022, 03:45:04 pm »
Here is an include file which has a library of routines that makes working with tooltips easy.

ezttip.inc

Code: [Select]
&' Note: You define the following function in your main apps code:
DECLARE FUNCTION DefineToolTipText(BYVAL hDlg&, BYVAL IDNum&) AS STRING

&' *************************************************************
&' EZGUI Freeware ToolTip Library !!!
&' -------------------------------------------------------------
&' Copyright 2005, Christopher R. Boss, All Rights Reserved !
&' This source code is offered as freeware. You may use it
&' Royalty free, but you must maintain this copyright notice
&' with the code. No warranty made !
&' Provided by Computer Workshop.
&' http://ezgui.com , also http://cwsof.com
&' *************************************************************
GLOBAL g_ToolTipText AS ASCIIZ*1024
&'
FUNCTION CreateDlgToolTip(BYVAL hDlg&, BYVAL MaxWidth&, BYVAL TextColor&, BYVAL BGColor&) AS LONG
  LOCAL WS&, EWS&, CName AS ASCIIZ*32, hCtrl&
  WS&=%WS_POPUP OR %TTS_ALWAYSTIP OR %TTS_BALLOON
  EWS&=%WS_EX_TOOLWINDOW
  CName=$TOOLTIPS_CLASS
  hCtrl&=CreateWindowEx(EWS&, CName,"", WS&,0,0,32,32,hDlg&,0,GetModuleHandle(BYVAL %NULL), BYVAL %NULL)
  SendMessage hCtrl&, %TTM_SETMAXTIPWIDTH, 0, MaxWidth&
  SendMessage hCtrl&, %TTM_SETTIPTEXTCOLOR,TextColor&,0
  SendMessage hCtrl&, %TTM_SETTIPBKCOLOR, BGColor&,0
  FUNCTION=hCtrl&
END FUNCTION
&'
SUB AddTool(BYVAL hToolTip&, BYVAL hDlg&, BYVAL IDNum&)
  LOCAL TT AS TOOLINFO, hCtrl&, RV&
  CONTROL HANDLE hDlg&, IDNum& TO hCtrl&
  IF hCtrl&<>0 THEN
  TT.cbSize=SIZEOF(TT)
  TT.uFlags=%TTF_IDISHWND OR %TTF_SUBCLASS
  TT.hwnd=hDlg&
  TT.uId=hCtrl&
  &' TT.rec=
  TT.hinst=GetModuleHandle(BYVAL %NULL)
  TT.lpszText=%LPSTR_TEXTCALLBACK
  TT.lParam=0
  RV&=SendMessage(hToolTip&, %TTM_ADDTOOL,0, VARPTR(TT))
  END IF
END SUB
&'
FUNCTION GetClassType(BYVAL hCtrl&) AS STRING
  LOCAL zC AS ASCIIZ*33, X&
  X&=GetClassName(hCtrl&, zC,32)
  FUNCTION=zC
END FUNCTION
&'
FUNCTION MKCRLF(BYVAL T$) AS STRING
  REPLACE "|" WITH CHR$(13)+CHR$(10) IN T$
  FUNCTION=T$
END FUNCTION
&'
FUNCTION TestForToolTip(BYVAL hDlg&, BYVAL Msg&, BYVAL wParam&, BYVAL lParam&) AS LONG
  LOCAL RV&, pNM AS NMHDR PTR, pTT AS NMTTDISPINFO PTR
  LOCAL hCtrl&, hTipTool&, IDNum&
  RV&=0
  IF Msg&=%WM_NOTIFY THEN
  pNM=lParam&
  hCtrl&=@pNM.hwndFrom
  hTipTool&=@pNM.idfrom
  IF GetClassType(hCtrl&)=$TOOLTIPS_CLASS THEN
  IF @pNM.code=%TTN_NEEDTEXT THEN
  pTT=lParam&
  IDNum&=GetDlgCtrlID(hTipTool&)
  &' this method is limited to 80 characters
  &' @pTT.szText=left$(DefineToolTipText(hDlg&, IDNum&),79)
  &' this method is limited to size of my global variable !
  g_ToolTipText=MKCRLF(DefineToolTipText(hDlg&, IDNum&))
  @pTT.lpszText=VARPTR(g_ToolTipText)
  RV&=1
  END IF
  END IF
  END IF
END FUNCTION

&' *************************************************************
&' End ToolTip Library
&' *************************************************************
&'
92
EZGUI 5 support forum / test posts
« Last post by Chris Boss on January 11, 2022, 03:44:55 pm »
This is for testing my repost efforts of previous forum.

This is just for testing the format of the text I convert.
93
Advanced EZGUI / About this forum
« Last post by Chris Boss on January 11, 2022, 12:57:27 pm »
This forum is for posting source code, explanations and having discussions about more advanced tasks using EZGUI 5.0 Professional.

It is my experience that most EZGUI users have not even barely tapped into the more advanced features found in EZGUI.

The purpose of this sub-forum is to help EZGUI users push EZGUI 5 to its limits.

I am currently doing custom app development for clients using PB10/EZGUI 5 and I myself am learning how to push EZGUI to its limits.
94
General Discussion / Registration on new forums
« Last post by Chris Boss on January 10, 2022, 12:02:38 pm »
Sadly I lost much of the data from my old forums because of problems trying to upgrade the old forum. Had to resort to a clean install of the latest version of the forum software, but have not been able to import in all the old data (I may be able to get some of the data reposted in future for for now can't).

This means if you were registered on the old forums you need to request registration all over again for the new forums.

Just send me an email and ask to be registered on the new forums to:

chrisboss@centurylink.net

or

support@cwsof.com

The first email address above gets to me quicker.

I need your User Name (real names required) and email address for the account.
95
EZGUI 5 support forum / So where does EZGUI go from here ?
« Last post by Chris Boss on December 02, 2021, 04:41:34 pm »
Will there be an EZGUI 6.0 ?

Maybe.

So what have I been doing since the release of EZGUI 5.0 Pro and does EZGUI have a future ?

EZGUI definitely has a future as long as 32 bit Windows app are supported by Windows.

I have tested a few EZGUI apps on Windows 11 and just as expected it works very well. So EZGUI should have a good future for at least as long as Windows 11 exists and Windows 64 bit can still run 32 bit apps.

Why no new version of EZGUI yet ?

One thing is that EZGUI 5.0 is so feature rich there is not a lot missing in it. IMO most EZGUI users have not tapped into the raw power found in the EZGUI engine. But I have !

For the last 2 years I have been working on custom programming applications for clients, using EZGUI 5.0 Pro (and Powerbasic 10).  I am finding so many ways to push EZGUI far beyond what most users likely are doing. For one I have really pushed the limit of using Ownerdraw and more and more I am finding ways to solve all sorts of problems.

How about writing an application that can change the user interface into different languages ?

(See the picture attached to this post.)

Using Ownerdraw and a few extra WIN32 API calls I have been able to create an app which can switch between multiple languages. I used PB Forms and wrote a simple "Language" editor to define templates for different languages and then in the actual app I used ownerdraw controls and could switch between languages dynamically. Now of couse EZGUI does not support Unicode yet, but for non-Unicode languages you could use existing EZGUI controls. The app I wrote only needed other languages for buttons and labels, so I could support unicode using the WIN32 API and ownerdraw.

Ownerdraw is extremely powerful and probably under used in Windows apps.  The point is that by tapping into the more low level engines in EZGUI you can do some amazing things. How about 3D buttons (ownerdraw) with transparent images on them. All sorts of things are possible.

One of the things I need to do here on the forums is to start teaching EZGUI users how to tap into many of these low level engines in EZGUI.

So look for upcoming updates on these forums with ideas of how to push EZGUI 5.0 to the limit.

96
EZGUI 5 support forum / Good News about EZGUI 5.0 on Windows 11
« Last post by Chris Boss on November 06, 2021, 01:01:43 pm »
Just updated one of my PC's to Windows 11.

EZGUI is looking good so far, running on Windows 11.

Always worried about a new version of Windows breaking ones apps, but so far it appears that EZGUI runs fine on Windows 11.

Not an extensive test by any means, but tested a number of features in EZGUI such as Sprites, OpenGL 3D, Visual Designer, window regions, ownerdraw and more.
97
EZGUI 5 support forum / Re: Unselect in Listview
« Last post by Brian Reynolds on September 27, 2021, 02:15:15 am »
Chris,
Thank you for your help.
I used "{S}}" and that worked
Thanks.
P.S.: I noted that somewhere it said my age was N/A. (It's 85).
At first I thought it meant "Not ageing"
Regards,
Brian Reynolds.
98
EZGUI Pre-Purchase Questions answered / Common questions about EZGUI before purchase
« Last post by Chris Boss on September 24, 2021, 08:11:33 am »
In this post I will mention a number of common questions new users may have before purchasing EZGUI 5.0 Professional:

(1) What compilers does EZGUI work with ?

EZGUI was designed for use with the Powerbasic Windows compilers. It should work with nearly any of their Windows compilers such as PB 6.x, 7.x, 8.x, 9.x and 10.x

While not designed for them, it is possible to use EZGUI with the Powerbasic Console compilers as well, but it will require a little "tweaking" to do so. If the Console compiler supports a command to turn off the default console window, you will have to manually add that command to your apps code each time you compile it. I can also provide an old utility app (which came with EZGUI 4.0) you can use which can modify the compiled EXE after compiling (needs to change a single byte in EXE header).

It is recommended though to use the Powerbasic Windows compilers.

(2) Will EZGUI work with any other programming languages ?

In theory if could, but the biggest problem is that most programming languages use a C like string type for variable length strings.

Powerbasic uses the WIN32 OLE API's for variable length strings which is what the EZGUI run time API's expect.

The EZGUI runtime is a standard DLL (32 bit) so it can be accessed by any programming language, but because of the OLE string issue most languages may be able to work properly with it.

Also the include files for EZGUI are for Powerbasic compilers only and would have to be converted for another language.

(3) Will EZGUI 5.0 work on Windows 10 ?

YES.  EZGUI was designed using core WIN32 API's which make it extremely compatible with most versions of Windows, including new ones.

Because of this it can run on Windows 98, ME, Vista, XP, 7, 8 and 10 !

EZGUI knows what version of Windows it is running on and adjusts to it. Some features are simply turned off on Windows 98, ME and Vista. About 95% of the feature set works on those older versions. From Windows XP and on , all of EZGUI's features are active.

The OpenGL Canvas control in EZGUI requires that the core OpenGL drivers are installed for that to work. Most PC's support OpenGL so that should not be a problem.

(4) How large is the EZGUI runtime ?

The primary runtime DLL is only about 700 KB in size. There are a few other secondary runtime DLLs (ie. OpenGL Canvas control) and when using them the entire runtime is about 1 megabyte in size. The entire runtime can fit on an old fashioned floppy disk.

(5) Does EZGUI have a Form Editor ?

Yes, EZGUI 5.0 has its own Visual Designer (Form Editor). It does not though have a code editor built in. Instead it uses what I call a "Smart Parser" technology which let's you use the Designer with any compatible external code editor when generating code. The Smart Parser literally rewrites your source code when forms have been modified, each time you generate code. This allows a seamless integration between the Designer and your favorite code editor.

To be compatible the code editor needs to be compatible with the Powerbasic compiler and also support the passing of a filename to the command line. That is all.

(6) How much does EZGUI 5.0 Professional cost ?

Currently as of  9/24/2021 the price is only $39 and I don't expect it to change anytime soon.

EZGUI 5.0 originally sold for $249 when it was released and even at that price was worth every penny.

At the current $39 it is a real deal.

(7) Do I still get the same quality tech support if I buy EZGUI at your highly discounted price ?

Absolutely ! I provide the same tech support to all EZGUI users.



99
EZGUI 5 support forum / Re: Unselect in Listview
« Last post by Chris Boss on September 21, 2021, 08:39:16 pm »
You can change a listview items "state" by using the EZ_SetLVItem command using just the "{S}" (state) property.  You pass an additional S for Selected (otherwise unselected) and F for Focus (otherwise no focus. The property string would be:

"{S}"

to turn off both selected and focus state

"{S}SF"

to turn ON both selected and focus state
100
EZGUI 5 support forum / Re: Unselect in Listview
« Last post by Chris Boss on September 21, 2021, 08:33:16 pm »
There are different approaches I can think of.
The easiest would be to simply use a Global variable and store the last selected item index. The user need not click the same item again to move the data.

Add a button which which is used for the event to Move the data.

If you want to move the data by clicking on the listview use the double click event instead.

Another trick would be to subclass the control and process the %EZ_LButtonDown message and calculate which item it is clicked on.
Pages: 1 ... 8 9 [10]