Announcement

Collapse
No announcement yet.

Setting Cursors on Egrid32

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setting Cursors on Egrid32

    Originally posted by Michael Kienast
    How can I change the edge color of the cursor?

    Michael

    Hello Michael, seems like you have reached the max number of private messages. Since im going out of town today, please allow me to answer over this forum.

    You can create your own cursors with the editor that came included in PowerBASIC 7, or with an utility like Microangelo.

    I assume you want to change the edge color of the Egrid32 cursor... Once you have the cursor you need, you can load it in Egrid32 using the cursor handle you get with the LoadCursor or LoadCursorFromFile API's, and then using this code:

    Code:
    Result = SendMessage(Hgrid, %EG_LOADCURSOR, %EG_MAINCELLCURSOR, HandleToCursor&)
    Egrid32 supports loading custom cursors to specific cells, or areas. The code you need depends on the task you want to accomplish.

    For more detailed information you can see the help topics for:
    EG_READCURSOR, EG_SETCELLCURSOR, EG_SETCOLUMNCURSOR, EG_RESTOREDEFAULTCURSOR

    Last edited by Elias Montoya; 7 Dec 2008, 12:21 PM.

  • #2
    Im sorry... I think i was half asleep when i aswered this...
    i think you are asking about the edges of the Egrid32 cursor, and not
    the mouse cursor.

    You can change the cursor style using this simple command:

    Code:
    Result& = SendMessage(Hgrid, %EG_SETFRAMESTYLE, 2, %RED)
    First parameter changes the thickness and the second parameter changes the color. To keep current thickness use this:

    Code:
    Result& = SendMessage(Hgrid, %EG_SETFRAMESTYLE, SendMessage(Hgrid&, %EG_GETFRAMESIZE, 0, 0), %RED)


    Sorry about my silly answer earlier.

    Comment

    Working...
    X