Click here to Skip to main content
15,897,226 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to make list in property grid? Pin
AlanJones23-Oct-04 13:00
AlanJones23-Oct-04 13:00 
GeneralUsing SignatureCapturing in PocketPc Pin
mathon18-Oct-04 10:26
mathon18-Oct-04 10:26 
GeneralRe: Using SignatureCapturing in PocketPc Pin
Nick Parker18-Oct-04 15:37
protectorNick Parker18-Oct-04 15:37 
GeneralDataGrid Set Column Width Pin
mfcuser18-Oct-04 10:03
mfcuser18-Oct-04 10:03 
GeneralRe: DataGrid Set Column Width Pin
Heath Stewart18-Oct-04 11:53
protectorHeath Stewart18-Oct-04 11:53 
GeneralRe: DataGrid Set Column Width Pin
mfcuser19-Oct-04 8:03
mfcuser19-Oct-04 8:03 
GeneralRe: DataGrid Set Column Width Pin
Heath Stewart19-Oct-04 12:44
protectorHeath Stewart19-Oct-04 12:44 
GeneralText on Image control Pin
JAntonaccio18-Oct-04 9:31
JAntonaccio18-Oct-04 9:31 
I am trying to create a generalized control that functions similarly to the ASP Image Button control but with the added feature of being able to programmatically superimpose text over the image.

There are many times when a GUI developer would like to create an image and programmatically place specific text on that image. For example: A restaurant application that graphically shows a restaurant table layout as an icon (see below). It would be nice to be able to write text over the table icon that is meaningful to the user of the application rather than place text outside the image area. When the user clicks on the table, an event handler would process whatever the application requires.


Table ID = A7
Guest Count = 3 people
Server ID = 22


It would be far better from a GUI view point to create a larger Image and place the actual text directly in the image:



Likely this Server control needs to look exactly like the ImageButton with an added attribute perhaps called ImageTextLine with properties:
ImageTextLine.Text
ImageTextLine.Alignment (Top, Center, Left, Right)
A single text line could suffice with string concatenation handling the actual display.

This must be a generalized sever control that will take any image and allow text to be placed over the top of the image in various alignment positions.

The closest I can come to finding anything remotely resembling the above scenario is creating a text-image which uses GDI+ to create a rectangle or circle (ellipse) as a drawing shape. I don’t want a rectangle or circle, I want an image of my choosing.


GeneralRe: Text on Image control Pin
Heath Stewart18-Oct-04 11:50
protectorHeath Stewart18-Oct-04 11:50 
GeneralNtier app Pin
StephenMcAllister18-Oct-04 7:55
StephenMcAllister18-Oct-04 7:55 
GeneralRe: Ntier app Pin
Christian Graus18-Oct-04 10:08
protectorChristian Graus18-Oct-04 10:08 
GeneralRe: Ntier app Pin
Colin Angus Mackay18-Oct-04 11:46
Colin Angus Mackay18-Oct-04 11:46 
GeneralRe: Ntier app Pin
StephenMcAllister18-Oct-04 16:28
StephenMcAllister18-Oct-04 16:28 
GeneralRe: Ntier app Pin
Salil Khedkar19-Oct-04 22:40
Salil Khedkar19-Oct-04 22:40 
GeneralRe: Ntier app Pin
Carl Mercier21-Oct-04 18:50
Carl Mercier21-Oct-04 18:50 
GeneralRe: Ntier app Pin
StephenMcAllister23-Oct-04 7:53
StephenMcAllister23-Oct-04 7:53 
GeneralAdjusting the columns on the datagrid Pin
steve_rm18-Oct-04 5:54
steve_rm18-Oct-04 5:54 
GeneralRe: Adjusting the columns on the datagrid Pin
Heath Stewart18-Oct-04 7:31
protectorHeath Stewart18-Oct-04 7:31 
GeneralRe: Adjusting the columns on the datagrid Pin
steve_rm19-Oct-04 7:44
steve_rm19-Oct-04 7:44 
GeneralRe: Adjusting the columns on the datagrid Pin
Heath Stewart19-Oct-04 7:54
protectorHeath Stewart19-Oct-04 7:54 
GeneralDetecting the enter key Pin
exhaulted18-Oct-04 5:18
exhaulted18-Oct-04 5:18 
GeneralRe: Detecting the enter key Pin
Roger Stewart18-Oct-04 7:28
professionalRoger Stewart18-Oct-04 7:28 
GeneralRe: Detecting the enter key Pin
Heath Stewart18-Oct-04 7:34
protectorHeath Stewart18-Oct-04 7:34 
GeneralRe: Detecting the enter key Pin
Roger Stewart18-Oct-04 9:32
professionalRoger Stewart18-Oct-04 9:32 
GeneralRe: Detecting the enter key Pin
exhaulted18-Oct-04 22:22
exhaulted18-Oct-04 22:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.