Recent Posts

Pages: 1 ... 4 5 [6] 7 8 ... 10
51
EZGUI 5 support forum / Re: Sprite Problem
« Last post by Chris Boss on December 16, 2022, 10:00:22 pm »
EZ_TestSpriteClick does not work the way you think.

The X& and Y& parameters are not return values, but are passed BYVAL telling the function where the coordinates to test are.

In the Canvas control's %EZ_Click event you have to call first:

EZ_GetCanvasXY

to get the coordinates for the last mouse click.

Then you can pass them to EZ_TestSpriteClick to see if the click occurred on a sprite.

52
EZGUI 5 support forum / Sprite Problem
« Last post by Brian Reynolds on December 16, 2022, 02:11:37 am »
I've struck a problem with Sprites. Using the following code, I get nothing for the Sprite name and a zero of each of the X& and Y&.
I am running Windows 11.

      CASE %EZ_Click
         a$ = EZ_TestSpriteClick("Form1", %Form1_Canvas1, X&, Y&)
         MSGBOX a$ +STR$(X&)+STR$(Y& )

Can you offer help?
53
EZGUI 5 support forum / Re: Strange event
« Last post by Brian Reynolds on November 18, 2022, 12:32:24 am »
I have managed to fix this and many other strange events I was experiencing.
I bought a new computer running Windows 11 -- Much faster, nothing strange.
Thanks to all who offered their support.
54
EZGUI 5 support forum / Re: DateTime control
« Last post by Chris Boss on August 27, 2022, 11:49:44 am »
The %EZ_Loading event occurs just "before" the control is created, so you can't use any commands which expect the control to exist in this event.

EZ_DefCalendarExColors

will fail in %EZ_Loading because the control does not exist yet.

The event %EZ_Loaded (ends in ed rather than ing) occurs right after the control is created, but before it is visible, so you can make calls to commands
which expect the control to exist in this event.

EZ_DefCalendarExColors should work fine in the %EZ_Loaded event !

Any command which has parameters for the form name and control ID, must be called only after the control is created and exists.

%EZ_Loading serves the purpose of changing control creation parameters for a control before it is created and for calls to EZGUI commands which have to be called before a control is create (ie. EZ_Color, EZ_UseFont).

Internally in all control creation commands it works this way:

{Control Creation Command}
  • Generate %EZ_Loading event if flagged to do so by a previous EZ_AllowLoadingEvent command
  • Modify any control creation parameters if changing in %EZ_Loading event using EZ_SetLoadStr or EZ_SetLoadVal commands
  • Create Control
  • Generate %EZ_Loaded event

By understand the sequence EZGUI uses when creating controls you will know what you can do in each of the events, %EZ_Loading and %EZ_Loaded

Forms work the same way, but also have a third event called:

%EZ_Started

which occurs after the form is created, all the controls are created and the form is now visible




55
EZGUI 5 support forum / Re: DateTime control
« Last post by Leroy Hindman on August 27, 2022, 08:20:35 am »
Chris I couldn't get even the calendar to change under the EZ_Loading event but it does change the calendar only under the EZ_Loaded event.  The EZ_DefCalendarExColors doesn't work under the EZ_Loading event either.  I know the definition of EZ_SetColor says the control has to be created before it can have the color set.  I never did get the bar where the date displays to change colors.
56
EZGUI 5 support forum / Re: DateTime control
« Last post by Chris Boss on August 26, 2022, 09:32:07 pm »
The Visual Designer does not allow you to select colors for the Date Time control.

The reason I made it that way is likely because the control does not support defining colors.

You can select the option:  "Allow %EZ_Loading Event"

and the control will get the %EZ_Loading event just before EZGUI creates the control.

You can define different colors in this event using EZ_Color, but if it does not chnage color it is because Windows Themes does not allow the control to use colors.

This may though call EZ_DefCalendarExColors in this event to set the colors for the Calendar part of the DateTime control.

EZ_SetAttr (attributes:  BColor and TColor) can be called at any time but again I believe it only sets the colors for the drop down calendar part of the DateTime control.



 
57
EZGUI 5 support forum / Re: DateTime control
« Last post by Leroy Hindman on August 26, 2022, 10:02:02 am »
If anyone know how to do this reply to me it doesn't have to be Chriss himself that answers.  I am sorry I didn't word this better and ask for everyone's help.  I would appreciate any help at all and thank you ahead.
58
EZGUI 5 support forum / DateTime control
« Last post by Leroy Hindman on August 25, 2022, 02:44:47 pm »
Dear Chriss

I am using a DateTime control on a dialog and would like to color it.  I can color the calendar that opens up by using EZ_SetColor but it does nothing to the bar where the date goes, can this part of the controls color be set and if so what must I do to set it.

Thank You
Leroy Hindman
59
EZGUI 5 support forum / Re: Strange event
« Last post by Brian Reynolds on July 06, 2022, 07:14:26 pm »
Thank you for your reply, Frank.
I've reinstalled PB10 for the umpteenth time and it's running okay at present.
The next time I have a problem I shall carry out your recommendation.
I am running Reimage (Restoro) as a Virus checking programme.
Kind regards,
Brian Reynolds.
60
EZGUI 5 support forum / Re: Strange event
« Last post by Frank Kelley on July 06, 2022, 08:12:32 am »
Brian:

Do you have any other third-party applications running in the background (e.g., security-type programs)? I use MalwareBytes on my PC (great program) but from time to time I get a compile error and the compilation aborts. This can happen even compiling when no changes to the source have been made.

After much, much trial and error, I've traced this issue to MalwareBytes' "Ransomware Protection" feature. Now, whenever a compile error of this nature occurs, I disable the "Ransomware" protection option and compiling is then error-free. Something similar on your machine might be interfering with the compile process.

(I did report this issue to MalwareBytes but apparently no action has been taken by them.)
Pages: 1 ... 4 5 [6] 7 8 ... 10