1. wxEuphoria screensize
- Posted by sixs <sixs at ida.net> Mar 28, 2005
- 609 views
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
2. Re: wxEuphoria screensize
- Posted by cklester <cklester at yahoo.com> Mar 28, 2005
- 592 views
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/
3. Re: wxEuphoria screensize
- Posted by sixs <sixs at ida.net> Mar 29, 2005
- 602 views
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/ > > > >
4. Re: wxEuphoria screensize
- Posted by cklester <cklester at yahoo.com> Mar 29, 2005
- 580 views
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/
5. Re: wxEuphoria screensize
- Posted by cklester <cklester at yahoo.com> Mar 29, 2005
- 590 views
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/