Jump to content
Xtreme .Net Talk

Recommended Posts

  • *Experts*
Posted
I hate word-wrap when I'm using anything. I have a 1600x1200 resolution, so there aren't many times when I need it... It just makes things look messy when things do wrap.
  • Leaders
Posted
Real men don't need word wrap.

omg , thats twice in 2 days that you've cracked me up with a quote divil :p

 

i must get this skirt changed now, it's cutting me in half;)

 

and yes i only use notepad for html stuff so it's much better with wordwrap on for that ( i'm not hard enough to attampt html with wordwrap turned off:p )

  • *Experts*
Posted

Why would you want to use word-wrap for HTML?! That would be so unbelievably messy. I'd probably go insane.

 

Get a real text editor for HTML. :p There are hundreds of them out there. Notepad just doen't cut it for me. Especially since it can't properly interpret many encodings (particularly unicode, as well as files saved under other OS's). If you have ever tried opening an HTML file or PHP file saved under Linux, it will all be one line due to the incorrect parsing of the Linux newline characters.

  • Leaders
Posted (edited)
Better yet, write your own. You'll thank yourself later for it and if you are a beginner you will learn allot more than you may think. Edited by John
"These Patriot playoff wins are like Ray Charles songs, Nantucket sunsets, and hot fudge sundaes. Each one is better than the last." - Dan Shaughnessy
  • Leaders
Posted

for most stuff i use my own editor, the layout's a bit bare at the moment, but i'm just using it as a canvas for the custom menu's i'm trying to build.

http://homepage.ntlworld.com/dennis.hughes3/myform.PNG

  • Leaders
Posted

you can paste vb code straight in to the editor , then convert to either tagged [vbcode] or

 or convert to <html> , the reason i do that is for posting on vbforums.com , codeguru's forum and the html is for on a few other forums i'm on which allow html posts. in the vbforum / codeguru forum vb code shows as dark blue , unlike the great method on this forum of using the bright blue ( like in vs projects ) therefore i brighten up my posts on them forums from this >>>> [color=darkblue]Private Sub[/color]  <<<< to this >>>>[color=blue]Private Sub[/color]  <<<<

 

like i said , ignore the layout , it's not meant to be anything special, only for quick use and for the menu i'm working on.:)

  • *Experts*
Posted
dynamic_sysop: Are those ownerdrawn and hooked menus (hooked to get the flat border), or are they totally custom from-scratch menus? They look good. :)
  • Leaders
Posted

thanks voltface , i have created them from scratch and i'm very proud of them ( even if it's no match for a lot of menus that may be about ).

i basically add a handler at start up , like this...

   Private WithEvents mnuItems As MenuItem

   Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
       Dim x As Integer
       For x = 0 To ContextMenu1.MenuItems.Count - 1
           ContextMenu1.MenuItems.Item(x).OwnerDraw = True
           AddHandler ContextMenu1.MenuItems.Item(x).MeasureItem, AddressOf mnuItems_MeasureItem
           AddHandler ContextMenu1.MenuItems.Item(x).DrawItem, AddressOf mnuItems_DrawItem
       Next
   End Sub

 

then just draw the menus with the draw event and measure event. :)

  • *Experts*
Posted

Oh I see... the border is flat because the XP style flattens them. If you go into classic windows mode, the menus will have a thick border.

 

Still looks good though. :)

 

You could look at my custom menu component here: http://www.xtremedotnettalk.com/t69043.html and expand on the code to make the menus XP style rather than Office 2000 style if you like. That way the ownerdrawing process is totally automated.

 

Divil also made an XP style menu based on my component, available at his site, but his source is not available.

  • Leaders
Posted

cheers i have already tested them both and think they are both great :) , having said that, i'm on a self-teaching session with graphics. i've basically had no starting pointers with graphics, just jumped in at the deep end and started piecing it together ( and surprisingly i'm figuring it out quite well seeing as i've never worked with graphics in vb before :-\ )

i have also made a listview with icons on subitems , but there's no onpaint event ( well you can add one, but it doesnt work ) so i'm having to do that a really long way. re-drawing the listview on all events , such as click , mouse up/down etc...

if you know of a way to make onpaint work on a listview that'd be greatly appreciated:)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...