How to change the GUI of the application? [duplicate] - c

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to Skin an Win32 Application
I'm trying to learn to design a application, but I'm stuck.
For a example, how would I code/get this kind GUI ( Background image, navigation, the engineering icon in the up left corner, styled minimize and quit icons ... etc ) in C/Win32API as represented on that picture?
Thanks.

This is called "skinning".
See this article for example: (Flipcode)
All you have to do is to create the HBITMAP object (load it from Resource or from File) and the use the SelectObject to choose it as a background.

Related

Change color of SVG in accordion control with wpf devexpress [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
I have an accordion control with svg's as button icon/glyph. It seems that visual studio/wpf or whatever would control the defaults the color to gray instead of svg's actual color. I am trying to change the color of the svg as well as the text content associated with it. I found a workaround by applying an image colorizer effect to the icon/glyph within the properties tab, but this seems to hide the blue highlight of the text content when user hovers over the button. So it seems that the colorizer would not be the actual answer to my issue. I hope I am explaining this well and hope someone can lead me in the correct direction. I have been searching for an answer across multiple sources and I have not found anything that answers my question specifically.
As far as I can see you are using SVG-glyphs with the DevExpress Accordion Control for WPF and trying to customize these glyphs.
So, I suggest you start from the Svg Images Overview help article which demonstrates the common concepts of using the SVG with DevExpress WPF controls.
TLDR, the application's current theme determines an SVG Image's predefined colors by default. Refer to the Predefined Colors topic for more information.
You can use palettes to replace predefined colors and custom colors that are not defined in DevExpress palettes. The SVG Image Palettes article clearly describes how you can modify the colors via the palettes technique.

Codename One screen shrinkage [duplicate]

This question already has an answer here:
CodenameOne: VKB changes the screen
(1 answer)
Closed 6 years ago.
I have a form with two texfields. Once one of the textfields get focus and the virtual keyboard is launched, the form/screen is shrinked and the controls are pushed up. Is there a way to counter this?
When you have text fields inside a container one of the parents must be scrollable.
At this time Android shrinks the screen to make room for the virtual keyboard but if the screen is scrollable this shouldn't be an issue. Notice that on iOS the screen isn't shrunk but scrollability is increased to leave room for the keyboard so you need that anyway.

Query Windows' Color and Appearance

I am writing a small GUI library in OpenGL for fun and profit. When it comes to font handling, so far I require the client application to explicitly load all fonts and set them on the widgets. So far this is ok, I also have a means to set them once as a default for all widgets of a certain type.
Although this is feasible, I though, would it not be dandy to use the system's default font as a default instead. In the case of Windows this would be the fonts that are configured though the Color and Appearance dialog.
After warming up my rusted Win32 programming knowledge and souring the MSDN I can't find an awnser to this question. I can load a font by name and set it on any widget, but figuring out what font Win32 would use as a default eludes me.
So far the best I have found is the SystemParametersInfo function with SPI_GETNONCLIENTMETRICS. But these are just the settings for the "non client" area, such as window title bar and such.
DEFAULT_GUI_FONT is not your solution. The name certainly sounds good, and indeed it was the default GUI font at some point in history, but that font hasn't been used in years.
You already stumbled upon the correct solution: calling SystemParametersInfo with the SPI_GETNONCLIENTMETRICS option. This will fill in a NONCLIENTMETRICS structure with information about the standard system fonts.
The "standard UI font" in that structure is called lfMessageFont. It is the one used for text in message boxes, dialog boxes, and elsewhere in the client area of windows. It is the same one configurable in the "Appearance" properties.
I wrote out a very detailed answer about fonts in Windows applications a few years ago. That one kind of focuses on MFC, so I've chosen not to mark this question as a duplicate of that other one and compose a separate answer, but really all of the information you need is there.
For fun, I'll throw in that you can get the system colors by calling the GetSysColor function. Pass one of the COLOR_* values to indicate which color you want; you'll get back a COLORREF value (typedefed as a 32-bit unsigned integer into which are packed the red, green, and blue component values of the color). Use the GetRValue, GetGValue, and GetBValue macros to extract the individual components; I doubt OpenGL wants COLORREF values.

How to create a form with blurred background and a sharp panel inside it? [duplicate]

This question already has answers here:
Dimming inactive forms
(3 answers)
Closed 8 years ago.
When you set the opacity of the form it will affect all of it's child controls. Now I need exclude my panel inside the form from it.
The ultimate goal is to make a dialog box with a blurry background.
Make a separate dialog box, and float it over the blurred form.

Hires, interlaced screen on Amiga HiSoft C, with window, menu and buttons [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I'm an Amiga programming newbie.
I need to produce an application that displays graphics in a similar way to the popular drawing application, Deluxe Paint by Dan Silva, published by Electronic Arts. Just a vertically scrolling image, preferably in HAM mode.
How do I open a new screen based on the result from a screenmode requester dialogue box using HiSoft C for the Amiga?
Requirements:
Open a new hires interlaced screen in as many colours as hardware will allow
Basic menu structure that I can manipulate (Top Right-click menu)
A project window, similar to the HiSoft C editor
A control panel along the top similar to the one in Digita Wordworth with text boxes, buttons and tabs
I also need an off screen buffer that is as wide as the screen and as tall as memory will allow.
This needs to be compatible with:
Workbench 3.0 and above
68020 and above
ECS & AGA chipset
0.5..2Mb chipmem + 0..∞ fastmem
From the question, I'm not sure how experienced you are with Amiga programming. If you have zero experience with the way windows and screens are set up, then I can strongly recommend Anders Bjerin's Amiga C Manual
It's fairly old and predates AGA, but it shouldn't be a huge problem to extrapolate how to open a 256 colour screen.

Resources