Recent Posts

Pages: 1 ... 8 9 [10]
91
EZGUI 5 support forum / Re: EZ_GetImageSize
« Last post by Chris Boss on May 29, 2022, 05:58:31 pm »
No such command in EZGUI.

Likely you may have used a function wrapper for other commands which you found on the forum.

Often when i write such a wrapper function I name it with the EZ_ prefix.

The command you need is:

 EZ_GetBitmapInfo hBmp&, W&, H&, PixelBits&, DIBPtr&

This will require calling the EZ_ImageHandle function to get an actual Bitmap handle from an EZGUI Picture name string (ie. EZ_LoadImage returns an internal name EZGUI uses to track a bitmap).

92
EZGUI 5 support forum / EZ_GetImageSize
« Last post by Brian Reynolds on May 29, 2022, 12:17:31 am »
I have had to reinstall EZGUI50pro and I can't find any details on the use of EZ_GetImageSize.
This may be an update after I bought EZGUI50pro.
Help required.
93
EZGUI 5 support forum / Re: Strange event
« Last post by Chris Boss on May 26, 2022, 08:57:16 pm »
That is not normal and surely not a problem with EZGUI.

Maybe a problem with the PB IDE, possibly some system corruption (ie. memory).

I would reboot your PC and try again. If it is temporary because of some kind of memory corrupt that should fix it.

94
EZGUI 5 support forum / Strange event
« Last post by Brian Reynolds on May 26, 2022, 07:22:42 pm »
I have come across something very weird when compiling code.
When I click on the compile button it takes a fair while to actually do anything and when it does it goes to the PowerBasic Home Page.
This even happens when I try to compile one of your Codeclips.
I've never had this happen before and I can't figure out why it happens.
Can you offer a suggestioon to fix it?
95
EZGUI 5 support forum / Re: Printing Unicode characters
« Last post by Chris Boss on April 06, 2022, 10:07:49 pm »
If the character set you require fits in 256 characters then EZGUI's ascii based fonts are   fine.

I would suggest though using the Windows utility "Character Map" to browse the fonts and their character sets.
Very useful tool.

You will find it on the Windows menu under "Windows Accessories"

96
EZGUI 5 support forum / Re: Printing Unicode characters
« Last post by Brian Reynolds on April 05, 2022, 08:16:37 pm »
Chris,
I was using the Arial that came with my Windows 10.
However, I have just managed to overcome the problem, using the following:

EZ_DefFont 50, "Broadway", 11, "BV[48#]"

and Printing a capital "I"

Thank you for your trouble

Brian Reynolds.
 
97
EZGUI 5 support forum / Re: Printing Unicode characters
« Last post by Chris Boss on April 05, 2022, 03:35:15 pm »
When you say printing do you mean to a printer or simply to the screen ?

Unicode characters require a unicode capable font and must be drawn using an API which supports unicode.

EZGUI is ASCI only.

That said, I current have two projects I am working on (one finished) which needs to display text in languages like Japanese which require Unicode and it was not that difficult to implement using the WIN32 API and integrate into an EZGUI app.

First I had to create my fonts using the CreateFontW API function.

Then I was able to draw the text using either the TextOutW or DrawtextW API functions.

The same API's can be used either the screen or a printer. You simply select the font handle into the DC you are drawing into and then select the previous one back in when done.

Both when drawing to the screen or printer EZGUI provides you with the DC handle (device context).
98
EZGUI 5 support forum / Printing Unicode characters
« Last post by Brian Reynolds on April 04, 2022, 09:50:17 pm »
Can anyone help me with printing very high HEX or UNICODE characters?

Using Windows Character Map, I select Arial and scroll down to about four-fifths of the depth and there's a "Full Block" (black block of character with and depth).

It shows at the bottom what I assume to be a Hex num,ber "U+2588"

I normally print these codes (255 and below) by converting them to a ASCII number but I can't figure how I can do this one.

Can anyone help? 
99
EZGUI 5 support forum / Re: Limit of 20 Items in Dropdown Menu?
« Last post by Frank Kelley on March 04, 2022, 02:35:50 pm »
I ended up manually adjusting the ID of last few menu items as other portions of my code depend on the default 5 value increment of controls to hide/display them depending on what is happening elsewhere in the code.

It might have been better to have EZGUI generate the IDs of successive main menu items based on the ID of the last item in the previous main menu, but that's 20/20 hindsight on my part.

Thanks for your response, nonetheless!
100
EZGUI 5 support forum / Re: Limit of 20 Items in Dropdown Menu?
« Last post by Chris Boss on March 04, 2022, 01:10:07 am »
You may have to hand code the menus rather than have the Visual Designer do it for you, if you have a conflict.

There is another option where you can change the control (and menus also) increment value in the project property dialog:

The property:

"Increment Control ID's by"

defaults to a value of 5 (20 menu items per range of 100 per drop down).

Change this value to something smaller and you will get more ID's per drop down list (each new drop down list increments by 100).

so 100/5 means 20 menu items

change to 2 and 100/2 means 50 menu items per drop down list.


See picture.



Pages: 1 ... 8 9 [10]