×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    3

    Full screen on the S60

    Hi Guys.
    I've just started my C++ attempts on the S60. I've downloaded the SDK and checked out the examples, which is working and cool.

    I want to write a game, that needs all the screen size those devices have. Anyone care to help me get started?

    The game is similar to the minesweeper - it has a grid, and the user should be able to choose a square, and then click on it (it's not exactly minesweeper, it's actually based on the japanese game of Nonogram).

    I would like to know -

    1. How to make an app take up the entire screen, without the status pane, and soft buttons.
    2. How to output pixels to the screen.
    3. How to capture the joystick commands
    4. How to write fonts to the screen.

    I know it's a lot, but any help will be appriciated!

    Ron.

  2. #2
    Regular Contributor
    Join Date
    Apr 2003
    Location
    Switzerland
    Posts
    61
    To remove the menubar just don't define a menu for the view
    in the resource file.

    To remove the status pane simply call
    StatusPane()->MakeVisible(EFalse); when your view is activated
    or somewhere in AppUi.

    To capture the joystick you must implement OfferKeyEventL() in
    your container class and check the iCode member of TKeyEvent.
    The joystick events are EKeyUpArrow, EKeyDownArrow,
    EKeyLeftArrow, EKeyRightArrow and EKeyDevice3 (the Ok button
    if I remeber correctly).

    Drawing pixels and fonts to the screen you do in the Draw
    function of your container (use DrawText for text etc).

    Hope this helps.

    Regards,
    Bjorn

  3. #3
    Registered User
    Join Date
    May 2003
    Posts
    3
    Hey, thanks a lot. It sure helps, and I'll be starting to get into this soon...

    cheers,

    Ron.

  4. #4
    Registered User
    Join Date
    May 2003
    Posts
    3
    Heya again.

    Well, I started to test your suggestions (thanks again, sorry for being S-L-O-W).

    To remove the status pane, I used -

    StatusPane()->MakeVisible(EFalse);

    But it didn't make it all disappear, it just made the left most bit (with the antena reception thingy) go away. But the rest of the pane is there. What am I doing wrong?

    R.

  5. #5
    Regular Contributor
    Join Date
    Apr 2003
    Location
    Switzerland
    Posts
    61
    Hmm, sounds strange. I've had no problems with it. Where do
    you make the call? In my app I make the call to
    MakeVisible(EFalse) in my views DoActivateL() function, that
    seems to work fine...

    Bjorn

  6. #6
    Registered User
    Join Date
    Mar 2003
    Posts
    42
    if you want to have full screen you have to do someting like this in your container

    iContainer->ConstructL( AppUi()->ApplicationRect() )

    ApplicationRect() is for full screen !



    brahim

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×