1. wxEuphoria screensize

Hi,
i am converting  a win32 program to wxEuphoria, I have a screensize 
command. I also have a get numeric command and I used the combination of 
:sprintf and get_string _selection as :

HSALERY = sprintf( "%d \n", ( get_string_selection(ESALERY)))

Thanks for any help
Jim

new topic     » topic index » view message » categorize

2. Re: wxEuphoria screensize

sixs wrote:
> 
> i am converting  a win32 program to wxEuphoria, I have a screensize 
> command. I also have a get numeric command and I used the combination of 
> :sprintf and get_string _selection as :
> 
> HSALERY = sprintf( "%d \n", ( get_string_selection(ESALERY)))

Hi, Jim,

I'd answer this, but I don't know what the question is. :)

-=ck
"Programming in a state of EUPHORIA."
http://www.cklester.com/euphoria/

new topic     » goto parent     » topic index » view message » categorize

3. Re: wxEuphoria screensize

Yes,  ck, you are right.
My email didn't make much sense. I want the equivelent command in 
wxEuphoria for the win32lib command for getting the screen size.
I also wondered if there was an equivelent wxEuphoria for the win32lib 
command getNumber. I was trying to use the command
"HSALERY = sprintf( "%d \n", ( get_string_selection(ESALERY)))"  as the 
substitute for windows getNumber
I hope this makes more sense.
Jim



cklester wrote:

>
>
>posted by: cklester <cklester at yahoo.com>
>
>sixs wrote:
>  
>
>>i am converting  a win32 program to wxEuphoria, I have a screensize 
>>command. I also have a get numeric command and I used the combination of 
>>:sprintf and get_string _selection as :
>>
>>HSALERY = sprintf( "%d \n", ( get_string_selection(ESALERY)))
>>    
>>
>Hi, Jim,
>
>I'd answer this, but I don't know what the question is. :)
>
>-=ck
>"Programming in a state of EUPHORIA."
>http://www.cklester.com/euphoria/
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

4. Re: wxEuphoria screensize

sixs wrote:
> 
> My email didn't make much sense. I want the equivelent command in 
> wxEuphoria for the win32lib command for getting the screen size.

Check out the "get_sys_metric()" function. This works for me:

-- sample
include wxEuphoria.e
include wxStatusBar.e

constant
	win_Main = create( wxFrame, {0,-1,"Screen Size",-1,-1,-1,-1}),
	win_StatBar = create( wxStatusBar, { win_Main, 1 } )

atom x, y

	x = get_sys_metric( wxSYS_SCREEN_X )
	y = get_sys_metric( wxSYS_SCREEN_Y )
	
set_status_text( win_StatBar, sprintf("%d,%d",{x,y}),0)

wxMain( win_Main )

-=ck
"Programming in a state of EUPHORIA."
http://www.cklester.com/euphoria/

new topic     » goto parent     » topic index » view message » categorize

5. Re: wxEuphoria screensize

sixs wrote:
> 
> I was trying to use the command
> "HSALERY = sprintf( "%d \n", ( get_string_selection(ESALERY)))"

Is ESALERY a text box? If so, you should probably use

    HSALERY = get_text_value( ESALERY )

But I don't know about that. It's bedtime for me. Let me know what you find! :)

-=ck
"Programming in a state of EUPHORIA."
http://www.cklester.com/euphoria/

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu