Link to home
Create AccountLog in
Editors IDEs

Editors IDEs

--

Questions

--

Followers

Top Experts

Avatar of Omnipower
Omnipower

How can you create a PowerBuilder Windows application with windows which look like iTunes or Napster?
How can you create a PowerBuilder Windows application with windows which look like iTunes or Napster?

i.e. with rounded window edges and shaded colouring - I can't find any way to control this in PowerBuilder

are these some extensions which I can download or purchase to enable me to do this?
do I just need to learn the PBNI to control the windows directly - if so can you find me an example?

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


ASKER CERTIFIED SOLUTION
Avatar of tr1l0b1ttr1l0b1t

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of tr1l0b1ttr1l0b1t

more ...

This function is very interesting as it lets you create round rectangle regions which are very extended :

    FUNCTION long CreateRoundRectRgn( long nLeftRect, long nTopRect, long nRightRect, long nBottomRect , long nWidthEllipse, long nHeightEllipse) LIBRARY "gdi32.dll"

    nLeftRect,         // x-coordinate of upper-left corner
    nTopRect,         // y-coordinate of upper-left corner
    nRightRect,       // x-coordinate of lower-right corner
    nBottomRect,    // y-coordinate of lower-right corner
    nWidthEllipse,   // width of ellipse
    nHeightEllipse   // height of ellipse

also take in mind the 'CombineRgn' function (mentioned in the above post) :

    FUNCTION int CombineRgn(ulong hrgnDest, ulong hrgnSrc1, ulong hrgnSrc2, int fnCombineMode) LIBRARY "gdi32.dll"

    hrgnDest,      // handle to destination region
    hrgnSrc1,      // handle to 1st source region
    hrgnSrc2,      // handle to 2nd source region
    fnCombineMode   // region combining mode

where 'fnCombineMode' can take these values :

    CONSTANT RGN_AND   = 1    // Creates the intersection of the two combined regions
    CONSTANT RGN_OR    = 2    // Creates the union of two combined regions
    CONSTANT RGN_XOR   = 3   // Creates the union of two combined regions except for any overlapping areas
    CONSTANT RGN_DIFF   = 4   // Combines the parts of hrgnSrc1 that are not part of hrgnSrc2
    CONSTANT RGN_COPY = 5   // Creates a copy of the region identified by hrgnSrc1

Regions can also be used with objects such PictureButtons or CommandButtons just
taking its handle and aplying them a region as described in the next issue :  https://www.experts-exchange.com/questions/20486020/How-do-I-make-PB-command-buttons-resemble-MS-buttons.html

Anyway, I recommend you to read MS Reference : http://msdn.microsoft.com/library/en-us/gdi/regions_7ab7.asp

Hope it helps
Regards :: Tr1l0b1t

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.

Editors IDEs

Editors IDEs

--

Questions

--

Followers

Top Experts

Development in most programming languages is frequently done with an editor or integrated development environment (IDE). An IDE is a software application that provide comprehensive facilities to computer programmers for software development. An IDE normally consists of a source code editor, build automation tools and a debugger. XCode, Visual Studio, Adobe Dreamweaver and Eclipse are some of the more popular development tools, but an editor or IDE can be anything from simple text editors to sophisticated programs. Related topics: All programming and development language, database and web based content management systems topics