Suneido

Integrated Application Platform

  • Home
  • Learning
    • Suneido Manual
    • Beginners
      • Inside Suneido
      • The Suneido Programming Language
      • The Suneido Database
      • Installing Suneido
      • Building Suneido
      • IDE Go To Tour
      • Upgrading To A New Release
    • Advanced
      • Canvas Control
      • DrawControl Part 1
      • DrawControl Part 2
      • DrawControl Part 3
      • SAX Like XML Processing
      • A Plug-In Architecture
      • A Simple Wizard Framework
      • An HTML Include Facility
      • An RSS 2 Feed Creator
      • MIME Generation
      • A New Add-on Facility
      • Workspace Improvement Hack
    • Mockito for Suneido
    • The Suneido Task Scheduler
    • Contributing To Suneido
    • Contributor Assignment of Copyright
    • Language Translation
    • Future Directions
    • Interview With Andrew Mckinlay
  • Forum
    • Announcements
    • Internals & Enhancements
    • Cookbook
    • General
  • FAQ
  • Screenshots
  • Downloads
  • Links

Is it possible to change the Controller background color?

Integrated Application Platform › Forums › General › Is it possible to change the Controller background color?

  • This topic has 2 replies, 3 voices, and was last updated 9 years, 1 month ago by amckinlay.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • November 6, 2013 at 11:47 am #768
    gmauro
    Participant

    Hi, I would like to change the default gray background color of the Controller windows, AccessControls, etc… Is it possible?
    I tried to change the RegisterClass for “SuBtnfaceArrow” in the Init function, in this way:

    hBrush = CreateSolidBrush(0xeeffee) //***added by me

    // button face background, arrow cursor
    RegisterClass(Object(
    style: CS.DBLCLKS | CS.REDRAW,
    wndProc: defWndProc,
    instance: Instance(),
    className: "SuBtnfaceArrow",
    icon: LoadIcon(Instance(), IDI.SUNEIDO),
    cursor: LoadCursor(NULL, IDC.ARROW),
    background: hBrush // <--- CHANGED TO hBrush (before was: 1 + COLOR.BTNFACE)
    ))

    but it works only until I don’t resize the Window and it doesn’t work for all the GUI elements. Any suggestions?

    November 18, 2013 at 3:34 pm #1042
    j_ferguson
    Moderator

    Hi,

    Not sure how much help I can be on this one. Maybe it is using another window class that you have not changed the color on? You could try examining the calls to CreateWindowEx to see what classes are being used.

    Jeff

    December 19, 2013 at 10:58 pm #1043
    amckinlay
    Keymaster

    Hi Mauro,

    Controller itself does not paint the background.

    The window class is part of it, but as you found, other things are involved.

    I have never tried to do this, so I do not know how many changes would be required, but there is no simple solution – sorry!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

Search Forums

Log In
Welcome to the new Suneido Web Site and Forum.
Register
Lost Password
users of the previous PHPBB Forum should be able to log in with their previous username and password.

Recent Topics

  • Alpha copy of gSuneido to play with
  • how to start jsuneido ?
  • Problem Starting Suneido…
  • Dialog not showing buttons
  • New link for Suneidojo

Contact Us | Legal Statement | Privacy Statement | SiteMap

Copyright © 2023 Axon® Development Corporation. All Rights Reserved. - Open Source Integrated Database and Programming Language